From 9ed0804ceaf2b46cfa6497b8e2cccaaacdacf86c Mon Sep 17 00:00:00 2001 From: hirakei1203 Date: Thu, 24 Nov 2022 23:57:27 +0900 Subject: [PATCH] replace popper to floating-vue --- .../tooltip/examples/TooltipExample.vue | 27 +- .../examples/TooltipPositionExample.vue | 56 +++ .../tooltip/examples/TooltipStyleExample.vue | 56 ++- .../examples/TooltipTriggerExample.vue | 43 ++- docs/components/tooltip/tooltip.md | 320 +++++++----------- package.json | 4 +- src/components/Tooltip/Tooltip.vue | 86 +++-- src/components/Tooltip/types.ts | 3 +- 8 files changed, 290 insertions(+), 305 deletions(-) create mode 100644 docs/components/tooltip/examples/TooltipPositionExample.vue diff --git a/docs/components/tooltip/examples/TooltipExample.vue b/docs/components/tooltip/examples/TooltipExample.vue index ab2fbe4..abcb21d 100644 --- a/docs/components/tooltip/examples/TooltipExample.vue +++ b/docs/components/tooltip/examples/TooltipExample.vue @@ -1,32 +1,17 @@ - + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipPositionExample.vue b/docs/components/tooltip/examples/TooltipPositionExample.vue new file mode 100644 index 0000000..2bb0c8a --- /dev/null +++ b/docs/components/tooltip/examples/TooltipPositionExample.vue @@ -0,0 +1,56 @@ + + + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipStyleExample.vue b/docs/components/tooltip/examples/TooltipStyleExample.vue index fdaf066..cd7df53 100644 --- a/docs/components/tooltip/examples/TooltipStyleExample.vue +++ b/docs/components/tooltip/examples/TooltipStyleExample.vue @@ -1,34 +1,32 @@ - + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipTriggerExample.vue b/docs/components/tooltip/examples/TooltipTriggerExample.vue index 1edbcf7..84160a3 100644 --- a/docs/components/tooltip/examples/TooltipTriggerExample.vue +++ b/docs/components/tooltip/examples/TooltipTriggerExample.vue @@ -1,21 +1,30 @@ @@ -7,10 +8,7 @@ import TooltipTriggerExample from './examples/TooltipTriggerExample.vue' ## Demo - - - - + ```vue -``` - -## Placement - -The positioning of the tooltip element relative to the triggering element (eg. button, link) can be set using placement attribute with `top`, `top-start` , `top-end`, `bottom`, `bottom-start`, `bottom-end`, `right`, `right-start`, `right-end`, `left`, `left-start`, `left-end`, `auto`, `auto-start`, `auto-end`. -The default value is: `top` - -
- - - - - - - - - - - - - - - - - - - - -
- -```vue - - - ``` @@ -139,31 +34,7 @@ import { Tooltip } from 'flowbite-vue' You can use choose between dark and light version styles for the tooltip component by changing the utility classes from Tailwind CSS and by applying the `tooltip-light` or `tooltip-dark` attribute. -
- - - - - - - - - -
+ ```vue - + - - - + - ``` +## Placement + +The positioning of the tooltip element relative to the triggering element (eg. button, link) can be set using placement attribute with `top`, `top-start` , `top-end`, `bottom`, `bottom-start`, `bottom-end`, `right`, `right-start`, `right-end`, `left`, `left-start`, `left-end`, `auto`, `auto-start`, `auto-end`. +The default value is: `top` + + + +```vue + + +