Closed crystalfp closed 1 year ago
u can replace hide()
with dialogVisible = false
, I don't know what you are trying to do, but if you can provide some examples will be able to help more, normaly trigger button should be inside #default slot
u can check https://github.com/KABBOUCHI/vue-tippy/tree/main/playground for more component examples
Thanks @KABBOUCHI ! I tried without success to create a codesandbox.io example for you but without success.
Anyway, maybe I have the wrong expectations. I expect that the use of Tippy component and Tippy directives (that I use in my application) gives similar output: a little box on top of the button. Instead the content of the two slots is put next to the button as if the
I'm using VueTippy with great satisfaction. Thanks! Now I'm trying to use it as a component to investigate if it could be used as a popup notification. Maybe it is a bad idea, but just to experiment with Tippy as a component. The following code from the documentations renders the Tippy content flat at the same level of the button. Obviously clicking on the X button does nothing because I use a
v-if
instead of something from Tippy. What I'm missing?Seems not much documentation is devoted to the use as a component. Thanks! mario