123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <wxs
- src="./index.wxs"
- module="utils" />
- <view
- class="ant-checklist {{ className || '' }}"
- style="{{ style || '' }}">
- <view class="ant-checklist-body">
- <block
- wx:for="{{ options }}"
- wx:for-index="index"
- wx:for-item="item">
- <ant-checklist-item
- checked="{{ utils.getChecked(item.value, mixin.value, multiple) }}"
- item="{{ item }}"
- bind:change="onChange">
- <view
- slot="content"
- class="ant-checklist-item-content-box-nut">
- <image
- wx:if="{{ item.image }}"
- class="ant-checklist-item-image"
- src="{{ item.image }}" />
- <view
- class="ant-checklist-item-text {{ item.image ? '' : 'ant-checklist-item-text-no-image' }}">
- <view
- class="ant-checklist-item-text-title {{ item.disabled ? 'ant-checklist-item-text-disabled' : '' }}">
- {{ item.title }}
- </view>
- <view
- wx:if="{{ item.description }}"
- class="ant-checklist-item-text-description {{ item.disabled ? 'ant-checklist-item-text-disabled' : '' }}">
- {{ item.description }}
- </view>
- </view>
- </view>
- <view slot="icon">
- <ant-icon
- type="CheckOutline"
- className="ant-checklist-item-check-icon" />
- </view>
- </ant-checklist-item>
- </block>
- </view>
- </view>
|