@destyler/tooltip 0.0.1-beta.11 → 0.0.1-beta.12
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/component.cjs +18 -6
- package/dist/component.mjs +18 -6
- package/package.json +8 -8
package/dist/component.cjs
CHANGED
|
@@ -36,7 +36,9 @@ const DestylerTooltipArrow = vue.defineComponent({
|
|
|
36
36
|
name: "DestylerTooltipArrow",
|
|
37
37
|
props: destylerTooltipArrowProps,
|
|
38
38
|
render() {
|
|
39
|
-
return vue.h(popper.DestylerPopperArrow, vue.mergeProps(this.$props),
|
|
39
|
+
return vue.h(popper.DestylerPopperArrow, vue.mergeProps(this.$props), {
|
|
40
|
+
default: () => this.$slots.default?.()
|
|
41
|
+
});
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
|
|
@@ -310,7 +312,9 @@ const DestylerTooltipRoot = vue.defineComponent({
|
|
|
310
312
|
});
|
|
311
313
|
},
|
|
312
314
|
render() {
|
|
313
|
-
return vue.h(popper.DestylerPopperRoot,
|
|
315
|
+
return vue.h(popper.DestylerPopperRoot, null, {
|
|
316
|
+
default: () => this.$slots.default?.()
|
|
317
|
+
});
|
|
314
318
|
}
|
|
315
319
|
});
|
|
316
320
|
|
|
@@ -518,7 +522,9 @@ const DestylerTooltipContentHoverable = vue.defineComponent({
|
|
|
518
522
|
return vue.h(DestylerTooltipContentImpl, {
|
|
519
523
|
ref: "customElement",
|
|
520
524
|
...vue.mergeProps(this.$props)
|
|
521
|
-
},
|
|
525
|
+
}, {
|
|
526
|
+
default: () => this.$slots.default?.()
|
|
527
|
+
});
|
|
522
528
|
}
|
|
523
529
|
});
|
|
524
530
|
|
|
@@ -542,7 +548,9 @@ const DestylerTooltipContent = vue.defineComponent({
|
|
|
542
548
|
const useVShow = this.rootContext.open.value;
|
|
543
549
|
return useVShow ? vue.h(this.rootContext.disableHoverableContent.value ? DestylerTooltipContentImpl : DestylerTooltipContentHoverable, {
|
|
544
550
|
...this.forwarded
|
|
545
|
-
},
|
|
551
|
+
}, {
|
|
552
|
+
default: () => this.$slots.default?.()
|
|
553
|
+
}) : null;
|
|
546
554
|
}
|
|
547
555
|
});
|
|
548
556
|
|
|
@@ -567,7 +575,9 @@ const DestylerTooltipPortal = vue.defineComponent({
|
|
|
567
575
|
name: "DestylerTooltipPortal",
|
|
568
576
|
props: destylerTooltipPortalProps,
|
|
569
577
|
render() {
|
|
570
|
-
return vue.h(teleport.DestylerTeleport, vue.mergeProps(this.$props),
|
|
578
|
+
return vue.h(teleport.DestylerTeleport, vue.mergeProps(this.$props), {
|
|
579
|
+
default: () => this.$slots.default?.()
|
|
580
|
+
});
|
|
571
581
|
}
|
|
572
582
|
});
|
|
573
583
|
|
|
@@ -646,7 +656,9 @@ const DestylerTooltipTrigger = vue.defineComponent({
|
|
|
646
656
|
if (!this.rootContext.disableClosingTrigger.value)
|
|
647
657
|
this.rootContext.onClose();
|
|
648
658
|
}
|
|
649
|
-
},
|
|
659
|
+
}, {
|
|
660
|
+
default: () => this.$slots.default?.()
|
|
661
|
+
}));
|
|
650
662
|
}
|
|
651
663
|
});
|
|
652
664
|
|
package/dist/component.mjs
CHANGED
|
@@ -34,7 +34,9 @@ const DestylerTooltipArrow = defineComponent({
|
|
|
34
34
|
name: "DestylerTooltipArrow",
|
|
35
35
|
props: destylerTooltipArrowProps,
|
|
36
36
|
render() {
|
|
37
|
-
return h(DestylerPopperArrow, mergeProps(this.$props),
|
|
37
|
+
return h(DestylerPopperArrow, mergeProps(this.$props), {
|
|
38
|
+
default: () => this.$slots.default?.()
|
|
39
|
+
});
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
|
|
@@ -308,7 +310,9 @@ const DestylerTooltipRoot = defineComponent({
|
|
|
308
310
|
});
|
|
309
311
|
},
|
|
310
312
|
render() {
|
|
311
|
-
return h(DestylerPopperRoot,
|
|
313
|
+
return h(DestylerPopperRoot, null, {
|
|
314
|
+
default: () => this.$slots.default?.()
|
|
315
|
+
});
|
|
312
316
|
}
|
|
313
317
|
});
|
|
314
318
|
|
|
@@ -516,7 +520,9 @@ const DestylerTooltipContentHoverable = defineComponent({
|
|
|
516
520
|
return h(DestylerTooltipContentImpl, {
|
|
517
521
|
ref: "customElement",
|
|
518
522
|
...mergeProps(this.$props)
|
|
519
|
-
},
|
|
523
|
+
}, {
|
|
524
|
+
default: () => this.$slots.default?.()
|
|
525
|
+
});
|
|
520
526
|
}
|
|
521
527
|
});
|
|
522
528
|
|
|
@@ -540,7 +546,9 @@ const DestylerTooltipContent = defineComponent({
|
|
|
540
546
|
const useVShow = this.rootContext.open.value;
|
|
541
547
|
return useVShow ? h(this.rootContext.disableHoverableContent.value ? DestylerTooltipContentImpl : DestylerTooltipContentHoverable, {
|
|
542
548
|
...this.forwarded
|
|
543
|
-
},
|
|
549
|
+
}, {
|
|
550
|
+
default: () => this.$slots.default?.()
|
|
551
|
+
}) : null;
|
|
544
552
|
}
|
|
545
553
|
});
|
|
546
554
|
|
|
@@ -565,7 +573,9 @@ const DestylerTooltipPortal = defineComponent({
|
|
|
565
573
|
name: "DestylerTooltipPortal",
|
|
566
574
|
props: destylerTooltipPortalProps,
|
|
567
575
|
render() {
|
|
568
|
-
return h(DestylerTeleport, mergeProps(this.$props),
|
|
576
|
+
return h(DestylerTeleport, mergeProps(this.$props), {
|
|
577
|
+
default: () => this.$slots.default?.()
|
|
578
|
+
});
|
|
569
579
|
}
|
|
570
580
|
});
|
|
571
581
|
|
|
@@ -644,7 +654,9 @@ const DestylerTooltipTrigger = defineComponent({
|
|
|
644
654
|
if (!this.rootContext.disableClosingTrigger.value)
|
|
645
655
|
this.rootContext.onClose();
|
|
646
656
|
}
|
|
647
|
-
},
|
|
657
|
+
}, {
|
|
658
|
+
default: () => this.$slots.default?.()
|
|
659
|
+
}));
|
|
648
660
|
}
|
|
649
661
|
});
|
|
650
662
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/tooltip",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.12",
|
|
4
4
|
"description": "unstyled tooltip component for vue",
|
|
5
5
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@vueuse/core": "^10.7.2",
|
|
37
|
-
"@destyler/
|
|
38
|
-
"@destyler/
|
|
39
|
-
"@destyler/
|
|
40
|
-
"@destyler/
|
|
41
|
-
"@destyler/
|
|
42
|
-
"@destyler/
|
|
43
|
-
"@destyler/
|
|
37
|
+
"@destyler/composition": "0.0.1-beta.12",
|
|
38
|
+
"@destyler/dismissable-layer": "0.0.1-beta.12",
|
|
39
|
+
"@destyler/popper": "0.0.1-beta.12",
|
|
40
|
+
"@destyler/teleport": "0.0.1-beta.12",
|
|
41
|
+
"@destyler/shared": "0.0.1-beta.12",
|
|
42
|
+
"@destyler/primitive": "0.0.1-beta.12",
|
|
43
|
+
"@destyler/visually-hidden": "0.0.1-beta.12"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"clear": "rimraf ./dist",
|