vue-devui 1.6.9 → 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 +9 -25
- 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 +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/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/style.css +1 -1
- package/switch/index.es.js +8 -24
- package/switch/index.umd.js +15 -15
- package/table/index.es.js +8 -24
- 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 +14 -30
- package/time-select/index.umd.js +14 -14
- 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/vue-devui.es.js +34 -39
- package/vue-devui.umd.js +43 -43
package/data-grid/index.es.js
CHANGED
|
@@ -6082,6 +6082,10 @@ const formItemProps = {
|
|
|
6082
6082
|
extraInfo: {
|
|
6083
6083
|
type: String,
|
|
6084
6084
|
default: ""
|
|
6085
|
+
},
|
|
6086
|
+
isAsyncValidate: {
|
|
6087
|
+
type: Boolean,
|
|
6088
|
+
default: false
|
|
6085
6089
|
}
|
|
6086
6090
|
};
|
|
6087
6091
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6644,7 +6648,6 @@ var FormControl = defineComponent({
|
|
|
6644
6648
|
const formControl2 = ref();
|
|
6645
6649
|
const popoverRef = ref();
|
|
6646
6650
|
const ns2 = useNamespace("form");
|
|
6647
|
-
const showPopoverClick = ref(true);
|
|
6648
6651
|
const {
|
|
6649
6652
|
controlClasses,
|
|
6650
6653
|
controlContainerClasses,
|
|
@@ -6668,27 +6671,6 @@ var FormControl = defineComponent({
|
|
|
6668
6671
|
}
|
|
6669
6672
|
return void 0;
|
|
6670
6673
|
});
|
|
6671
|
-
const onDocumentClick = (e) => {
|
|
6672
|
-
const composedPath = e.composedPath();
|
|
6673
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6674
|
-
showPopoverClick.value = true;
|
|
6675
|
-
} else {
|
|
6676
|
-
showPopoverClick.value = false;
|
|
6677
|
-
}
|
|
6678
|
-
};
|
|
6679
|
-
watch(showPopover, (val) => {
|
|
6680
|
-
if (val) {
|
|
6681
|
-
setTimeout(() => {
|
|
6682
|
-
document.addEventListener("click", onDocumentClick);
|
|
6683
|
-
});
|
|
6684
|
-
} else {
|
|
6685
|
-
showPopoverClick.value = true;
|
|
6686
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6687
|
-
}
|
|
6688
|
-
});
|
|
6689
|
-
onUnmounted(() => {
|
|
6690
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6691
|
-
});
|
|
6692
6674
|
return () => createVNode("div", {
|
|
6693
6675
|
"class": controlClasses.value,
|
|
6694
6676
|
"ref": formControl2
|
|
@@ -6696,7 +6678,7 @@ var FormControl = defineComponent({
|
|
|
6696
6678
|
"class": controlContainerClasses.value
|
|
6697
6679
|
}, [createVNode(Popover, {
|
|
6698
6680
|
"ref": popoverRef,
|
|
6699
|
-
"is-open": showPopover.value
|
|
6681
|
+
"is-open": showPopover.value,
|
|
6700
6682
|
"trigger": "manually",
|
|
6701
6683
|
"content": errorMessage.value,
|
|
6702
6684
|
"pop-type": "error",
|
|
@@ -7826,7 +7808,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7826
7808
|
callback == null ? void 0 : callback(true);
|
|
7827
7809
|
return true;
|
|
7828
7810
|
}
|
|
7829
|
-
|
|
7811
|
+
if (props.isAsyncValidate) {
|
|
7812
|
+
validateState.value = "pending";
|
|
7813
|
+
}
|
|
7830
7814
|
return execValidate(rules2).then(() => {
|
|
7831
7815
|
callback == null ? void 0 : callback(true);
|
|
7832
7816
|
return true;
|
|
@@ -11367,7 +11351,7 @@ function useDataGrid(props, ctx) {
|
|
|
11367
11351
|
(_a = scrollRef.value) == null ? void 0 : _a.addEventListener("scroll", onScroll);
|
|
11368
11352
|
if (typeof window !== "undefined" && scrollRef.value) {
|
|
11369
11353
|
resizeObserver = new ResizeObserver(() => {
|
|
11370
|
-
if (scrollRef.value) {
|
|
11354
|
+
if (scrollRef.value && sliceColumns.value.length) {
|
|
11371
11355
|
let distance = 0;
|
|
11372
11356
|
initOriginColumnData();
|
|
11373
11357
|
distance = scrollRef.value.scrollLeft;
|