|  |  | 
 |  |  |     required: true | 
 |  |  |   }, | 
 |  |  |   modelValue: { | 
 |  |  |     type: String, | 
 |  |  |     type: Object as PropType<RoomVO>, | 
 |  |  |     required: true | 
 |  |  |   } | 
 |  |  | }) | 
 |  |  | 
 |  |  | }>(); | 
 |  |  |  | 
 |  |  | const onclick = (item) => { | 
 |  |  |   emit('update:modelValue', item.bedNo); | 
 |  |  |   emit('update:modelValue', item); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | </script> | 
 |  |  | 
 |  |  |     <template #header>{{title}}</template> | 
 |  |  |     <div v-for="(bedItem, index) in bedList" :key="index"> | 
 |  |  |       <div class="deskwarp"> | 
 |  |  |         <img v-if="modelValue !== bedItem.bedNo" | 
 |  |  |         <img v-if="modelValue.roomId !== bedItem.roomId || modelValue.bedNo !== bedItem.bedNo" | 
 |  |  |             src="@/assets/room/desk.png" | 
 |  |  |              style="width: 100%" | 
 |  |  |              @click = onclick(bedItem) | 
 
 |  |  | 
 |  |  |       <RoomBedSelect :title="key" :bedList="value" v-model="curSel"/> | 
 |  |  |     </div> | 
 |  |  |   </div> | 
 |  |  |   <el-button @click="roomConfirm">KKKK</el-button> | 
 |  |  | <!-- | 
 |  |  |   <el-button type="primary">Primary Button</el-button> | 
 |  |  |   <el-button type="success">Success Button</el-button> | 
 |  |  |   <el-button type="info">Info Button</el-button> | 
 |  |  |   <el-button type="warning">Warning Button</el-button> | 
 |  |  |   <el-button type="danger">Danger Button</el-button> | 
 |  |  | --> | 
 |  |  |   <el-button type="primary" @click="roomConfirm">确认</el-button> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | <script setup lang="ts"> | 
 |  |  | 
 |  |  |  | 
 |  |  | const bedMap = ref<Map<String, RoomVO[]>>() // 列表的数据 | 
 |  |  |  | 
 |  |  | const curSel = ref<String>("B2"); | 
 |  |  | const curSel = ref<RoomVO>({ | 
 |  |  |     id: 0, | 
 |  |  |     roomId: 0, | 
 |  |  |     roomName: "", | 
 |  |  |     bedNo: "", | 
 |  |  |     onstage: true | 
 |  |  |  }); | 
 |  |  |  | 
 |  |  | /** 查询列表 */ | 
 |  |  | const getList = async () => { | 
 |  |  | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const roomConfirm = () => { | 
 |  |  |   console.info(curSel.value) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | /** 初始化 **/ |