<template>
<view class="uni-dropdown">
<view class="trigger" @tap="toggleDropdown">{
{ showlabel }}</view>
<view class="dropdown-content" v-if="isOpen">
<view class="" style="position: relative;">
<text class="blk blk-a-xialakuang-xiala"></text>
</view>
<view style="max-height: 150px;overflow-y: auto;">
<view v-for="(item, index) in options" :key="index" :class="['dropdown-item', item.isred ? 'red' : '']"
@tap="selectOption(item)">
{
{ item[labelkey] }}
</view>
</view>
</view>
</view>
</template>
<script setup>
import {
ref,
watch,
} from 'vue';
const props = defineProps({
options: {
05-10