fix: 故事错误

This commit is contained in:
2023-07-21 21:53:06 +08:00
parent 3938e101ea
commit 11bdda1a4b
2 changed files with 18 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-07-18 12:28:36
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-21 16:34:51
* @LastEditTime: 2023-07-21 21:52:48
* @FilePath: \vue3\stories\UploadAvatar.stories.ts
* @Description:
*
@ -40,11 +40,27 @@ type Story = StoryObj<typeof meta>
export const Base: Story = {
name: '基本使用',
args: {
fileUrl: avatar,
disabled: true,
fileFunction() {
return Promise.resolve({
id: 1,
url: avatar,
})
},
},
}
export const Preview: Story = {
name: '启用disabled当做预览组件',
args: {
fileUrl: avatar,
disabled: true,
fileFunction() {
return Promise.resolve({
id: 2,
url: avatar,
})
},
},
}