diff --git a/docs/components/content/examples/PopoverExampleOpen.vue b/docs/components/content/examples/PopoverExampleOpen.vue new file mode 100644 index 0000000000..98ee0651a5 --- /dev/null +++ b/docs/components/content/examples/PopoverExampleOpen.vue @@ -0,0 +1,18 @@ + + + diff --git a/docs/content/6.overlays/3.popover.md b/docs/content/6.overlays/3.popover.md index 569657b22b..b8286843a8 100644 --- a/docs/content/6.overlays/3.popover.md +++ b/docs/content/6.overlays/3.popover.md @@ -19,6 +19,12 @@ Use the `mode` prop to switch between `click` and `hover` modes. :component-example{component="popover-example-mode"} +### Manual + +Use the `open` prop to manually control showing the panel. + +:component-example{component="popover-example-open"} + ## Slots ### `panel` diff --git a/src/runtime/components/overlays/Popover.vue b/src/runtime/components/overlays/Popover.vue index 1b39c63350..1973837109 100644 --- a/src/runtime/components/overlays/Popover.vue +++ b/src/runtime/components/overlays/Popover.vue @@ -1,5 +1,5 @@