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 type { Meta, StoryObj } from '@storybook/vue3'
|
||||||
import ThUploadList from '../packages/upload-list/index.vue'
|
import ThUploadList from '../packages/upload-list/index.vue'
|
||||||
import avatar from './assets/avatar.jpeg'
|
import avatar from './assets/avatar.jpeg'
|
||||||
@ -35,6 +44,7 @@ const meta = {
|
|||||||
fileList: [],
|
fileList: [],
|
||||||
request,
|
request,
|
||||||
filePath: '/',
|
filePath: '/',
|
||||||
|
maxsize: 100,
|
||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ThUploadList>
|
} satisfies Meta<typeof ThUploadList>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zhaojinfeng 121016171@qq.com
|
* @Author: zhaojinfeng 121016171@qq.com
|
||||||
* @Date: 2023-07-21 00:37:46
|
* @Date: 2023-07-21 00:37:46
|
||||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
* @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
|
* @FilePath: \vue3\stories\UploadSingleFile.stories.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -25,6 +25,7 @@ const meta = {
|
|||||||
id: 0,
|
id: 0,
|
||||||
url: avatar,
|
url: avatar,
|
||||||
}),
|
}),
|
||||||
|
maxsize: 100,
|
||||||
},
|
},
|
||||||
} satisfies Meta<typeof ThUploadSingleFile>
|
} satisfies Meta<typeof ThUploadSingleFile>
|
||||||
export default meta
|
export default meta
|
||||||
|
@ -55,6 +55,7 @@ const meta = {
|
|||||||
replacePopconfirm: '是否重新本行文件?',
|
replacePopconfirm: '是否重新本行文件?',
|
||||||
deletePopconfirm: '是否删除本行?',
|
deletePopconfirm: '是否删除本行?',
|
||||||
request,
|
request,
|
||||||
|
maxsize: 20,
|
||||||
},
|
},
|
||||||
render: args => ({
|
render: args => ({
|
||||||
components: { ThUploadTable },
|
components: { ThUploadTable },
|
||||||
|
Reference in New Issue
Block a user