Blame view

src/wxcomponents/vant/icon/index.wxml 511 Bytes
289f85d9e   Adam   提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <view
    class="custom-class {{ classPrefix }} {{ isImageName ? 'van-icon--image' : classPrefix + '-' + name }}"
    style="{{ color ? 'color: ' + color + ';' : '' }}{{ size ? 'font-size: ' + sizeWithUnit + ';' : '' }}{{ customStyle }}"
    bind:tap="onClick"
  >
    <van-info
      wx:if="{{ info !== null || dot }}"
      dot="{{ dot }}"
      info="{{ info }}"
      custom-class="van-icon__info"
    />
    <image
      wx:if="{{ isImageName }}"
      src="{{ name }}"
      mode="aspectFit"
      class="van-icon__image"
    />
  </view>