Sharkey/packages/frontend/src/pages/welcome.entrance.a.stories.ts

35 lines
757 B
TypeScript
Raw Normal View History

2023-03-21 15:25:17 +00:00
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
import { Meta, StoryObj } from '@storybook/vue3';
2023-03-19 13:22:14 +00:00
import welcome_entrance_a from './welcome.entrance.a.vue';
const meta = {
title: 'pages/welcome.entrance.a',
component: welcome_entrance_a,
} satisfies Meta<typeof welcome_entrance_a>;
2023-03-19 13:22:14 +00:00
export const Default = {
2023-03-23 07:44:41 +00:00
render(args) {
return {
components: {
welcome_entrance_a,
},
2023-03-23 07:44:41 +00:00
setup() {
return {
args,
};
},
computed: {
props() {
return {
...args,
};
},
},
template: '<welcome_entrance_a v-bind="props" />',
};
2023-03-19 13:22:14 +00:00
},
parameters: {
layout: 'fullscreen',
},
} satisfies StoryObj<typeof welcome_entrance_a>;
2023-03-19 13:22:14 +00:00
export default meta;