Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quasar-appでstorybook追加するも、QuasarのCSSが全く効かない状況
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# 開発環境 | ||
FROM node:12-slim | ||
WORKDIR /usr/src/app | ||
RUN npm install -g @vue/cli | ||
RUN npm install -g @vue/cli @quasar/cli |
25 changes: 25 additions & 0 deletions
25
front/quasar-app/src/components/molecules/TaskItem.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
import TaskItem from './TaskItem'; | ||
import { action } from '@storybook/addon-actions'; | ||
|
||
export default { | ||
title: 'TaskItem', | ||
component: TaskItem, | ||
// Our exports that end in "Data" are not stories. | ||
excludeStories: /.*Data$/, | ||
}; | ||
|
||
export const actionsData = { | ||
}; | ||
|
||
const Template = (args, { argTypes }) => ({ | ||
components: { TaskItem }, | ||
props: Object.keys(argTypes), | ||
methods: actionsData, | ||
template: '<TaskItem :title="title" />', | ||
}); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
title:"tasktitle" | ||
}; |
32 changes: 32 additions & 0 deletions
32
front/quasar-app/src/components/organisms/TaskList.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
import TaskList from './TaskList'; | ||
import { action } from '@storybook/addon-actions'; | ||
|
||
export default { | ||
title: 'TaskList', | ||
component: TaskList, | ||
// Our exports that end in "Data" are not stories. | ||
excludeStories: /.*Data$/, | ||
}; | ||
|
||
export const actionsData = { | ||
}; | ||
|
||
const Template = (args, { argTypes }) => ({ | ||
components: { TaskList }, | ||
props: Object.keys(argTypes), | ||
methods: actionsData, | ||
template: '<TaskList :task-list="taskList" />', | ||
}); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
taskList : [ | ||
{ | ||
title: 'dummy1' | ||
}, | ||
{ | ||
title: 'dummy2' | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters