feat: limit属性
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-08-16 17:33:41
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-09-14 12:57:29
|
||||
* @LastEditTime: 2023-09-14 13:26:42
|
||||
* @FilePath: \vue3\packages\upload-list\index.vue
|
||||
* @Description:
|
||||
*
|
||||
@ -15,6 +15,7 @@
|
||||
:before-upload="beforeUpload"
|
||||
:http-request="httpRequest"
|
||||
:list-type="listType"
|
||||
:limit="limit"
|
||||
@preview="preview"
|
||||
@success="success"
|
||||
@remove="remove"
|
||||
@ -50,6 +51,8 @@ const props = withDefaults(
|
||||
maxsize?: number
|
||||
/** 文件列表的类型 */
|
||||
listType?: 'text' | 'picture' | 'picture-card'
|
||||
/** 允许上传文件的最大数量 */
|
||||
limit?: number
|
||||
}>(), {
|
||||
fileList: () => [],
|
||||
maxsize: 100,
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-08-16 17:33:41
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-09-14 13:21:59
|
||||
* @LastEditTime: 2023-09-14 13:25:41
|
||||
* @FilePath: \vue3\stories\UploadList.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
@ -59,6 +59,7 @@ const meta = {
|
||||
filePath: '/',
|
||||
maxsize: 100,
|
||||
listType: 'text',
|
||||
limit: 12,
|
||||
},
|
||||
argTypes: {
|
||||
listType: {
|
||||
|
Reference in New Issue
Block a user