Merge branch 'dev' into feat/procedure-room-order
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user