index.axml 1022 B

123456789101112131415161718
  1. <view class='checkbox-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='computed'>
  3. </import-sjs>
  4. <import-sjs from='../wxs/utils.sjs' name='utils'>
  5. </import-sjs>
  6. <view class='van-checkbox {{customClass}}'>
  7. <view class='van-checkbox__icon-wrap' onTap='antmoveAction' data-antmove-tap='toggle'>
  8. <slot a:if='{{ useIconSlot }}' name='icon'>
  9. </slot>
  10. <van-icon a:else name='success' size='0.8em' class="{{ utils.bem('checkbox__icon', [shape, { disabled: disabled || parentDisabled, checked: value }]) }}" style='{{ computed.iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) }}' custom-class='{{iconClass}}' custom-style='line-height: 1.25em;' ref='saveChildRef1'>
  11. </van-icon>
  12. </view>
  13. <view class="{{labelClass}} {{ utils.bem('checkbox__label', [labelPosition, { disabled: disabled || parentDisabled }]) }}" onTap='antmoveAction' data-antmove-tap='onClickLabel'>
  14. <slot>
  15. </slot>
  16. </view>
  17. </view>
  18. </view>