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
@@ -6089,6 +6089,10 @@ const formItemProps = {
6089
6089
  extraInfo: {
6090
6090
  type: String,
6091
6091
  default: ""
6092
+ },
6093
+ isAsyncValidate: {
6094
+ type: Boolean,
6095
+ default: false
6092
6096
  }
6093
6097
  };
6094
6098
  const FORM_ITEM_TOKEN = "dFormItem";
@@ -6916,7 +6920,6 @@ var FormControl = defineComponent({
6916
6920
  const formControl2 = ref();
6917
6921
  const popoverRef = ref();
6918
6922
  const ns2 = useNamespace$1("form");
6919
- const showPopoverClick = ref(true);
6920
6923
  const {
6921
6924
  controlClasses,
6922
6925
  controlContainerClasses,
@@ -6940,27 +6943,6 @@ var FormControl = defineComponent({
6940
6943
  }
6941
6944
  return void 0;
6942
6945
  });
6943
- const onDocumentClick = (e) => {
6944
- const composedPath = e.composedPath();
6945
- if (composedPath.includes(popoverRef.value.triggerEl)) {
6946
- showPopoverClick.value = true;
6947
- } else {
6948
- showPopoverClick.value = false;
6949
- }
6950
- };
6951
- watch(showPopover, (val) => {
6952
- if (val) {
6953
- setTimeout(() => {
6954
- document.addEventListener("click", onDocumentClick);
6955
- });
6956
- } else {
6957
- showPopoverClick.value = true;
6958
- document.removeEventListener("click", onDocumentClick);
6959
- }
6960
- });
6961
- onUnmounted(() => {
6962
- document.removeEventListener("click", onDocumentClick);
6963
- });
6964
6946
  return () => createVNode("div", {
6965
6947
  "class": controlClasses.value,
6966
6948
  "ref": formControl2
@@ -6968,7 +6950,7 @@ var FormControl = defineComponent({
6968
6950
  "class": controlContainerClasses.value
6969
6951
  }, [createVNode(Popover, {
6970
6952
  "ref": popoverRef,
6971
- "is-open": showPopover.value && showPopoverClick.value,
6953
+ "is-open": showPopover.value,
6972
6954
  "trigger": "manually",
6973
6955
  "content": errorMessage.value,
6974
6956
  "pop-type": "error",
@@ -8098,7 +8080,9 @@ function useFormItemValidate(props, _rules) {
8098
8080
  callback == null ? void 0 : callback(true);
8099
8081
  return true;
8100
8082
  }
8101
- validateState.value = "pending";
8083
+ if (props.isAsyncValidate) {
8084
+ validateState.value = "pending";
8085
+ }
8102
8086
  return execValidate(rules2).then(() => {
8103
8087
  callback == null ? void 0 : callback(true);
8104
8088
  return true;