Skip to content

Commit 6d58f1c

Browse files
committed
feat: FaPopover 组件增加手动控制面板显示
1 parent abac8e0 commit 6d58f1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ui/components/FaPopover/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ const props = defineProps<{
2323
function handleOpenAutoFocus(e: Event) {
2424
e.preventDefault()
2525
}
26+
27+
const open = defineModel<boolean>('open', {
28+
default: false,
29+
})
2630
</script>
2731

2832
<template>
29-
<Popover>
33+
<Popover v-model:open="open">
3034
<PopoverTrigger as-child>
3135
<slot />
3236
</PopoverTrigger>

0 commit comments

Comments
 (0)