@destyler/tooltip 0.0.1-beta.11 → 0.0.1-beta.13

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.
@@ -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), this.$slots.default?.());
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, this.$slots.default?.());
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
- }, this.$slots.default?.());
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
- }, this.$slots.default?.()) : null;
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), this.$slots.default?.());
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
- }, this.$slots.default?.()));
659
+ }, {
660
+ default: () => this.$slots.default?.()
661
+ }));
650
662
  }
651
663
  });
652
664
 
@@ -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), this.$slots.default?.());
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, this.$slots.default?.());
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
- }, this.$slots.default?.());
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
- }, this.$slots.default?.()) : null;
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), this.$slots.default?.());
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
- }, this.$slots.default?.()));
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.11",
3
+ "version": "0.0.1-beta.13",
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/dismissable-layer": "0.0.1-beta.11",
38
- "@destyler/popper": "0.0.1-beta.11",
39
- "@destyler/teleport": "0.0.1-beta.11",
40
- "@destyler/primitive": "0.0.1-beta.11",
41
- "@destyler/visually-hidden": "0.0.1-beta.11",
42
- "@destyler/composition": "0.0.1-beta.11",
43
- "@destyler/shared": "0.0.1-beta.11"
37
+ "@destyler/composition": "0.0.1-beta.13",
38
+ "@destyler/popper": "0.0.1-beta.13",
39
+ "@destyler/dismissable-layer": "0.0.1-beta.13",
40
+ "@destyler/visually-hidden": "0.0.1-beta.13",
41
+ "@destyler/primitive": "0.0.1-beta.13",
42
+ "@destyler/shared": "0.0.1-beta.13",
43
+ "@destyler/teleport": "0.0.1-beta.13"
44
44
  },
45
45
  "scripts": {
46
46
  "clear": "rimraf ./dist",