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/input-number/index.es.js
CHANGED
|
@@ -1428,7 +1428,7 @@ var lodash = { exports: {} };
|
|
|
1428
1428
|
if (typeof func != "function") {
|
|
1429
1429
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1430
1430
|
}
|
|
1431
|
-
return
|
|
1431
|
+
return setTimeout(function() {
|
|
1432
1432
|
func.apply(undefined$1, args);
|
|
1433
1433
|
}, wait);
|
|
1434
1434
|
}
|
|
@@ -3237,7 +3237,7 @@ var lodash = { exports: {} };
|
|
|
3237
3237
|
return object4[key];
|
|
3238
3238
|
}
|
|
3239
3239
|
var setData = shortOut(baseSetData);
|
|
3240
|
-
var
|
|
3240
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3241
3241
|
return root.setTimeout(func, wait);
|
|
3242
3242
|
};
|
|
3243
3243
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4029,7 +4029,7 @@ var lodash = { exports: {} };
|
|
|
4029
4029
|
}
|
|
4030
4030
|
function leadingEdge(time) {
|
|
4031
4031
|
lastInvokeTime = time;
|
|
4032
|
-
timerId =
|
|
4032
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4033
4033
|
return leading ? invokeFunc(time) : result2;
|
|
4034
4034
|
}
|
|
4035
4035
|
function remainingWait(time) {
|
|
@@ -4045,7 +4045,7 @@ var lodash = { exports: {} };
|
|
|
4045
4045
|
if (shouldInvoke(time)) {
|
|
4046
4046
|
return trailingEdge(time);
|
|
4047
4047
|
}
|
|
4048
|
-
timerId =
|
|
4048
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
4049
4049
|
}
|
|
4050
4050
|
function trailingEdge(time) {
|
|
4051
4051
|
timerId = undefined$1;
|
|
@@ -4076,12 +4076,12 @@ var lodash = { exports: {} };
|
|
|
4076
4076
|
}
|
|
4077
4077
|
if (maxing) {
|
|
4078
4078
|
clearTimeout(timerId);
|
|
4079
|
-
timerId =
|
|
4079
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4080
4080
|
return invokeFunc(lastCallTime);
|
|
4081
4081
|
}
|
|
4082
4082
|
}
|
|
4083
4083
|
if (timerId === undefined$1) {
|
|
4084
|
-
timerId =
|
|
4084
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4085
4085
|
}
|
|
4086
4086
|
return result2;
|
|
4087
4087
|
}
|
|
@@ -5795,6 +5795,10 @@ const formItemProps = {
|
|
|
5795
5795
|
extraInfo: {
|
|
5796
5796
|
type: String,
|
|
5797
5797
|
default: ""
|
|
5798
|
+
},
|
|
5799
|
+
isAsyncValidate: {
|
|
5800
|
+
type: Boolean,
|
|
5801
|
+
default: false
|
|
5798
5802
|
}
|
|
5799
5803
|
};
|
|
5800
5804
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6599,7 +6603,6 @@ var FormControl = defineComponent({
|
|
|
6599
6603
|
const formControl2 = ref();
|
|
6600
6604
|
const popoverRef = ref();
|
|
6601
6605
|
const ns2 = useNamespace("form");
|
|
6602
|
-
const showPopoverClick = ref(true);
|
|
6603
6606
|
const {
|
|
6604
6607
|
controlClasses,
|
|
6605
6608
|
controlContainerClasses,
|
|
@@ -6623,27 +6626,6 @@ var FormControl = defineComponent({
|
|
|
6623
6626
|
}
|
|
6624
6627
|
return void 0;
|
|
6625
6628
|
});
|
|
6626
|
-
const onDocumentClick = (e) => {
|
|
6627
|
-
const composedPath = e.composedPath();
|
|
6628
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6629
|
-
showPopoverClick.value = true;
|
|
6630
|
-
} else {
|
|
6631
|
-
showPopoverClick.value = false;
|
|
6632
|
-
}
|
|
6633
|
-
};
|
|
6634
|
-
watch(showPopover, (val) => {
|
|
6635
|
-
if (val) {
|
|
6636
|
-
setTimeout(() => {
|
|
6637
|
-
document.addEventListener("click", onDocumentClick);
|
|
6638
|
-
});
|
|
6639
|
-
} else {
|
|
6640
|
-
showPopoverClick.value = true;
|
|
6641
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6642
|
-
}
|
|
6643
|
-
});
|
|
6644
|
-
onUnmounted(() => {
|
|
6645
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6646
|
-
});
|
|
6647
6629
|
return () => createVNode("div", {
|
|
6648
6630
|
"class": controlClasses.value,
|
|
6649
6631
|
"ref": formControl2
|
|
@@ -6651,7 +6633,7 @@ var FormControl = defineComponent({
|
|
|
6651
6633
|
"class": controlContainerClasses.value
|
|
6652
6634
|
}, [createVNode(Popover, {
|
|
6653
6635
|
"ref": popoverRef,
|
|
6654
|
-
"is-open": showPopover.value
|
|
6636
|
+
"is-open": showPopover.value,
|
|
6655
6637
|
"trigger": "manually",
|
|
6656
6638
|
"content": errorMessage.value,
|
|
6657
6639
|
"pop-type": "error",
|
|
@@ -7781,7 +7763,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7781
7763
|
callback == null ? void 0 : callback(true);
|
|
7782
7764
|
return true;
|
|
7783
7765
|
}
|
|
7784
|
-
|
|
7766
|
+
if (props.isAsyncValidate) {
|
|
7767
|
+
validateState.value = "pending";
|
|
7768
|
+
}
|
|
7785
7769
|
return execValidate(rules2).then(() => {
|
|
7786
7770
|
callback == null ? void 0 : callback(true);
|
|
7787
7771
|
return true;
|