greenPro/unpackage/dist/dev/mp-weixin/pages/component/checkbox/checkbox.wxml

1 line
1.1 KiB
Plaintext
Raw Normal View History

2024-06-02 14:51:29 +00:00
<view><page-head wx:if="{{a}}" u-i="e4e77cf8-0" bind:__l="__l" u-p="{{a}}"></page-head><view class="uni-padding-wrap uni-common-mt"><view class="uni-title uni-common-mt">默认样式</view><view><checkbox-group><label><checkbox value="cb1" checked="true"/>选中 </label><label><checkbox value="cb"/>未选中 </label></checkbox-group></view><view class="uni-title uni-common-mt">不同颜色和尺寸的checkbox</view><view><checkbox-group><label><checkbox value="cb1" checked="true" color="#FFCC33" style="transform:scale(0.7)"/>选中 </label><label><checkbox value="cb" color="#FFCC33" style="transform:scale(0.7)"/>未选中 </label></checkbox-group></view></view><view class="uni-padding-wrap"><view class="uni-title uni-common-mt"> 推荐展示样式 <text>\n使用 uni-list 布局</text></view></view><view class="uni-list"><checkbox-group bindchange="{{c}}"><label wx:for="{{b}}" wx:for-item="item" wx:key="d" class="uni-list-cell uni-list-cell-pd"><view><checkbox value="{{item.a}}" checked="{{item.b}}"/></view><view>{{item.c}}</view></label></checkbox-group></view></view>