radio-group.wxml 952 B

1234567891011121314151617181920212223242526
  1. <wxs src="../common/utils.wxs" module="_" />
  2. <view style="{{_._style([style, customStyle])}}" class="{{classPrefix}} class {{prefix}}-class" aria-role="radiogroup">
  3. <slot />
  4. <block wx:for="{{radioOptions}}" wx:key="value">
  5. <t-radio
  6. class="{{prefix}}-radio-option"
  7. data-index="{{index}}"
  8. data-value="{{item.value}}"
  9. block="{{item.block || true}}"
  10. label="{{item.label || ''}}"
  11. value="{{item.value || index}}"
  12. checked="{{item.checked || false}}"
  13. content="{{item.content || ''}}"
  14. content-disabled="{{item.contentDisabled || false}}"
  15. disabled="{{item.disabled || false}}"
  16. icon="{{item.icon || icon}}"
  17. placement="{{item.placement || placement}}"
  18. max-content-row="{{item.maxContentRow || 5}}"
  19. max-label-row="{{item.maxLabelRow || 3}}"
  20. name="{{item.name || ''}}"
  21. borderless="{{borderless}}"
  22. bind:change="handleRadioChange"
  23. />
  24. </block>
  25. </view>