chore: 上传组件增加 +号消失功能
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-08-16 17:33:41
|
||||
* @LastEditors: Hefeng 1057605508@qq.com
|
||||
* @LastEditTime: 2023-09-15 12:44:20
|
||||
* @LastEditTime: 2023-09-15 12:51:29
|
||||
* @FilePath: \th-components-vue3\packages\upload-list\index.vue
|
||||
* @Description:
|
||||
*
|
||||
@ -25,7 +25,7 @@
|
||||
<el-icon v-if="listType === 'picture-card'">
|
||||
<Plus />
|
||||
</el-icon>
|
||||
<el-button v-else type="primary" plain :disabled="disabled">
|
||||
<el-button v-if="listType !== 'picture-card' && userFiles.length < limit" type="primary" plain :disabled="disabled">
|
||||
点击上传
|
||||
</el-button>
|
||||
</slot>
|
||||
@ -57,6 +57,7 @@ const props = withDefaults(
|
||||
}>(), {
|
||||
fileList: () => [],
|
||||
maxsize: 100,
|
||||
limit: Infinity,
|
||||
},
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user