mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-28 07:33:08 +02:00
34 lines
723 B
TypeScript
34 lines
723 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
/* eslint-disable import/no-default-export */
|
|
import { Meta, StoryObj } from '@storybook/vue3';
|
|
import announcements_ from './announcements.vue';
|
|
const meta = {
|
|
title: 'pages/announcements',
|
|
component: announcements_,
|
|
} satisfies Meta<typeof announcements_>;
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
announcements_,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...args,
|
|
};
|
|
},
|
|
},
|
|
template: '<announcements_ v-bind="props" />',
|
|
};
|
|
},
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
},
|
|
} satisfies StoryObj<typeof announcements_>;
|
|
export default meta;
|