vue-devui 1.6.9 → 1.6.11

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 +19 -36
  4. package/category-search/index.umd.js +18 -18
  5. package/checkbox/index.es.js +16 -33
  6. package/checkbox/index.umd.js +17 -17
  7. package/data-grid/index.es.js +11 -28
  8. package/data-grid/index.umd.js +7 -7
  9. package/date-picker-pro/index.es.js +36 -30
  10. package/date-picker-pro/index.umd.js +11 -11
  11. package/editor-md/index.es.js +0 -1
  12. package/editor-md/index.umd.js +4 -4
  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/menu/index.es.js +26 -2
  22. package/menu/index.umd.js +5 -1
  23. package/menu/style.css +1 -1
  24. package/modal/index.es.js +18 -12
  25. package/modal/index.umd.js +7 -7
  26. package/package.json +1 -1
  27. package/pagination/index.es.js +10 -27
  28. package/pagination/index.umd.js +7 -7
  29. package/radio/index.es.js +14 -30
  30. package/radio/index.umd.js +19 -19
  31. package/search/index.es.js +20 -30
  32. package/search/index.umd.js +11 -11
  33. package/search/style.css +1 -1
  34. package/select/index.es.js +16 -33
  35. package/select/index.umd.js +9 -9
  36. package/style.css +1 -1
  37. package/switch/index.es.js +8 -24
  38. package/switch/index.umd.js +15 -15
  39. package/table/index.es.js +10 -27
  40. package/table/index.umd.js +7 -7
  41. package/textarea/index.es.js +14 -30
  42. package/textarea/index.umd.js +18 -18
  43. package/time-picker/index.es.js +8 -24
  44. package/time-picker/index.umd.js +9 -9
  45. package/time-select/index.es.js +16 -33
  46. package/time-select/index.umd.js +14 -14
  47. package/tree/index.es.js +10 -27
  48. package/tree/index.umd.js +9 -9
  49. package/types/checkbox/src/checkbox-types.d.ts +0 -2
  50. package/types/date-picker-pro/src/date-picker-pro-types.d.ts +13 -0
  51. package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
  52. package/types/form/src/components/form-item/form-item-types.d.ts +4 -0
  53. package/types/form/src/components/form-item/form-item.d.ts +9 -0
  54. package/types/search/src/search-types.d.ts +4 -0
  55. package/types/search/src/search.d.ts +9 -0
  56. package/vue-devui.es.js +79 -59
  57. package/vue-devui.umd.js +43 -43
package/radio/index.es.js CHANGED
@@ -1385,7 +1385,7 @@ var lodash = { exports: {} };
1385
1385
  if (typeof func != "function") {
1386
1386
  throw new TypeError2(FUNC_ERROR_TEXT);
1387
1387
  }
1388
- return setTimeout2(function() {
1388
+ return setTimeout(function() {
1389
1389
  func.apply(undefined$1, args);
1390
1390
  }, wait);
1391
1391
  }
@@ -3194,7 +3194,7 @@ var lodash = { exports: {} };
3194
3194
  return object4[key];
3195
3195
  }
3196
3196
  var setData = shortOut(baseSetData);
3197
- var setTimeout2 = ctxSetTimeout || function(func, wait) {
3197
+ var setTimeout = ctxSetTimeout || function(func, wait) {
3198
3198
  return root.setTimeout(func, wait);
3199
3199
  };
3200
3200
  var setToString = shortOut(baseSetToString);
@@ -3986,7 +3986,7 @@ var lodash = { exports: {} };
3986
3986
  }
3987
3987
  function leadingEdge(time) {
3988
3988
  lastInvokeTime = time;
3989
- timerId = setTimeout2(timerExpired, wait);
3989
+ timerId = setTimeout(timerExpired, wait);
3990
3990
  return leading ? invokeFunc(time) : result2;
3991
3991
  }
