From 304bc2533999121c6556bcd173d2ef7128bbad71 Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Fri, 23 Feb 2024 21:01:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/upload/components/upload.vue | 7 +++++-- src/plugins/upload/config.ts | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/plugins/upload/components/upload.vue b/src/plugins/upload/components/upload.vue index 215aeb4..b626b85 100644 --- a/src/plugins/upload/components/upload.vue +++ b/src/plugins/upload/components/upload.vue @@ -222,7 +222,7 @@ const limitSize = props.limitSize || options.limit.size; // 文案 const text = computed(() => { - if (props.text) { + if (props.text !== undefined) { return props.text; } else { switch (props.type) { @@ -498,7 +498,10 @@ defineExpose({ .el-icon { font-size: 46px; - margin-bottom: 5px; + } + + .text { + margin-top: 5px; } &.is-dragger { diff --git a/src/plugins/upload/config.ts b/src/plugins/upload/config.ts index 6df4a80..17ef499 100644 --- a/src/plugins/upload/config.ts +++ b/src/plugins/upload/config.ts @@ -3,8 +3,8 @@ export default () => { label: "文件上传", description: "基于 el-upload 封装的文件上传组件", author: "COOL", - version: "1.1.2", - updateTime: "2024-02-21", + version: "1.1.3", + updateTime: "2024-02-23", demo: [ { name: "基础用法",