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