mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-16 21:02:42 +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()}});
|
||||
3
liferestartWX/utils/wux/icon/index.json
Normal file
3
liferestartWX/utils/wux/icon/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
1
liferestartWX/utils/wux/icon/index.wxml
Normal file
1
liferestartWX/utils/wux/icon/index.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="wux-class ion {{ type ? 'ion-' + type : '' }}" style="font-size: {{ fontSize }}; {{ color ? 'color: ' + color : '' }}" hidden="{{ hidden }}"></view>
|
||||
15
liferestartWX/utils/wux/icon/index.wxss
Normal file
15
liferestartWX/utils/wux/icon/index.wxss
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user