21 lines
794 B
Plaintext
21 lines
794 B
Plaintext
|
|
<!-- 选项组件 -->
|
||
|
|
<t-cell title="{{title || ''}}">
|
||
|
|
<t-checkbox-group wx:if="{{mode == 'checkbox'}}" slot="note" bind:change="onOptionsChange"
|
||
|
|
value="{{value||[]}}">
|
||
|
|
<block wx:for="{{options}}" wx:key="index">
|
||
|
|
<t-checkbox icon="rectangle" borderless="{{true}}" block="{{false}}" value="{{item.value}}"
|
||
|
|
style="margin-right: 16rpx;">
|
||
|
|
{{item.label}}
|
||
|
|
</t-checkbox>
|
||
|
|
</block>
|
||
|
|
</t-checkbox-group>
|
||
|
|
<t-radio-group wx:elif="{{mode == 'radio'}}" slot="note" bind:change="onOptionsChange"
|
||
|
|
value="{{value}}">
|
||
|
|
<block wx:for="{{options}}" wx:key="index">
|
||
|
|
<t-radio borderless="{{true}}" block="{{false}}" value="{{item.value}}"
|
||
|
|
style="margin-right: 16rpx;">
|
||
|
|
{{item.label}}
|
||
|
|
</t-radio>
|
||
|
|
</block>
|
||
|
|
</t-radio-group>
|
||
|
|
</t-cell>
|