fix: refine provider model test dialog

This commit is contained in:
mayrain
2026-05-12 20:11:37 +08:00
parent 9f26383de5
commit 43c476d54a
10 changed files with 1482 additions and 256 deletions

View File

@@ -87,7 +87,7 @@ const props = withDefaults(defineProps<Props>(), {
sideOffset: 4,
align: undefined,
alignOffset: undefined,
disablePortal: false,
disablePortal: undefined,
searchable: true,
searchThreshold: 8,
searchPlaceholder: '输入关键词搜索...',
@@ -95,7 +95,7 @@ const props = withDefaults(defineProps<Props>(), {
const isInsideDialog = inject(DIALOG_CONTEXT_KEY, false)
const shouldDisablePortal = computed(
() => props.disablePortal || isInsideDialog,
() => props.disablePortal ?? isInsideDialog,
)
const searchQuery = ref('')
const searchInputRef = ref<InstanceType<typeof Input> | null>(null)