mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 05:41:07 +08:00
26 lines
404 B
Plaintext
26 lines
404 B
Plaintext
```js
|
|
// Page.stories.js
|
|
|
|
import Page from './Page.vue';
|
|
|
|
import * as HeaderStories from './Header.stories';
|
|
|
|
export default {
|
|
component: Page,
|
|
title: 'Page',
|
|
};
|
|
|
|
const Template = (args) => ({
|
|
components: { Page },
|
|
setup() {
|
|
return { args };
|
|
},
|
|
template: '<page v-bind="args" />',
|
|
});
|
|
|
|
export const LoggedIn = Template.bind({});
|
|
LoggedIn.args = {
|
|
...HeaderStories.LoggedIn.args,
|
|
};
|
|
```
|