vue-devui 1.5.14 → 1.5.15

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.
@@ -8531,9 +8531,11 @@ var Tooltip = defineComponent({
8531
8531
  onMouseenterOverlay
8532
8532
  } = useTooltip(origin, props);
8533
8533
  const ns2 = useNamespace("tooltip");
8534
- const className = computed(() => {
8535
- return [ns2.b(), ns2.m(placement.value)].join(" ");
8536
- });
8534
+ const className = computed(() => ({
8535
+ [ns2.b()]: true,
8536
+ [ns2.m(placement.value)]: true,
8537
+ [ns2.m("with-content")]: slots.content
8538
+ }));
8537
8539
  provide(POPPER_TRIGGER_TOKEN, origin);
8538
8540
  return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
8539
8541
  default: () => {
@@ -8560,9 +8562,12 @@ var Tooltip = defineComponent({
8560
8562
  "onMouseenter": onMouseenterOverlay,
8561
8563
  "onMouseleave": onMouseleave
8562
8564
  }, {
8563
- default: () => [createVNode("span", {
8564
- "innerHTML": content.value
8565
- }, null)]
8565
+ default: () => {
8566
+ var _a;
8567
+ return [slots.content ? (_a = slots.content) == null ? void 0 : _a.call(slots) : createVNode("span", {
8568
+ "innerHTML": content.value
8569
+ }, null)];
8570
+ }
8566
8571
  })]
8567
8572
  })]
8568
8573
  })]);