2 <div class="border-white">
3 <div v-if="isShow" class="h-screen w-full fixed left-0 top-0 flex justify-center items-center bg-black bg-opacity-50">
5 <div class="bg-white rounded shadow-lg w-6/12">
7 <div class="border-b px-4 py-2 flex justify-between items-center">
8 <h2 class="font-semibold text-lg">{{title}}</h2>
9 <button class="text-black" @click="show">✗</button>
13 <ul class="select_box overflow-auto max-h-96">
14 <li class="hover:bg-indigo-200" v-for="head in lists" :key="head.id" @click="onSelected(head)">{{head.name}}</li>
17 <div class="flex justify-end items-center w-100 border-t p-3">
18 <button class="bg-red-600 hover:bg-red-700 px-3 py-1 rounded text-white mr-1" @click="show">Close</button>
48 this.isShow = !this.isShow
52 this.$emit("onSelected", _head)
64 <!-- Add "scoped" attribute to limit CSS to this component only -->
67 border: 1px solid #c5c5c5;
71 box-sizing: border-box;