mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化
This commit is contained in:
parent
304bc25339
commit
45c88218ec
@ -68,6 +68,7 @@
|
||||
:style="{
|
||||
backgroundColor: tag.color
|
||||
}"
|
||||
v-if="showTag"
|
||||
>
|
||||
{{ tag.name }}
|
||||
</span>
|
||||
@ -125,8 +126,15 @@ const props = defineProps({
|
||||
type: Array as PropType<Upload.Item[]>,
|
||||
default: () => []
|
||||
},
|
||||
// 是否禁用
|
||||
disabled: Boolean,
|
||||
deletable: Boolean
|
||||
// 是否可以删除
|
||||
deletable: Boolean,
|
||||
// 显示角标
|
||||
showTag: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
});
|
||||
|
||||
const emit = defineEmits(["remove"]);
|
||||
|
@ -109,6 +109,7 @@
|
||||
<slot name="item" :item="item" :index="index">
|
||||
<div class="cl-upload__item">
|
||||
<upload-item
|
||||
:show-tag="showTag"
|
||||
:item="item"
|
||||
:list="list"
|
||||
:disabled="disabled"
|
||||
@ -169,6 +170,11 @@ const props = defineProps({
|
||||
icon: null,
|
||||
// 显示文案
|
||||
text: String,
|
||||
// 显示角标
|
||||
showTag: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
// 是否显示上传列表
|
||||
showFileList: {
|
||||
type: Boolean,
|
||||
|
Loading…
Reference in New Issue
Block a user