mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:28:49 +08:00
feat: FaPopover 组件增加手动控制面板显示
This commit is contained in:
@@ -23,10 +23,14 @@ const props = defineProps<{
|
||||
function handleOpenAutoFocus(e: Event) {
|
||||
e.preventDefault()
|
||||
}
|
||||
|
||||
const open = defineModel<boolean>('open', {
|
||||
default: false,
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Popover>
|
||||
<Popover v-model:open="open">
|
||||
<PopoverTrigger as-child>
|
||||
<slot />
|
||||
</PopoverTrigger>
|
||||
|
||||
Reference in New Issue
Block a user