icssoa 1 年之前
父節點
當前提交
304bc25339
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 5 2
      src/plugins/upload/components/upload.vue
  2. 2 2
      src/plugins/upload/config.ts

+ 5 - 2
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 {

+ 2 - 2
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: "基础用法",