Merge branch 'dev' into feat/procedure-room-order

This commit is contained in:
Andrian Roshandy
2025-12-03 10:02:57 +07:00
@@ -1,6 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { cn } from '~/lib/utils' import { cn } from '~/lib/utils'
import { type Item } from './index' import { type Item } from './index'
const props = defineProps<{ const props = defineProps<{
@@ -14,6 +13,8 @@ const props = defineProps<{
isDisabled?: boolean isDisabled?: boolean
}>() }>()
const model = defineModel()
const emit = defineEmits<{ const emit = defineEmits<{
'update:modelValue': [value: string] 'update:modelValue': [value: string]
'update:searchText': [value: string] 'update:searchText': [value: string]
@@ -57,6 +58,7 @@ const searchableItems = computed(() => {
}) })
function onSelect(item: Item) { function onSelect(item: Item) {
model.value = item.value
emit('update:modelValue', item.value) emit('update:modelValue', item.value)
open.value = false open.value = false
} }