This commit is contained in:
icssoa 2023-05-27 15:50:41 +08:00
parent f66d2e8764
commit 46c86235c4

View File

@ -57,7 +57,7 @@
<slot>
<div class="cl-upload__item">
<el-icon :size="24"><picture-filled /></el-icon>
<span class="cl-upload__text">{{ text }}</span>
<span class="cl-upload__text" v-if="text">{{ text }}</span>
</div>
</slot>
</el-upload>
@ -238,7 +238,7 @@ const limit = props.limit || options.limit.upload;
const limitSize = props.limitSize || options.limit.size;
//
const text = props.text || options.text;
const text = props.text === undefined ? options.text : props.text;
//
const headers = computed(() => {