fix: 故事错误
This commit is contained in:
@ -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,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user