WGShare.Client.Wx/miniprogram_npm/tdesign-miniprogram/checkbox-group/checkbox-group.wxml

18 lines
568 B
Plaintext

<wxs src="../common/utils.wxs" module="_" />
<view class="{{ classPrefix }} class {{prefix}}-class" style="{{_._style([style, customStyle])}}">
<slot />
<block wx:for="{{checkboxOptions}}" wx:key="value">
<t-checkbox
class="{{prefix}}-checkbox-option"
label="{{item.label || item.text || ''}}"
value="{{item.value || ''}}"
content="{{item.content || ''}}"
check-all="{{item.checkAll}}"
disabled="{{item.disabled}}"
data-item="{{item}}"
bind:change="handleInnerChildChange"
></t-checkbox>
</block>
</view>