3992
3992
  function remainingWait(time) {
@@ -4002,7 +4002,7 @@ var lodash = { exports: {} };
4002
4002
  if (shouldInvoke(time)) {
4003
4003
  return trailingEdge(time);
4004
4004
  }
4005
- timerId = setTimeout2(timerExpired, remainingWait(time));
4005
+ timerId = setTimeout(timerExpired, remainingWait(time));
4006
4006
  }
4007
4007
  function trailingEdge(time) {
4008
4008
  timerId = undefined$1;
@@ -4033,12 +4033,12 @@ var lodash = { exports: {} };
4033
4033
  }
4034
4034
  if (maxing) {
4035
4035
  clearTimeout(timerId);
4036
- timerId = setTimeout2(timerExpired, wait);
4036
+ timerId = setTimeout(timerExpired, wait);
4037
4037
  return invokeFunc(lastCallTime);
4038
4038
  }
4039
4039
  }
4040
4040
  if (timerId === undefined$1) {
4041
- timerId = setTimeout2(timerExpired, wait);
4041
+ timerId = setTimeout(timerExpired, wait);
4042
4042
  }
4043
4043
  return result2;
4044
4044
  }
@@ -5752,6 +5752,10 @@ const formItemProps = {
5752
5752
  extraInfo: {
5753
5753
  type: String,
5754
5754
  default: ""
5755
+ },
5756
+ isAsyncValidate: {
5757
+ type: Boolean,
5758
+ default: false
5755
5759
  }
5756
5760
  };
5757
5761
  const FORM_ITEM_TOKEN = "dFormItem";
@@ -6579,7 +6583,6 @@ var FormControl = defineComponent({
6579
6583
  const formControl2 = ref();
6580
6584
  const popoverRef = ref();
6581
6585
  const ns2 = useNamespace$1("form");
6582
- const showPopoverClick = ref(true);
6583
6586
  const {
6584
6587
  controlClasses,
6585
6588
  controlContainerClasses,
@@ -6603,27 +6606,6 @@ var FormControl = defineComponent({
6603
6606
  }
6604
6607
  return void 0;
6605
6608
  });
6606
- const onDocumentClick = (e) => {
6607
- const composedPath = e.composedPath();
6608
- if (composedPath.includes(popoverRef.value.triggerEl)) {
6609
- showPopoverClick.value = true;
6610
- } else {
6611
- showPopoverClick.value = false;
6612
- }
6613
- };
6614
- watch(showPopover, (val) => {
6615
- if (val) {
6616
- setTimeout(() => {
6617
- document.addEventListener("click", onDocumentClick);
6618
- });
6619
- } else {
6620
- showPopoverClick.value = true;
6621
- document.removeEventListener("click", onDocumentClick);
6622
- }
6623
- });
6624
- onUnmounted(() => {
6625
- document.removeEventListener("click", onDocumentClick);
6626
- });
6627
6609
  return () => createVNode("div", {
6628
6610
  "class": controlClasses.value,
6629
6611
  "ref": formControl2
@@ -6631,7 +6613,7 @@ var FormControl = defineComponent({
6631
6613
  "class": controlContainerClasses.value
6632
6614
  }, [createVNode(Popover, {
6633
6615
  "ref": popoverRef,
6634
- "is-open": showPopover.value && showPopoverClick.value,
6616
+ "is-open": showPopover.value,
6635
6617
  "trigger": "manually",
6636
6618
  "content": errorMessage.value,
6637
6619
  "pop-type": "error",
@@ -7761,7 +7743,9 @@ function useFormItemValidate(props, _rules) {
7761
7743
  callback == null ? void 0 : callback(true);
7762
7744
  return true;
7763
7745
  }
7764
- validateState.value = "pending";
7746
+ if (props.isAsyncValidate) {
7747
+ validateState.value = "pending";
7748
+ }
7765
7749
  return execValidate(rules2).then(() => {
7766
7750
  callback == null ? void 0 : callback(true);
7767
7751
  return true;