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.
- package/auto-complete/index.es.js +8 -24
- package/auto-complete/index.umd.js +15 -15
- package/category-search/index.es.js +8 -24
- package/category-search/index.umd.js +18 -18
- package/checkbox/index.es.js +14 -30
- package/checkbox/index.umd.js +17 -17
- package/data-grid/index.es.js +11 -27
- package/data-grid/index.umd.js +7 -7
- package/date-picker-pro/index.es.js +8 -24
- package/date-picker-pro/index.umd.js +12 -12
- package/editor-md/index.es.js +20 -4
- package/editor-md/index.umd.js +11 -11
- package/form/index.es.js +14 -30
- package/form/index.umd.js +12 -12
- package/input/index.es.js +14 -30
- package/input/index.umd.js +10 -10
- package/input-number/index.es.js +14 -30
- package/input-number/index.umd.js +13 -13
- package/mention/index.es.js +8 -24
- package/mention/index.umd.js +13 -13
- package/modal/index.es.js +18 -12
- package/modal/index.umd.js +7 -7
- package/package.json +1 -1
- package/pagination/index.es.js +8 -24
- package/pagination/index.umd.js +7 -7
- package/radio/index.es.js +14 -30
- package/radio/index.umd.js +19 -19
- package/search/index.es.js +20 -30
- package/search/index.umd.js +11 -11
- package/search/style.css +1 -1
- package/select/index.es.js +14 -30
- package/select/index.umd.js +9 -9
- package/splitter/index.es.js +20 -3
- package/splitter/index.umd.js +7 -7
- package/style.css +1 -1
- package/switch/index.es.js +8 -24
- package/switch/index.umd.js +15 -15
- package/table/index.es.js +28 -27
- package/table/index.umd.js +11 -11
- package/textarea/index.es.js +14 -30
- package/textarea/index.umd.js +18 -18
- package/time-picker/index.es.js +8 -24
- package/time-picker/index.umd.js +9 -9
- package/time-select/index.es.js +14 -30
- package/time-select/index.umd.js +14 -14
- package/tooltip/index.es.js +20 -3
- package/tooltip/index.umd.js +12 -12
- package/tree/index.es.js +8 -24
- package/tree/index.umd.js +9 -9
- package/types/form/src/components/form-item/form-item-types.d.ts +4 -0
- package/types/form/src/components/form-item/form-item.d.ts +9 -0
- package/types/search/src/search-types.d.ts +4 -0
- package/types/search/src/search.d.ts +9 -0
- package/types/tooltip/src/tooltip-types.d.ts +14 -1
- package/types/tooltip/src/tooltip.d.ts +27 -0
- package/vue-devui.es.js +56 -44
- package/vue-devui.umd.js +43 -43
|
@@ -6010,6 +6010,10 @@ const formItemProps = {
|
|
|
6010
6010
|
extraInfo: {
|
|
6011
6011
|
type: String,
|
|
6012
6012
|
default: ""
|
|
6013
|
+
},
|
|
6014
|
+
isAsyncValidate: {
|
|
6015
|
+
type: Boolean,
|
|
6016
|
+
default: false
|
|
6013
6017
|
}
|
|
6014
6018
|
};
|
|
6015
6019
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6837,7 +6841,6 @@ var FormControl = defineComponent({
|
|
|
6837
6841
|
const formControl2 = ref();
|
|
6838
6842
|
const popoverRef = ref();
|
|
6839
6843
|
const ns2 = useNamespace$1("form");
|
|
6840
|
-
const showPopoverClick = ref(true);
|
|
6841
6844
|
const {
|
|
6842
6845
|
controlClasses,
|
|
6843
6846
|
controlContainerClasses,
|
|
@@ -6861,27 +6864,6 @@ var FormControl = defineComponent({
|
|
|
6861
6864
|
}
|
|
6862
6865
|
return void 0;
|
|
6863
6866
|
});
|
|
6864
|
-
const onDocumentClick = (e) => {
|
|
6865
|
-
const composedPath = e.composedPath();
|
|
6866
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6867
|
-
showPopoverClick.value = true;
|
|
6868
|
-
} else {
|
|
6869
|
-
showPopoverClick.value = false;
|
|
6870
|
-
}
|
|
6871
|
-
};
|
|
6872
|
-
watch(showPopover, (val) => {
|
|
6873
|
-
if (val) {
|
|
6874
|
-
setTimeout(() => {
|
|
6875
|
-
document.addEventListener("click", onDocumentClick);
|
|
6876
|
-
});
|
|
6877
|
-
} else {
|
|
6878
|
-
showPopoverClick.value = true;
|
|
6879
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6880
|
-
}
|
|
6881
|
-
});
|
|
6882
|
-
onUnmounted(() => {
|
|
6883
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6884
|
-
});
|
|
6885
6867
|
return () => createVNode("div", {
|
|
6886
6868
|
"class": controlClasses.value,
|
|
6887
6869
|
"ref": formControl2
|
|
@@ -6889,7 +6871,7 @@ var FormControl = defineComponent({
|
|
|
6889
6871
|
"class": controlContainerClasses.value
|
|
6890
6872
|
}, [createVNode(Popover, {
|
|
6891
6873
|
"ref": popoverRef,
|
|
6892
|
-
"is-open": showPopover.value
|
|
6874
|
+
"is-open": showPopover.value,
|
|
6893
6875
|
"trigger": "manually",
|
|
6894
6876
|
"content": errorMessage.value,
|
|
6895
6877
|
"pop-type": "error",
|
|
@@ -8019,7 +8001,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
8019
8001
|
callback == null ? void 0 : callback(true);
|
|
8020
8002
|
return true;
|
|
8021
8003
|
}
|
|
8022
|
-
|
|
8004
|
+
if (props.isAsyncValidate) {
|
|
8005
|
+
validateState.value = "pending";
|
|
8006
|
+
}
|
|
8023
8007
|
return execValidate(rules2).then(() => {
|
|
8024
8008
|
callback == null ? void 0 : callback(true);
|
|
8025
8009
|
return true;
|