feat(story): 最大文件体积maxsize
This commit is contained in:
@ -1,3 +1,12 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-08-16 17:33:41
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-08-18 17:21:51
|
||||
* @FilePath: \vue3\stories\UploadList.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThUploadList from '../packages/upload-list/index.vue'
|
||||
import avatar from './assets/avatar.jpeg'
|
||||
@ -35,6 +44,7 @@ const meta = {
|
||||
fileList: [],
|
||||
request,
|
||||
filePath: '/',
|
||||
maxsize: 100,
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ThUploadList>
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-07-21 00:37:46
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-21 02:56:04
|
||||
* @LastEditTime: 2023-08-18 17:58:34
|
||||
* @FilePath: \vue3\stories\UploadSingleFile.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
@ -25,6 +25,7 @@ const meta = {
|
||||
id: 0,
|
||||
url: avatar,
|
||||
}),
|
||||
maxsize: 100,
|
||||
},
|
||||
} satisfies Meta<typeof ThUploadSingleFile>
|
||||
export default meta
|
||||
|
@ -55,6 +55,7 @@ const meta = {
|
||||
replacePopconfirm: '是否重新本行文件?',
|
||||
deletePopconfirm: '是否删除本行?',
|
||||
request,
|
||||
maxsize: 20,
|
||||
},
|
||||
render: args => ({
|
||||
components: { ThUploadTable },
|
||||
|
Reference in New Issue
Block a user