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