SelectPopup.wxml 692 Bytes
<!-- components/SelectPopup/SelectPopup.wxml -->
<popup show="{{show}}" title="{{title}}" height="50%" bind:confirm="onConfirm" bind:hidePopup="onCancel" customPopupSlotStyle="overflow:auto;">
  <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' : ''}}" catchtap="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>