index.wxml 511 B

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