|
@@ -68,6 +68,7 @@
|
|
:style="{
|
|
:style="{
|
|
backgroundColor: tag.color
|
|
backgroundColor: tag.color
|
|
}"
|
|
}"
|
|
|
|
+ v-if="showTag"
|
|
>
|
|
>
|
|
{{ tag.name }}
|
|
{{ tag.name }}
|
|
</span>
|
|
</span>
|
|
@@ -125,8 +126,15 @@ const props = defineProps({
|
|
type: Array as PropType<Upload.Item[]>,
|
|
type: Array as PropType<Upload.Item[]>,
|
|
default: () => []
|
|
default: () => []
|
|
},
|
|
},
|
|
|
|
+ // 是否禁用
|
|
disabled: Boolean,
|
|
disabled: Boolean,
|
|
- deletable: Boolean
|
|
|
|
|
|
+ // 是否可以删除
|
|
|
|
+ deletable: Boolean,
|
|
|
|
+ // 显示角标
|
|
|
|
+ showTag: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: true
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
const emit = defineEmits(["remove"]);
|
|
const emit = defineEmits(["remove"]);
|