build(#10336): write stories for MkAd

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-03-31 15:52:39 +09:00
parent 98fd6b5879
commit 70fc25aac1
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
9 changed files with 223 additions and 18 deletions

View file

@ -3,7 +3,7 @@
import { StoryObj } from '@storybook/vue3';
import { userDetailed } from '../../../.storybook/fakes';
import MkAvatar from './MkAvatar.vue';
export const Default = {
const common = {
render(args) {
return {
components: {
@ -25,7 +25,6 @@ export const Default = {
};
},
args: {
size: 48,
user: userDetailed,
},
decorators: [
@ -39,9 +38,9 @@ export const Default = {
},
} satisfies StoryObj<typeof MkAvatar>;
export const ProfilePage = {
...Default,
...common,
args: {
...Default.args,
...common.args,
size: 120,
indicator: true,
},