21 lines
475 B
TypeScript
21 lines
475 B
TypeScript
import { Meta, StoryObj } from '@storybook/vue3';
|
|
import MkChart from './MkChart.vue';
|
|
const meta = {
|
|
title: 'components/MkChart',
|
|
component: MkChart,
|
|
} satisfies Meta<typeof MkChart>;
|
|
export const Default = {
|
|
render(args, { argTypes }) {
|
|
return {
|
|
components: {
|
|
MkChart,
|
|
},
|
|
props: Object.keys(argTypes),
|
|
template: '<MkChart v-bind="$props" />',
|
|
};
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkChart>;
|
|
export default meta;
|