vue-devui 1.6.8 → 1.6.10

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.
Files changed (57) hide show
  1. package/auto-complete/index.es.js +8 -24
  2. package/auto-complete/index.umd.js +15 -15
  3. package/category-search/index.es.js +8 -24
  4. package/category-search/index.umd.js +18 -18
  5. package/checkbox/index.es.js +14 -30
  6. package/checkbox/index.umd.js +17 -17
  7. package/data-grid/index.es.js +11 -27
  8. package/data-grid/index.umd.js +7 -7
  9. package/date-picker-pro/index.es.js +8 -24
  10. package/date-picker-pro/index.umd.js +12 -12
  11. package/editor-md/index.es.js +20 -4
  12. package/editor-md/index.umd.js +11 -11
  13. package/form/index.es.js +14 -30
  14. package/form/index.umd.js +12 -12
  15. package/input/index.es.js +14 -30
  16. package/input/index.umd.js +10 -10
  17. package/input-number/index.es.js +14 -30
  18. package/input-number/index.umd.js +13 -13
  19. package/mention/index.es.js +8 -24
  20. package/mention/index.umd.js +13 -13
  21. package/modal/index.es.js +18 -12
  22. package/modal/index.umd.js +7 -7
  23. package/package.json +1 -1
  24. package/pagination/index.es.js +8 -24
  25. package/pagination/index.umd.js +7 -7
  26. package/radio/index.es.js +14 -30
  27. package/radio/index.umd.js +19 -19
  28. package/search/index.es.js +20 -30
  29. package/search/index.umd.js +11 -11
  30. package/search/style.css +1 -1
  31. package/select/index.es.js +14 -30
  32. package/select/index.umd.js +9 -9
  33. package/splitter/index.es.js +20 -3
  34. package/splitter/index.umd.js +7 -7
  35. package/style.css +1 -1
  36. package/switch/index.es.js +8 -24
  37. package/switch/index.umd.js +15 -15
  38. package/table/index.es.js +28 -27
  39. package/table/index.umd.js +11 -11
  40. package/textarea/index.es.js +14 -30
  41. package/textarea/index.umd.js +18 -18
  42. package/time-picker/index.es.js +8 -24
  43. package/time-picker/index.umd.js +9 -9
  44. package/time-select/index.es.js +14 -30
  45. package/time-select/index.umd.js +14 -14
  46. package/tooltip/index.es.js +20 -3
  47. package/tooltip/index.umd.js +12 -12
  48. package/tree/index.es.js +8 -24
  49. package/tree/index.umd.js +9 -9
  50. package/types/form/src/components/form-item/form-item-types.d.ts +4 -0
  51. package/types/form/src/components/form-item/form-item.d.ts +9 -0
  52. package/types/search/src/search-types.d.ts +4 -0
  53. package/types/search/src/search.d.ts +9 -0
  54. package/types/tooltip/src/tooltip-types.d.ts +14 -1
  55. package/types/tooltip/src/tooltip.d.ts +27 -0
  56. package/vue-devui.es.js +56 -44
  57. package/vue-devui.umd.js +43 -43
@@ -7479,7 +7479,6 @@ function useEditorMd(props, ctx) {
7479
7479
  editorIns.on("cursorActivity", lodash.exports.throttle(cursorActivityHandler, hintConfig.value && hintConfig.value.throttleTime || 300));
7480
7480
  editorIns.setSize("auto", "100%");
7481
7481
  refreshEditorCursor();
7482
- editorIns.setCursor(editorIns.lineCount(), 0);
7483
7482
  ctx.emit("afterEditorInit", editorIns);
7484
7483
  editorIns.on("change", onChange);
7485
7484
  editorIns.on("scroll", onScroll);
@@ -8423,6 +8422,10 @@ const tooltipProps = {
8423
8422
  type: [String, Array],
8424
8423
  default: "top"
8425
8424
  },
8425
+ align: {
8426
+ type: String,
8427
+ default: null
8428
+ },
8426
8429
  showAnimation: {
8427
8430
  type: Boolean,
8428
8431
  default: true
@@ -8446,6 +8449,14 @@ const tooltipProps = {
8446
8449
  hideAfter: {
8447
8450
  type: Number,
8448
8451
  default: 0
8452
+ },
8453
+ overlayClass: {
8454
+ type: String,
8455
+ default: ""
8456
+ },
8457
+ teleport: {
8458
+ type: [String, Object],
8459
+ default: "body"
8449
8460
  }
8450
8461
  };
8451
8462
  const transformOriginMap = {
@@ -8525,7 +8536,10 @@ var Tooltip = defineComponent({
8525
8536
  }) {
8526
8537
  const {
8527
8538
  showAnimation,
8528
- content
8539
+ content,
8540
+ align,
8541
+ overlayClass,
8542
+ teleport
8529
8543
  } = toRefs(props);
8530
8544
  const origin = ref();
8531
8545
  const tooltipRef = ref();
@@ -8542,7 +8556,8 @@ var Tooltip = defineComponent({
8542
8556
  const className = computed(() => ({
8543
8557
  [ns2.b()]: true,
8544
8558
  [ns2.m(placement.value)]: true,
8545
- [ns2.m("with-content")]: slots.content
8559
+ [ns2.m("with-content")]: slots.content,
8560
+ [overlayClass.value]: true
8546
8561
  }));
8547
8562
  provide(POPPER_TRIGGER_TOKEN, origin);
8548
8563
  return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
@@ -8551,7 +8566,7 @@ var Tooltip = defineComponent({
8551
8566
  return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
8552
8567
  }
8553
8568
  }), createVNode(Teleport, {
8554
- "to": "body"
8569
+ "to": teleport.value
8555
8570
  }, {
8556
8571
  default: () => [createVNode(Transition, {
8557
8572
  "name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
@@ -8563,6 +8578,7 @@ var Tooltip = defineComponent({
8563
8578
  "class": className.value,
8564
8579
  "origin": origin.value,
8565
8580
  "position": positionArr.value,
8581
+ "align": align.value,
8566
8582
  "offset": 6,
8567
8583
  "show-arrow": true,
8568
8584
  "style": overlayStyles.value,