vue-devui 1.6.7 → 1.6.9

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.
@@ -8423,6 +8423,10 @@ const tooltipProps = {
8423
8423
  type: [String, Array],
8424
8424
  default: "top"
8425
8425
  },
8426
+ align: {
8427
+ type: String,
8428
+ default: null
8429
+ },
8426
8430
  showAnimation: {
8427
8431
  type: Boolean,
8428
8432
  default: true
@@ -8446,6 +8450,14 @@ const tooltipProps = {
8446
8450
  hideAfter: {
8447
8451
  type: Number,
8448
8452
  default: 0
8453
+ },
8454
+ overlayClass: {
8455
+ type: String,
8456
+ default: ""
8457
+ },
8458
+ teleport: {
8459
+ type: [String, Object],
8460
+ default: "body"
8449
8461
  }
8450
8462
  };
8451
8463
  const transformOriginMap = {
@@ -8525,7 +8537,10 @@ var Tooltip = defineComponent({
8525
8537
  }) {
8526
8538
  const {
8527
8539
  showAnimation,
8528
- content
8540
+ content,
8541
+ align,
8542
+ overlayClass,
8543
+ teleport
8529
8544
  } = toRefs(props);
8530
8545
  const origin = ref();
8531
8546
  const tooltipRef = ref();
@@ -8542,7 +8557,8 @@ var Tooltip = defineComponent({
8542
8557
  const className = computed(() => ({
8543
8558
  [ns2.b()]: true,
8544
8559
  [ns2.m(placement.value)]: true,
8545
- [ns2.m("with-content")]: slots.content
8560
+ [ns2.m("with-content")]: slots.content,
8561
+ [overlayClass.value]: true
8546
8562
  }));
8547
8563
  provide(POPPER_TRIGGER_TOKEN, origin);
8548
8564
  return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
@@ -8551,7 +8567,7 @@ var Tooltip = defineComponent({
8551
8567
  return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
8552
8568
  }
8553
8569
  }), createVNode(Teleport, {
8554
- "to": "body"
8570
+ "to": teleport.value
8555
8571
  }, {
8556
8572
  default: () => [createVNode(Transition, {
8557
8573
  "name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
@@ -8563,6 +8579,7 @@ var Tooltip = defineComponent({
8563
8579
  "class": className.value,
8564
8580
  "origin": origin.value,
8565
8581
  "position": positionArr.value,
8582
+ "align": align.value,
8566
8583
  "offset": 6,
8567
8584
  "show-arrow": true,
8568
8585
  "style": overlayStyles.value,