mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:01:21 +08:00
29 lines
622 B
Plaintext
29 lines
622 B
Plaintext
```js
|
|
// Page.stories.js
|
|
|
|
import Page from './Page.vue';
|
|
|
|
//👇 Imports all Header stories
|
|
import * as HeaderStories from './Header.stories';
|
|
|
|
export default {
|
|
/* 👇 The title prop is optional.
|
|
* See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
|
|
* to learn how to generate automatic titles
|
|
*/
|
|
title: 'Page',
|
|
component: Page,
|
|
};
|
|
|
|
|
|
const Template = (args, { argTypes }) => ({
|
|
components: { Page },
|
|
props: Object.keys(argTypes),
|
|
template: '<page v-bind="$props" />',
|
|
});
|
|
|
|
export const LoggedIn = Template.bind({});
|
|
LoggedIn.args = {
|
|
...HeaderStories.LoggedIn.args,
|
|
};
|
|
``` |