filesbox/miniprogram/FilesBox/miniprogram_npm/@vant/weapp/icon/index.wxml
2023-09-21 10:23:31 +08:00

21 lines
461 B
Plaintext

<wxs src="./index.wxs" module="computed" />
<view
class="{{ computed.rootClass({ classPrefix, name }) }}"
style="{{ computed.rootStyle({ customStyle, color, size }) }}"
bindtap="onClick"
>
<van-info
wx:if="{{ info !== null || dot }}"
dot="{{ dot }}"
info="{{ info }}"
custom-class="van-icon__info"
/>
<image
wx:if="{{ computed.isImage(name) }}"
src="{{ name }}"
mode="aspectFit"
class="van-icon__image"
/>
</view>