checkbox-group.wxml 568 B

1234567891011121314151617
  1. <wxs src="../common/utils.wxs" module="_" />
  2. <view class="{{ classPrefix }} class {{prefix}}-class" style="{{_._style([style, customStyle])}}">
  3. <slot />
  4. <block wx:for="{{checkboxOptions}}" wx:key="value">
  5. <t-checkbox
  6. class="{{prefix}}-checkbox-option"
  7. label="{{item.label || item.text || ''}}"
  8. value="{{item.value || ''}}"
  9. content="{{item.content || ''}}"
  10. check-all="{{item.checkAll}}"
  11. disabled="{{item.disabled}}"
  12. data-item="{{item}}"
  13. bind:change="handleInnerChildChange"
  14. ></t-checkbox>
  15. </block>
  16. </view>