Skip to content

Commit

Permalink
docs: sub menu aim
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Mar 23, 2022
1 parent df5e9e9 commit f06366c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/docs/src/guide/component.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ Nesting poppers inside other popper will automatically prevent the parents from

<SubMenuExample />

Floating Vue will automatically fix the [diagonal submenu problem](https://www.google.com/search?q=submenu%20diagonal%20problem) for you be detecting if the mouse is aiming at the popper content from the reference:

<div class="mx-auto" style="max-width:400px">
<img alt="popper aim debug example" src="./popper-aim.png" class="border border-gray-200 rounded">
</div>

## Disable popper

Disabling a popper will prevent it from being shown.
Expand Down
Binary file added packages/docs/src/guide/popper-aim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/docs/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ module.exports = {

purge: [
'src/.vuepress/components/**/*.vue',
'src/**/*.md',
],
}

0 comments on commit f06366c

Please sign in to comment.