van-checkbox + dialog

ThisCall發表於2024-09-12

<van-dialog
      v-model="showParkingLot"
      title="選擇"
      show-cancel-button
      cancelButtonText="取消"
      confirmButtonColor="#2e7cf9"
      @confirm="confirm"
    >
      <div class="p10">
        <van-checkbox-group
          v-model="selectLots"
          class="flexca page-checkbox-radius"
        >
          <van-checkbox
            shape="square"
            v-for="(item, index) in baseArr"
            :key="index"
            :name="item.slotGroupName"
            class="mr20"
            >{{ item.slotGroupName }}</van-checkbox
          >
        </van-checkbox-group>
      </div>
    </van-dialog>

相關文章