Skip to content

Commit

Permalink
メニューコンポーネントのStorybookの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
aocm committed Mar 12, 2021
1 parent ac7de8e commit ed60952
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions front/quasar-app/src/components/organisms/MenuList.stories.js
@@ -0,0 +1,46 @@

import MenuList from './MenuList'
// import { action } from '@storybook/addon-actions'

export default {
title: 'MenuList',
component: MenuList,
// Our exports that end in "Data" are not stories.
excludeStories: /.*Data$/
}

export const actionsData = {
}
const Template = (args, { argTypes }) => ({
components: { MenuList },
props: Object.keys(argTypes),
methods: actionsData,
template: '<MenuList v-bind="$props" :menu-list="menuList" />'
})

export const Tasks = Template.bind({})
Tasks.args = {
menuList: [
{
icon: 'assignment_turned_in',
label: 'Tasks',
separator: true
},
{
icon: 'delete',
label: 'Trash',
separator: false
},
{
icon: 'settings',
label: 'Settings',
separator: true
},
{
icon: 'list',
label: 'List',
separator: false
}
]

}

0 comments on commit ed60952

Please sign in to comment.