From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送
---
node_modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.uvue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/node_modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.uvue b/node_modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.uvue
index 398678e..53eb2ea 100644
--- a/node_modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.uvue
+++ b/node_modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.uvue
@@ -29,8 +29,8 @@
default: '#333333'
},
size: {
- type: Object,
- default: 16
+ type: [Number, String],
+ default: 16
},
fontFamily: {
type: String,
@@ -51,9 +51,9 @@
iconSize() : string {
const size = this.size
if (typeof size == 'string') {
- const reg = /^[0-9]*$/g
- return reg.test(size as string) ? '' + size + 'px' : '' + size;
- // return '' + this.size
+ const reg = /^[0-9]*$/g
+ return reg.test(size as string) ? '' + size + 'px' : '' + size;
+ // return '' + this.size
}
return this.getFontSize(size as number)
},
--
Gitblit v1.9.3