feat(storybook): listType说明
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zhaojinfeng 121016171@qq.com
|
* @Author: zhaojinfeng 121016171@qq.com
|
||||||
* @Date: 2023-08-16 17:33:41
|
* @Date: 2023-08-16 17:33:41
|
||||||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||||
* @LastEditTime: 2023-08-30 13:31:32
|
* @LastEditTime: 2023-09-14 13:21:59
|
||||||
* @FilePath: \vue3\stories\UploadList.stories.ts
|
* @FilePath: \vue3\stories\UploadList.stories.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -58,6 +58,13 @@ const meta = {
|
|||||||
request,
|
request,
|
||||||
filePath: '/',
|
filePath: '/',
|
||||||
maxsize: 100,
|
maxsize: 100,
|
||||||
|
listType: 'text',
|
||||||
|
},
|
||||||
|
argTypes: {
|
||||||
|
listType: {
|
||||||
|
control: 'inline-radio',
|
||||||
|
options: ['text', 'picture-card', 'picture'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ThUploadList>
|
} satisfies Meta<typeof ThUploadList>
|
||||||
@ -78,6 +85,13 @@ export const VModel: Story = {
|
|||||||
request,
|
request,
|
||||||
filePath: '/',
|
filePath: '/',
|
||||||
maxsize: 100,
|
maxsize: 100,
|
||||||
|
listType: 'text',
|
||||||
|
},
|
||||||
|
argTypes: {
|
||||||
|
listType: {
|
||||||
|
control: 'inline-radio',
|
||||||
|
options: ['text', 'picture-card', 'picture'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
render: args => ({
|
render: args => ({
|
||||||
components: { ThUploadList },
|
components: { ThUploadList },
|
||||||
|
Reference in New Issue
Block a user