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
|
@@ -8434,6 +8434,10 @@ const formItemProps = {
|
|
|
8434
8434
|
extraInfo: {
|
|
8435
8435
|
type: String,
|
|
8436
8436
|
default: ""
|
|
8437
|
+
},
|
|
8438
|
+
isAsyncValidate: {
|
|
8439
|
+
type: Boolean,
|
|
8440
|
+
default: false
|
|
8437
8441
|
}
|
|
8438
8442
|
};
|
|
8439
8443
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -8940,7 +8944,6 @@ var FormControl = defineComponent({
|
|
|
8940
8944
|
const formControl2 = ref();
|
|
8941
8945
|
const popoverRef = ref();
|
|
8942
8946
|
const ns2 = useNamespace("form");
|
|
8943
|
-
const showPopoverClick = ref(true);
|
|
8944
8947
|
const {
|
|
8945
8948
|
controlClasses,
|
|
8946
8949
|
controlContainerClasses,
|
|
@@ -8964,27 +8967,6 @@ var FormControl = defineComponent({
|
|
|
8964
8967
|
}
|
|
8965
8968
|
return void 0;
|
|
8966
8969
|
});
|
|
8967
|
-
const onDocumentClick = (e) => {
|
|
8968
|
-
const composedPath = e.composedPath();
|
|
8969
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
8970
|
-
showPopoverClick.value = true;
|
|
8971
|
-
} else {
|
|
8972
|
-
showPopoverClick.value = false;
|
|
8973
|
-
}
|
|
8974
|
-
};
|
|
8975
|
-
watch(showPopover, (val) => {
|
|
8976
|
-
if (val) {
|
|
8977
|
-
setTimeout(() => {
|
|
8978
|
-
document.addEventListener("click", onDocumentClick);
|
|
8979
|
-
});
|
|
8980
|
-
} else {
|
|
8981
|
-
showPopoverClick.value = true;
|
|
8982
|
-
document.removeEventListener("click", onDocumentClick);
|
|
8983
|
-
}
|
|
8984
|
-
});
|
|
8985
|
-
onUnmounted(() => {
|
|
8986
|
-
document.removeEventListener("click", onDocumentClick);
|
|
8987
|
-
});
|
|
8988
8970
|
return () => createVNode("div", {
|
|
8989
8971
|
"class": controlClasses.value,
|
|
8990
8972
|
"ref": formControl2
|
|
@@ -8992,7 +8974,7 @@ var FormControl = defineComponent({
|
|
|
8992
8974
|
"class": controlContainerClasses.value
|
|
8993
8975
|
}, [createVNode(Popover, {
|
|
8994
8976
|
"ref": popoverRef,
|
|
8995
|
-
"is-open": showPopover.value
|
|
8977
|
+
"is-open": showPopover.value,
|
|
8996
8978
|
"trigger": "manually",
|
|
8997
8979
|
"content": errorMessage.value,
|
|
8998
8980
|
"pop-type": "error",
|
|
@@ -10122,7 +10104,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
10122
10104
|
callback == null ? void 0 : callback(true);
|
|
10123
10105
|
return true;
|
|
10124
10106
|
}
|
|
10125
|
-
|
|
10107
|
+
if (props.isAsyncValidate) {
|
|
10108
|
+
validateState.value = "pending";
|
|
10109
|
+
}
|
|
10126
10110
|
return execValidate(rules2).then(() => {
|
|
10127
10111
|
callback == null ? void 0 : callback(true);
|
|
10128
10112
|
return true;
|