fix: 故事错误
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
* @Author: zhaojinfeng 121016171@qq.com
|
* @Author: zhaojinfeng 121016171@qq.com
|
||||||
* @Date: 2023-07-18 12:28:36
|
* @Date: 2023-07-18 12:28:36
|
||||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
* @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
|
* @FilePath: \vue3\stories\UploadAvatar.stories.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -40,11 +40,27 @@ type Story = StoryObj<typeof meta>
|
|||||||
|
|
||||||
export const Base: Story = {
|
export const Base: Story = {
|
||||||
name: '基本使用',
|
name: '基本使用',
|
||||||
|
args: {
|
||||||
|
fileUrl: avatar,
|
||||||
|
disabled: true,
|
||||||
|
fileFunction() {
|
||||||
|
return Promise.resolve({
|
||||||
|
id: 1,
|
||||||
|
url: avatar,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
export const Preview: Story = {
|
export const Preview: Story = {
|
||||||
name: '启用disabled,当做预览组件',
|
name: '启用disabled,当做预览组件',
|
||||||
args: {
|
args: {
|
||||||
fileUrl: avatar,
|
fileUrl: avatar,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
|
fileFunction() {
|
||||||
|
return Promise.resolve({
|
||||||
|
id: 2,
|
||||||
|
url: avatar,
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
4
types/components.d.ts
vendored
4
types/components.d.ts
vendored
@ -13,6 +13,7 @@ declare module 'vue' {
|
|||||||
ElCol: typeof import('element-plus/es')['ElCol']
|
ElCol: typeof import('element-plus/es')['ElCol']
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
|
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
||||||
ElForm: typeof import('element-plus/es')['ElForm']
|
ElForm: typeof import('element-plus/es')['ElForm']
|
||||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||||
@ -26,7 +27,6 @@ declare module 'vue' {
|
|||||||
ElSpace: typeof import('element-plus/es')['ElSpace']
|
ElSpace: typeof import('element-plus/es')['ElSpace']
|
||||||
ElTable: typeof import('element-plus/es')['ElTable']
|
ElTable: typeof import('element-plus/es')['ElTable']
|
||||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||||
ElUpload: typeof import('element-plus/es')['ElUpload']
|
|
||||||
Header: typeof import('./../packages/header/index.vue')['default']
|
Header: typeof import('./../packages/header/index.vue')['default']
|
||||||
PreviewOffice: typeof import('./../packages/preview-office/index.vue')['default']
|
PreviewOffice: typeof import('./../packages/preview-office/index.vue')['default']
|
||||||
PreviewOfficeView: typeof import('./../packages/preview-office-view/index.vue')['default']
|
PreviewOfficeView: typeof import('./../packages/preview-office-view/index.vue')['default']
|
||||||
@ -34,8 +34,6 @@ declare module 'vue' {
|
|||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
SelectTableModal: typeof import('./../packages/select-table-modal/index.vue')['default']
|
SelectTableModal: typeof import('./../packages/select-table-modal/index.vue')['default']
|
||||||
UploadAvatar: typeof import('./../packages/upload-avatar/index.vue')['default']
|
UploadAvatar: typeof import('./../packages/upload-avatar/index.vue')['default']
|
||||||
Uploadmultiplefile: typeof import('./../packages/uploadmultiplefile/index.vue')['default']
|
|
||||||
UploadMultipleFile: typeof import('./../packages/upload-multiple-file/index.vue')['default']
|
|
||||||
UploadSingleFile: typeof import('./../packages/upload-single-file/index.vue')['default']
|
UploadSingleFile: typeof import('./../packages/upload-single-file/index.vue')['default']
|
||||||
UploadTable: typeof import('./../packages/upload-table/index.vue')['default']
|
UploadTable: typeof import('./../packages/upload-table/index.vue')['default']
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user