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/tree/index.es.js CHANGED
@@ -7695,8 +7695,7 @@ const commonProps = {
7695
7695
  default: void 0
7696
7696
  },
7697
7697
  size: {
7698
- type: String,
7699
- default: "md"
7698
+ type: String
7700
7699
  },
7701
7700
  showGlowStyle: {
7702
7701
  type: Boolean,
@@ -7976,6 +7975,10 @@ const formItemProps = {
7976
7975
  extraInfo: {
7977
7976
  type: String,
7978
7977
  default: ""
7978
+ },
7979
+ isAsyncValidate: {
7980
+ type: Boolean,
7981
+ default: false
7979
7982
  }
7980
7983
  };
7981
7984
  const FORM_ITEM_TOKEN = "dFormItem";
@@ -8780,7 +8783,6 @@ var FormControl = defineComponent({
8780
8783
  const formControl2 = ref();
8781
8784
  const popoverRef = ref();
8782
8785
  const ns2 = useNamespace$1("form");
8783
- const showPopoverClick = ref(true);
8784
8786
  const {
8785
8787
  controlClasses,
8786
8788
  controlContainerClasses,
@@ -8804,27 +8806,6 @@ var FormControl = defineComponent({
8804
8806
  }
8805
8807
  return void 0;
8806
8808
  });
8807
- const onDocumentClick = (e) => {
8808
- const composedPath = e.composedPath();
8809
- if (composedPath.includes(popoverRef.value.triggerEl)) {
8810
- showPopoverClick.value = true;
8811
- } else {
8812
- showPopoverClick.value = false;
8813
- }
8814
- };
8815
- watch(showPopover, (val) => {
8816
- if (val) {
8817
- setTimeout(() => {
8818
- document.addEventListener("click", onDocumentClick);
8819
- });
8820
- } else {
8821
- showPopoverClick.value = true;
8822
- document.removeEventListener("click", onDocumentClick);
8823
- }
8824
- });
8825
- onUnmounted(() => {
8826
- document.removeEventListener("click", onDocumentClick);
8827
- });
8828
8809
  return () => createVNode("div", {
8829
8810
  "class": controlClasses.value,
8830
8811
  "ref": formControl2
@@ -8832,7 +8813,7 @@ var FormControl = defineComponent({
8832
8813
  "class": controlContainerClasses.value
8833
8814
  }, [createVNode(Popover, {
8834
8815
  "ref": popoverRef,
8835
- "is-open": showPopover.value && showPopoverClick.value,
8816
+ "is-open": showPopover.value,
8836
8817
  "trigger": "manually",
8837
8818
  "content": errorMessage.value,
8838
8819
  "pop-type": "error",
@@ -9962,7 +9943,9 @@ function useFormItemValidate(props, _rules) {
9962
9943
  callback == null ? void 0 : callback(true);
9963
9944
  return true;
9964
9945
  }
9965
- validateState.value = "pending";
9946
+ if (props.isAsyncValidate) {
9947
+ validateState.value = "pending";
9948
+ }
9966
9949
  return execValidate(rules2).then(() => {
9967
9950
  callback == null ? void 0 : callback(true);
9968
9951
  return true;
@@ -10224,7 +10207,7 @@ function useCheckboxGroup(props, ctx) {
10224
10207
  formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
10225
10208
  });
10226
10209
  }, { deep: true });
10227
- const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
10210
+ const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
10228
10211
  provide(checkboxGroupInjectionKey, {
10229
10212
  disabled: toRef(props, "disabled"),
10230
10213
  isShowTitle: toRef(props, "isShowTitle"),