SelectPopup.wxml 776 Bytes
<!-- components/SelectPopup/SelectPopup.wxml -->
<!-- customPopupSlotStyle="overflow:auto;" -->
<popup
	customPopupSlotStyle="{{ 'height: calc(100% - 210rpx)' }}"
	show="{{ show }}"
	title="{{ title }}"
	height="55%"
	bind:confirm="onConfirm"
	bind:hidePopup="onCancel"
>
	<scroll-view scroll-y show-scrollbar="{{false}}" enhanced class="sp-list">
		<block wx:for="{{ displayOptions }}" wx:key="value">
			<view
				class="sp-item {{ item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : '' }}"
				bindtap="toggle"
				data-index="{{ index }}"
			>
				<text class="label">{{item[labelKey] || item.label || item.text}}</text>
				<image class="check" src="{{ IMG_URL }}customer/checked.png" wx:if="{{ item.checked }}" />
			</view>
		</block>
	</scroll-view>
</popup>