2021-05-01 13:56:17 +00:00
|
|
|
import { action } from '@storybook/addon-actions';
|
2021-06-14 04:19:17 +00:00
|
|
|
import AddNote from '../components/AddNote.vue';
|
2021-05-01 13:56:17 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/Notes/Add',
|
|
|
|
component: AddNote,
|
|
|
|
argTypes: {},
|
|
|
|
};
|
|
|
|
|
|
|
|
const Template = (args, { argTypes }) => ({
|
|
|
|
props: Object.keys(argTypes),
|
|
|
|
components: { AddNote },
|
|
|
|
template: '<add-note v-bind="$props" @add="onAdd"></add-note>',
|
|
|
|
});
|
|
|
|
|
|
|
|
export const Add = Template.bind({});
|
|
|
|
Add.args = {
|
|
|
|
onAdd: action('Added'),
|
|
|
|
};
|