build(#10336): missing dependencies
This commit is contained in:
parent
97731705ba
commit
8b30a0d641
3 changed files with 57 additions and 14 deletions
|
|
@ -1,15 +1,28 @@
|
|||
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||||
import { StoryObj } from '@storybook/vue3';
|
||||
import MkAnalogClock from './MkAnalogClock.vue';
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
render(args) {
|
||||
return {
|
||||
components: {
|
||||
MkAnalogClock,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<MkAnalogClock v-bind="$props" />',
|
||||
setup() {
|
||||
return {
|
||||
args,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
template: '<MkAnalogClock v-bind="props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'fullscreen',
|
||||
},
|
||||
};
|
||||
} satisfies StoryObj<typeof MkAnalogClock>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue