初始化
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<wxs module="utils">
|
||||
var double = function(a) {
|
||||
return 2*a
|
||||
};
|
||||
var ifSpecialIcon = function(v) {
|
||||
return v === 'arrow' || v === 'back'
|
||||
}
|
||||
module.exports = {
|
||||
double: double,
|
||||
ifSpecialIcon: ifSpecialIcon
|
||||
}
|
||||
</wxs>
|
||||
|
||||
<view class="{{extClass}} weui-icon" style="background:{{color}};width:{{size}}px;height:{{ utils.ifSpecialIcon(icon) ? utils.double(size) : size}}px;mask-image:url({{src}});-webkit-mask-image:url({{src}});-moz-mask-image:url({{src}})"></view>
|
||||
@@ -0,0 +1 @@
|
||||
.weui-icon{vertical-align:middle;display:inline-block;background:black;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;-moz-mask-repeat:no-repeat;mask-size:cover;-webkit-mask-size:cover;-moz-mask-size:cover}
|
||||
Reference in New Issue
Block a user