diff --git a/src/plugins/upload/components/upload-item/index.vue b/src/plugins/upload/components/upload-item/index.vue index 8961dde..9f633e5 100644 --- a/src/plugins/upload/components/upload-item/index.vue +++ b/src/plugins/upload/components/upload-item/index.vue @@ -68,6 +68,7 @@ :style="{ backgroundColor: tag.color }" + v-if="showTag" > {{ tag.name }} @@ -125,8 +126,15 @@ const props = defineProps({ type: Array as PropType, default: () => [] }, + // 是否禁用 disabled: Boolean, - deletable: Boolean + // 是否可以删除 + deletable: Boolean, + // 显示角标 + showTag: { + type: Boolean, + default: true + } }); const emit = defineEmits(["remove"]); diff --git a/src/plugins/upload/components/upload.vue b/src/plugins/upload/components/upload.vue index b626b85..63c2742 100644 --- a/src/plugins/upload/components/upload.vue +++ b/src/plugins/upload/components/upload.vue @@ -109,6 +109,7 @@