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
@@ -1322,7 +1322,7 @@ var lodash = { exports: {} };
1322
1322
  if (typeof func != "function") {
1323
1323
  throw new TypeError2(FUNC_ERROR_TEXT);
1324
1324
  }
1325
- return setTimeout2(function() {
1325
+ return setTimeout(function() {
1326
1326
  func.apply(undefined$1, args);
1327
1327
  }, wait);
1328
1328
  }
@@ -3131,7 +3131,7 @@ var lodash = { exports: {} };
3131
3131
  return object4[key];
3132
3132
  }
3133
3133
  var setData = shortOut(baseSetData);
3134
- var setTimeout2 = ctxSetTimeout || function(func, wait) {
3134
+ var setTimeout = ctxSetTimeout || function(func, wait) {
3135
3135
  return root.setTimeout(func, wait);
3136
3136
  };
3137
3137
  var setToString = shortOut(baseSetToString);
@@ -3923,7 +3923,7 @@ var lodash = { exports: {} };
3923
3923
  }
3924
3924
  function leadingEdge(time) {
3925
3925
  lastInvokeTime = time;
3926
- timerId = setTimeout2(timerExpired, wait);
3926
+ timerId = setTimeout(timerExpired, wait);
3927
3927
  return leading ? invokeFunc(time) : result2;
3928
3928
  }
3929
3929
  function remainingWait(time) {
@@ -3939,7 +3939,7 @@ var lodash = { exports: {} };
3939
3939
  if (shouldInvoke(time)) {
3940
3940
  return trailingEdge(time);
3941
3941
  }
3942
- timerId = setTimeout2(timerExpired, remainingWait(time));
3942
+ timerId = setTimeout(timerExpired, remainingWait(time));
3943
3943
  }
3944
3944
  function trailingEdge(time) {
3945
3945
  timerId = undefined$1;
@@ -3970,12 +3970,12 @@ var lodash = { exports: {} };
3970
3970
  }
3971
3971
  if (maxing) {
3972
3972
  clearTimeout(timerId);
3973
- timerId = setTimeout2(timerExpired, wait);
3973
+ timerId = setTimeout(timerExpired, wait);
3974
3974
  return invokeFunc(lastCallTime);
3975
3975
  }
3976
3976
  }
3977
3977
  if (timerId === undefined$1) {
3978
- timerId = setTimeout2(timerExpired, wait);
3978
+ timerId = setTimeout(timerExpired, wait);
3979
3979
  }
3980
3980
  return result2;
3981
3981
  }
@@ -5689,6 +5689,10 @@ const formItemProps = {
5689
5689
  extraInfo: {
5690
5690
  type: String,
5691
5691
  default: ""
5692
+ },
5693
+ isAsyncValidate: {
5694
+ type: Boolean,
5695
+ default: false
5692
5696
  }
5693
5697
  };
5694
5698
  const FORM_ITEM_TOKEN = "dFormItem";
@@ -6516,7 +6520,6 @@ var FormControl = defineComponent({
6516
6520
  const formControl2 = ref();
6517
6521
  const popoverRef = ref();
6518
6522
  const ns2 = useNamespace$1("form");
6519
- const showPopoverClick = ref(true);
6520
6523
  const {
6521
6524
  controlClasses,
6522
6525
  controlContainerClasses,
@@ -6540,27 +6543,6 @@ var FormControl = defineComponent({
6540
6543
  }
6541
6544
  return void 0;
6542
6545
  });
6543
- const onDocumentClick = (e) => {
6544
- const composedPath = e.composedPath();
6545
- if (composedPath.includes(popoverRef.value.triggerEl)) {
6546
- showPopoverClick.value = true;
6547
- } else {
6548
- showPopoverClick.value = false;
6549
- }
6550
- };
6551
- watch(showPopover, (val) => {
6552
- if (val) {
6553
- setTimeout(() => {
6554
- document.addEventListener("click", onDocumentClick);
6555
- });
6556
- } else {
6557
- showPopoverClick.value = true;
6558
- document.removeEventListener("click", onDocumentClick);
6559
- }
6560
- });
6561
- onUnmounted(() => {
6562
- document.removeEventListener("click", onDocumentClick);
6563
- });
6564
6546
  return () => createVNode("div", {
6565
6547
  "class": controlClasses.value,
6566
6548
  "ref": formControl2
@@ -6568,7 +6550,7 @@ var FormControl = defineComponent({
6568
6550
  "class": controlContainerClasses.value
6569
6551
  }, [createVNode(Popover, {
6570
6552
  "ref": popoverRef,
6571
- "is-open": showPopover.value && showPopoverClick.value,
6553
+ "is-open": showPopover.value,
6572
6554
  "trigger": "manually",
6573
6555
  "content": errorMessage.value,
6574
6556
  "pop-type": "error",
@@ -7698,7 +7680,9 @@ function useFormItemValidate(props, _rules) {
7698
7680
  callback == null ? void 0 : callback(true);
7699
7681
  return true;
7700
7682
  }
7701
- validateState.value = "pending";
7683
+ if (props.isAsyncValidate) {
7684
+ validateState.value = "pending";
7685
+ }
7702
7686
  return execValidate(rules2).then(() => {
7703
7687
  callback == null ? void 0 : callback(true);
7704
7688
  return true;