vant-weapp/packages/icon/index.wxml
2018-12-04 14:36:14 +08:00

19 lines
480 B
Plaintext

<view
class="custom-class {{ classPrefix }} {{ utils.isSrc(name) ? 'van-icon--image' : classPrefix + '-' + name }}"
style="{{ color ? 'color: ' + color + ';' : '' }}{{ size ? 'font-size: ' + size + ';' : '' }}{{ customStyle }}"
bind:tap="onClick"
>
<view
wx:if="{{ info !== null }}"
class="van-icon__info"
>
{{ info }}
</view>
<image
wx:if="{{ utils.isSrc(name) }}"
src="{{ name }}"
/>
</view>
<wxs src="../common/utils.wxs" module="utils" />