index.wxml 492 B

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