index.wxml 461 Bytes
Newer Older
程默 committed
1
<wxs src="./index.wxs" module="computed" />
李嘉林 committed
2 3

<view
程默 committed
4 5 6
  class="{{ computed.rootClass({ classPrefix, name }) }}"
  style="{{ computed.rootStyle({ customStyle, color, size }) }}"
  bindtap="onClick"
李嘉林 committed
7 8 9 10 11 12 13 14
>
  <van-info
    wx:if="{{ info !== null || dot }}"
    dot="{{ dot }}"
    info="{{ info }}"
    custom-class="van-icon__info"
  />
  <image
程默 committed
15
    wx:if="{{ computed.isImage(name) }}"
李嘉林 committed
16 17 18 19 20
    src="{{ name }}"
    mode="aspectFit"
    class="van-icon__image"
  />
</view>