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.
- package/auto-complete/index.es.js +8 -24
- package/auto-complete/index.umd.js +15 -15
- package/category-search/index.es.js +19 -36
- package/category-search/index.umd.js +18 -18
- package/checkbox/index.es.js +16 -33
- package/checkbox/index.umd.js +17 -17
- package/data-grid/index.es.js +11 -28
- package/data-grid/index.umd.js +7 -7
- package/date-picker-pro/index.es.js +36 -30
- package/date-picker-pro/index.umd.js +11 -11
- package/editor-md/index.es.js +0 -1
- package/editor-md/index.umd.js +4 -4
- 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/menu/index.es.js +26 -2
- package/menu/index.umd.js +5 -1
- package/menu/style.css +1 -1
- package/modal/index.es.js +18 -12
- package/modal/index.umd.js +7 -7
- package/package.json +1 -1
- package/pagination/index.es.js +10 -27
- 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 +16 -33
- package/select/index.umd.js +9 -9
- package/style.css +1 -1
- package/switch/index.es.js +8 -24
- package/switch/index.umd.js +15 -15
- package/table/index.es.js +10 -27
- package/table/index.umd.js +7 -7
- 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 +16 -33
- package/time-select/index.umd.js +14 -14
- package/tree/index.es.js +10 -27
- package/tree/index.umd.js +9 -9
- package/types/checkbox/src/checkbox-types.d.ts +0 -2
- package/types/date-picker-pro/src/date-picker-pro-types.d.ts +13 -0
- package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
- 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/vue-devui.es.js +79 -59
- package/vue-devui.umd.js +43 -43
package/switch/index.es.js
CHANGED
|
@@ -5722,6 +5722,10 @@ const formItemProps = {
|
|
|
5722
5722
|
extraInfo: {
|
|
5723
5723
|
type: String,
|
|
5724
5724
|
default: ""
|
|
5725
|
+
},
|
|
5726
|
+
isAsyncValidate: {
|
|
5727
|
+
type: Boolean,
|
|
5728
|
+
default: false
|
|
5725
5729
|
}
|
|
5726
5730
|
};
|
|
5727
5731
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6549,7 +6553,6 @@ var FormControl = defineComponent({
|
|
|
6549
6553
|
const formControl2 = ref();
|
|
6550
6554
|
const popoverRef = ref();
|
|
6551
6555
|
const ns2 = useNamespace$1("form");
|
|
6552
|
-
const showPopoverClick = ref(true);
|
|
6553
6556
|
const {
|
|
6554
6557
|
controlClasses,
|
|
6555
6558
|
controlContainerClasses,
|
|
@@ -6573,27 +6576,6 @@ var FormControl = defineComponent({
|
|
|
6573
6576
|
}
|
|
6574
6577
|
return void 0;
|
|
6575
6578
|
});
|
|
6576
|
-
const onDocumentClick = (e) => {
|
|
6577
|
-
const composedPath = e.composedPath();
|
|
6578
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6579
|
-
showPopoverClick.value = true;
|
|
6580
|
-
} else {
|
|
6581
|
-
showPopoverClick.value = false;
|
|
6582
|
-
}
|
|
6583
|
-
};
|
|
6584
|
-
watch(showPopover, (val) => {
|
|
6585
|
-
if (val) {
|
|
6586
|
-
setTimeout(() => {
|
|
6587
|
-
document.addEventListener("click", onDocumentClick);
|
|
6588
|
-
});
|
|
6589
|
-
} else {
|
|
6590
|
-
showPopoverClick.value = true;
|
|
6591
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6592
|
-
}
|
|
6593
|
-
});
|
|
6594
|
-
onUnmounted(() => {
|
|
6595
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6596
|
-
});
|
|
6597
6579
|
return () => createVNode("div", {
|
|
6598
6580
|
"class": controlClasses.value,
|
|
6599
6581
|
"ref": formControl2
|
|
@@ -6601,7 +6583,7 @@ var FormControl = defineComponent({
|
|
|
6601
6583
|
"class": controlContainerClasses.value
|
|
6602
6584
|
}, [createVNode(Popover, {
|
|
6603
6585
|
"ref": popoverRef,
|
|
6604
|
-
"is-open": showPopover.value
|
|
6586
|
+
"is-open": showPopover.value,
|
|
6605
6587
|
"trigger": "manually",
|
|
6606
6588
|
"content": errorMessage.value,
|
|
6607
6589
|
"pop-type": "error",
|
|
@@ -7731,7 +7713,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7731
7713
|
callback == null ? void 0 : callback(true);
|
|
7732
7714
|
return true;
|
|
7733
7715
|
}
|
|
7734
|
-
|
|
7716
|
+
if (props.isAsyncValidate) {
|
|
7717
|
+
validateState.value = "pending";
|
|
7718
|
+
}
|
|
7735
7719
|
return execValidate(rules2).then(() => {
|
|
7736
7720
|
callback == null ? void 0 : callback(true);
|
|
7737
7721
|
return true;
|