mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-18 18:58:06 +08:00
增加微信小程序版
This commit is contained in:
1
liferestartWX/utils/wux/icon/index.js
Normal file
1
liferestartWX/utils/wux/icon/index.js
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Component({externalClasses:["wux-class"],properties:{type:{type:String,value:""},size:{type:[String,Number],value:32,observer:"updated"},color:{type:String,value:""},hidden:{type:Boolean,value:!1}},data:{fontSize:""},methods:{updated:function(t){var e=0<arguments.length&&void 0!==t?t:this.data.size,a=e;"number"==typeof e?a="".concat(e,"px"):"string"==typeof e&&(isNaN(Number(e))||(a="".concat(e,"px"))),this.data.fontSize!==a&&this.setData({fontSize:a})}},attached:function(){this.updated()}});
|
||||
Reference in New Issue
Block a user