index.axml 561 B

12345678910
  1. <view class='tag-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <view class="{{customClass}} {{ utils.bem('tag', [type, size, { mark, plain, round }]) }}" style="{{ color && !plain ? 'background-color: ' + color + ';' : '' }}{{ textColor || (color && plain) ? 'color: ' + (textColor || color) : '' }}">
  5. <slot>
  6. </slot>
  7. <van-icon a:if='{{ closeable }}' name='cross' custom-class='van-tag__close' onClick='onClose' ref='saveChildRef1'>
  8. </van-icon>
  9. </view>
  10. </view>