This commit is contained in:
icssoa 2024-02-23 22:17:54 +08:00
parent 304bc25339
commit 45c88218ec
2 changed files with 15 additions and 1 deletions

View File

@ -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"]);

View File

@ -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,