海鲜小程序

index.wxml 788B

123456789101112131415161718192021
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <view class="van-checkbox custom-class">
  4. <view class="van-checkbox__icon-wrap" bindtap="toggle">
  5. <slot wx:if="{{ useIconSlot }}" name="icon" />
  6. <van-icon
  7. wx:else
  8. name="success"
  9. size="0.8em"
  10. class="{{ utils.bem('checkbox__icon', [shape, { disabled: disabled || parentDisabled, checked: value }]) }}"
  11. style="{{ computed.iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) }}"
  12. custom-class="icon-class"
  13. custom-style="line-height: 1.25em;"
  14. />
  15. </view>
  16. <view class="label-class {{ utils.bem('checkbox__label', [labelPosition, { disabled: disabled || parentDisabled }]) }}" bindtap="onClickLabel">
  17. <slot />
  18. </view>
  19. </view>