mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-10 00:12:22 +08:00
25 lines
497 B
Plaintext
25 lines
497 B
Plaintext
```js
|
|
// List.stories.js
|
|
|
|
import List from './List.vue';
|
|
import ListItem from './ListItem.vue';
|
|
|
|
//👇 Imports a specific story from ListItem stories
|
|
import { Unchecked } from './ListItem.stories';
|
|
|
|
export default {
|
|
component: List,
|
|
};
|
|
|
|
export const OneItem = {
|
|
args: {
|
|
...Unchecked.args,
|
|
},
|
|
render: (args, { argTypes }) => ({
|
|
props: Object.keys(argTypes),
|
|
components: { List, ListItem },
|
|
template: '<List v-bind="$props"><ListItem v-bind="$props"/></List>',
|
|
}),
|
|
};
|
|
```
|