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
package/time-select/index.es.js
CHANGED
|
@@ -1418,7 +1418,7 @@ var lodash = { exports: {} };
|
|
|
1418
1418
|
if (typeof func != "function") {
|
|
1419
1419
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1420
1420
|
}
|
|
1421
|
-
return
|
|
1421
|
+
return setTimeout(function() {
|
|
1422
1422
|
func.apply(undefined$1, args);
|
|
1423
1423
|
}, wait);
|
|
1424
1424
|
}
|
|
@@ -3227,7 +3227,7 @@ var lodash = { exports: {} };
|
|
|
3227
3227
|
return object4[key];
|
|
3228
3228
|
}
|
|
3229
3229
|
var setData = shortOut(baseSetData);
|
|
3230
|
-
var
|
|
3230
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3231
3231
|
return root.setTimeout(func, wait);
|
|
3232
3232
|
};
|
|
3233
3233
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4019,7 +4019,7 @@ var lodash = { exports: {} };
|
|
|
4019
4019
|
}
|
|
4020
4020
|
function leadingEdge(time) {
|
|
4021
4021
|
lastInvokeTime = time;
|
|
4022
|
-
timerId =
|
|
4022
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4023
4023
|
return leading ? invokeFunc(time) : result2;
|
|
4024
4024
|
}
|
|
4025
4025
|
function remainingWait(time) {
|
|
@@ -4035,7 +4035,7 @@ var lodash = { exports: {} };
|
|
|
4035
4035
|
if (shouldInvoke(time)) {
|
|
4036
4036
|
return trailingEdge(time);
|
|
4037
4037
|
}
|
|
4038
|
-
timerId =
|
|
4038
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
4039
4039
|
}
|
|
4040
4040
|
function trailingEdge(time) {
|
|
4041
4041
|
timerId = undefined$1;
|
|
@@ -4066,12 +4066,12 @@ var lodash = { exports: {} };
|
|
|
4066
4066
|
}
|
|
4067
4067
|
if (maxing) {
|
|
4068
4068
|
clearTimeout(timerId);
|
|
4069
|
-
timerId =
|
|
4069
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4070
4070
|
return invokeFunc(lastCallTime);
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
4073
|
if (timerId === undefined$1) {
|
|
4074
|
-
timerId =
|
|
4074
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4075
4075
|
}
|
|
4076
4076
|
return result2;
|
|
4077
4077
|
}
|
|
@@ -5895,6 +5895,10 @@ const formItemProps = {
|
|
|
5895
5895
|
extraInfo: {
|
|
5896
5896
|
type: String,
|
|
5897
5897
|
default: ""
|
|
5898
|
+
},
|
|
5899
|
+
isAsyncValidate: {
|
|
5900
|
+
type: Boolean,
|
|
5901
|
+
default: false
|
|
5898
5902
|
}
|
|
5899
5903
|
};
|
|
5900
5904
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6699,7 +6703,6 @@ var FormControl = defineComponent({
|
|
|
6699
6703
|
const formControl2 = ref();
|
|
6700
6704
|
const popoverRef = ref();
|
|
6701
6705
|
const ns2 = useNamespace("form");
|
|
6702
|
-
const showPopoverClick = ref(true);
|
|
6703
6706
|
const {
|
|
6704
6707
|
controlClasses,
|
|
6705
6708
|
controlContainerClasses,
|
|
@@ -6723,27 +6726,6 @@ var FormControl = defineComponent({
|
|
|
6723
6726
|
}
|
|
6724
6727
|
return void 0;
|
|
6725
6728
|
});
|
|
6726
|
-
const onDocumentClick = (e) => {
|
|
6727
|
-
const composedPath = e.composedPath();
|
|
6728
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6729
|
-
showPopoverClick.value = true;
|
|
6730
|
-
} else {
|
|
6731
|
-
showPopoverClick.value = false;
|
|
6732
|
-
}
|
|
6733
|
-
};
|
|
6734
|
-
watch(showPopover, (val) => {
|
|
6735
|
-
if (val) {
|
|
6736
|
-
setTimeout(() => {
|
|
6737
|
-
document.addEventListener("click", onDocumentClick);
|
|
6738
|
-
});
|
|
6739
|
-
} else {
|
|
6740
|
-
showPopoverClick.value = true;
|
|
6741
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6742
|
-
}
|
|
6743
|
-
});
|
|
6744
|
-
onUnmounted(() => {
|
|
6745
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6746
|
-
});
|
|
6747
6729
|
return () => createVNode("div", {
|
|
6748
6730
|
"class": controlClasses.value,
|
|
6749
6731
|
"ref": formControl2
|
|
@@ -6751,7 +6733,7 @@ var FormControl = defineComponent({
|
|
|
6751
6733
|
"class": controlContainerClasses.value
|
|
6752
6734
|
}, [createVNode(Popover, {
|
|
6753
6735
|
"ref": popoverRef,
|
|
6754
|
-
"is-open": showPopover.value
|
|
6736
|
+
"is-open": showPopover.value,
|
|
6755
6737
|
"trigger": "manually",
|
|
6756
6738
|
"content": errorMessage.value,
|
|
6757
6739
|
"pop-type": "error",
|
|
@@ -7881,7 +7863,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7881
7863
|
callback == null ? void 0 : callback(true);
|
|
7882
7864
|
return true;
|
|
7883
7865
|
}
|
|
7884
|
-
|
|
7866
|
+
if (props.isAsyncValidate) {
|
|
7867
|
+
validateState.value = "pending";
|
|
7868
|
+
}
|
|
7885
7869
|
return execValidate(rules2).then(() => {
|
|
7886
7870
|
callback == null ? void 0 : callback(true);
|
|
7887
7871
|
return true;
|