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="{
|
: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"]);
|
||||||
|
@ -109,6 +109,7 @@
|
|||||||
<slot name="item" :item="item" :index="index">
|
<slot name="item" :item="item" :index="index">
|
||||||
<div class="cl-upload__item">
|
<div class="cl-upload__item">
|
||||||
<upload-item
|
<upload-item
|
||||||
|
:show-tag="showTag"
|
||||||
:item="item"
|
:item="item"
|
||||||
:list="list"
|
:list="list"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@ -169,6 +170,11 @@ const props = defineProps({
|
|||||||
icon: null,
|
icon: null,
|
||||||
// 显示文案
|
// 显示文案
|
||||||
text: String,
|
text: String,
|
||||||
|
// 显示角标
|
||||||
|
showTag: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
// 是否显示上传列表
|
// 是否显示上传列表
|
||||||
showFileList: {
|
showFileList: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
Loading…
Reference in New Issue
Block a user