添加图标和组件

This commit is contained in:
zhengw
2026-01-29 11:46:28 +08:00
parent 8960c8ea73
commit df67413bf8
9 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<!-- 选项组件 -->
<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>