checkbox-group.wxml 1020 B

123456789101112131415161718192021222324252627
  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. data-item="{{item}}"
  8. label="{{item.label || item.text || ''}}"
  9. value="{{item.value || ''}}"
  10. block="{{item.block || true}}"
  11. check-all="{{item.checkAll || false}}"
  12. checked="{{item.checked || false}}"
  13. content="{{item.content || ''}}"
  14. content-disabled="{{item.contentDisabled || false}}"
  15. icon="{{item.icon || 'circle'}}"
  16. indeterminate="{{item.indeterminate || false}}"
  17. disabled="{{item.disabled}}"
  18. max-content-row="{{item.maxContentRow || 5}}"
  19. max-label-row="{{item.maxLabelRow || 3}}"
  20. name="{{item.name || ''}}"
  21. readonly="{{item.readonly || false}}"
  22. bind:change="handleInnerChildChange"
  23. placement="{{item.placement || 'left'}}"
  24. />
  25. </block>
  26. </view>