vue-devui 1.6.8 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-devui",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "license": "MIT",
5
5
  "description": "DevUI components based on Vite and Vue3",
6
6
  "keywords": [
@@ -358,6 +358,10 @@ const tooltipProps = {
358
358
  type: [String, Array],
359
359
  default: "top"
360
360
  },
361
+ align: {
362
+ type: String,
363
+ default: null
364
+ },
361
365
  showAnimation: {
362
366
  type: Boolean,
363
367
  default: true
@@ -381,6 +385,14 @@ const tooltipProps = {
381
385
  hideAfter: {
382
386
  type: Number,
383
387
  default: 0
388
+ },
389
+ overlayClass: {
390
+ type: String,
391
+ default: ""
392
+ },
393
+ teleport: {
394
+ type: [String, Object],
395
+ default: "body"
384
396
  }
385
397
  };
386
398
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -5872,7 +5884,10 @@ var DToolTip = defineComponent({
5872
5884
  }) {
5873
5885
  const {
5874
5886
  showAnimation,
5875
- content
5887
+ content,
5888
+ align,
5889
+ overlayClass,
5890
+ teleport
5876
5891
  } = toRefs(props);
5877
5892
  const origin = ref();
5878
5893
  const tooltipRef = ref();
@@ -5889,7 +5904,8 @@ var DToolTip = defineComponent({
5889
5904
  const className = computed(() => ({
5890
5905
  [ns2.b()]: true,
5891
5906
  [ns2.m(placement.value)]: true,
5892
- [ns2.m("with-content")]: slots.content
5907
+ [ns2.m("with-content")]: slots.content,
5908
+ [overlayClass.value]: true
5893
5909
  }));
5894
5910
  provide(POPPER_TRIGGER_TOKEN, origin);
5895
5911
  return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
@@ -5898,7 +5914,7 @@ var DToolTip = defineComponent({
5898
5914
  return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
5899
5915
  }
5900
5916
  }), createVNode(Teleport, {
5901
- "to": "body"
5917
+ "to": teleport.value
5902
5918
  }, {
5903
5919
  default: () => [createVNode(Transition, {
5904
5920
  "name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
@@ -5910,6 +5926,7 @@ var DToolTip = defineComponent({
5910
5926
  "class": className.value,
5911
5927
  "origin": origin.value,
5912
5928
  "position": positionArr.value,
5929
+ "align": align.value,
5913
5930
  "offset": 6,
5914
5931
  "show-arrow": true,
5915
5932
  "style": overlayStyles.value,