bug修复
This commit is contained in:
@ -65,11 +65,14 @@
|
||||
>
|
||||
<plus-outlined v-if="listType == 'picture-card'" />
|
||||
<div :style="style" v-else>
|
||||
<a-button :loading="loading" :disabled="loading" v-if="!disabled">
|
||||
<upload-outlined />
|
||||
{{ btnTip || '点击上传' }}
|
||||
</a-button>
|
||||
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px">
|
||||
<UploadOutlined v-if="!isShowBtnIcon" style="font-size: 18px;" />
|
||||
<template v-else>
|
||||
<a-button :loading="loading" :disabled="loading" v-if="!disabled">
|
||||
<upload-outlined />
|
||||
{{btnTip || '上传'}}
|
||||
</a-button>
|
||||
</template>
|
||||
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()&& isShowTip" style="color: red; margin-top: 8px">
|
||||
{{ VITE_GLOB_UPLOAD_ALERT_TIP }}
|
||||
</div>
|
||||
</div>
|
||||
@ -173,6 +176,14 @@
|
||||
dataDelete: { // 是否调接口删除
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
isShowTip: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
isShowBtnIcon: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
});
|
||||
|
||||
@ -340,6 +351,7 @@
|
||||
};
|
||||
function handleClick() {
|
||||
list.value = [];
|
||||
emit('click');
|
||||
}
|
||||
const handleRemove = async (info) => {
|
||||
const id = info.response ? info.response.data.id : info.id;
|
||||
|
||||
Reference in New Issue
Block a user