index.wxml 461 B

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