index.wxml 387 B

123456789101112131415
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <view
  4. class="custom-class {{ utils.bem('tag', [type, size, { mark, plain, round }]) }}"
  5. style="{{ computed.rootStyle({ plain, color, textColor }) }}"
  6. >
  7. <slot />
  8. <van-icon
  9. wx:if="{{ closeable }}"
  10. name="cross"
  11. custom-class="van-tag__close"
  12. bind:click="onClose"
  13. />
  14. </view>