vue-tippy 4.14.0 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/Tippy.d.ts +421 -0
- package/dist/src/components/Tippy.d.ts.map +1 -0
- package/dist/src/components/TippySingleton.d.ts +266 -0
- package/dist/src/components/TippySingleton.d.ts.map +1 -0
- package/dist/src/composables/index.d.ts +4 -0
- package/dist/src/composables/index.d.ts.map +1 -0
- package/dist/src/composables/useSingleton.d.ts +6 -0
- package/dist/src/composables/useSingleton.d.ts.map +1 -0
- package/dist/src/composables/useTippy.d.ts +27 -0
- package/dist/src/composables/useTippy.d.ts.map +1 -0
- package/dist/src/composables/useTippyComponent.d.ts +8 -0
- package/dist/src/composables/useTippyComponent.d.ts.map +1 -0
- package/dist/src/directive/index.d.ts +4 -0
- package/dist/src/directive/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/plugin/index.d.ts +4 -0
- package/dist/src/plugin/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +21 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/vue-tippy.cjs +4789 -0
- package/dist/vue-tippy.d.ts +750 -0
- package/dist/vue-tippy.esm-browser.js +4460 -0
- package/dist/vue-tippy.esm.js +13 -3
- package/dist/vue-tippy.iife.js +4792 -0
- package/dist/vue-tippy.iife.prod.js +6 -0
- package/dist/vue-tippy.min.js +1 -1
- package/dist/vue-tippy.mjs +4460 -0
- package/dist/vue-tippy.prod.cjs +4473 -0
- package/dist/vue-tippy.umd.js +13 -3
- package/package.json +1 -1
- package/src/components/Tippy.vue +3 -3
- package/src/components/TippyNoStyles.vue +1 -1
- package/src/index.js +2 -0
package/dist/vue-tippy.umd.js
CHANGED
@@ -5094,13 +5094,22 @@
|
|
5094
5094
|
var _c = _vm._self._c || _h;
|
5095
5095
|
|
5096
5096
|
return _c(_vm.tag, {
|
5097
|
-
tag: "component"
|
5097
|
+
tag: "component",
|
5098
|
+
attrs: {
|
5099
|
+
"data-tippy-component": ""
|
5100
|
+
}
|
5098
5101
|
}, [_c(_vm.triggerTag || _vm.tag, {
|
5099
5102
|
ref: "trigger",
|
5100
|
-
tag: "component"
|
5103
|
+
tag: "component",
|
5104
|
+
attrs: {
|
5105
|
+
"data-tippy-component-trigger": ""
|
5106
|
+
}
|
5101
5107
|
}, [_vm._t("trigger")], 2), _vm._v(" "), _c(_vm.contentTag || _vm.tag, {
|
5102
5108
|
ref: "content",
|
5103
|
-
tag: "component"
|
5109
|
+
tag: "component",
|
5110
|
+
attrs: {
|
5111
|
+
"data-tippy-component-content": ""
|
5112
|
+
}
|
5104
5113
|
}, [_vm._t("default")], 2)], 1);
|
5105
5114
|
};
|
5106
5115
|
|
@@ -5136,6 +5145,7 @@
|
|
5136
5145
|
|
5137
5146
|
function createTippy(el, binding, vnode) {
|
5138
5147
|
var handlers = vnode.data && vnode.data.on || vnode.componentOptions && vnode.componentOptions.listeners;
|
5148
|
+
el.setAttribute('data-tippy-directive', '');
|
5139
5149
|
var opts = deriveOpts(binding);
|
5140
5150
|
var modifiers = Object.keys(binding.modifiers || {});
|
5141
5151
|
var placement = modifiers.find(function (modifier) {
|
package/package.json
CHANGED
package/src/components/Tippy.vue
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
<template>
|
2
|
-
<component :is="tag">
|
3
|
-
<component :is="triggerTag || tag" ref="trigger">
|
2
|
+
<component :is="tag" data-tippy-component>
|
3
|
+
<component :is="triggerTag || tag" ref="trigger" data-tippy-component-trigger>
|
4
4
|
<slot name="trigger"></slot>
|
5
5
|
</component>
|
6
6
|
|
7
|
-
<component :is="contentTag || tag" ref="content">
|
7
|
+
<component :is="contentTag || tag" ref="content" data-tippy-component-content>
|
8
8
|
<slot></slot>
|
9
9
|
</component>
|
10
10
|
</component>
|
package/src/index.js
CHANGED
@@ -14,6 +14,8 @@ const plugin = {
|
|
14
14
|
const handlers = (vnode.data && vnode.data.on) ||
|
15
15
|
(vnode.componentOptions && vnode.componentOptions.listeners)
|
16
16
|
|
17
|
+
el.setAttribute('data-tippy-directive', '')
|
18
|
+
|
17
19
|
let opts = deriveOpts(binding)
|
18
20
|
|
19
21
|
const modifiers = Object.keys(binding.modifiers || {})
|