index.wxml 484 B

1234567
  1. <view bind:tap="onCheckboxChangeTap" class="label label-{{placement}} label-placement-{{parentPlacement}} {{disabled ? 'label-disabled l-disabled-class' : 'l-class'}}">
  2. <view class="checkbox" style="color:{{checked ? selectColor : (disabled ? disabledColor : color)}};font-size: {{size}}">
  3. <slot wx:if="{{custom}}" name="icon"/>
  4. <view wx:else class="iconfont {{checked? 'icon-select': 'icon-unselect'}}"></view>
  5. </view>
  6. <slot/>
  7. </view>