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/radio/index.es.js
CHANGED
|
@@ -1385,7 +1385,7 @@ var lodash = { exports: {} };
|
|
|
1385
1385
|
if (typeof func != "function") {
|
|
1386
1386
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1387
1387
|
}
|
|
1388
|
-
return
|
|
1388
|
+
return setTimeout(function() {
|
|
1389
1389
|
func.apply(undefined$1, args);
|
|
1390
1390
|
}, wait);
|
|
1391
1391
|
}
|
|
@@ -3194,7 +3194,7 @@ var lodash = { exports: {} };
|
|
|
3194
3194
|
return object4[key];
|
|
3195
3195
|
}
|
|
3196
3196
|
var setData = shortOut(baseSetData);
|
|
3197
|
-
var
|
|
3197
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3198
3198
|
return root.setTimeout(func, wait);
|
|
3199
3199
|
};
|
|
3200
3200
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3986,7 +3986,7 @@ var lodash = { exports: {} };
|
|
|
3986
3986
|
}
|
|
3987
3987
|
function leadingEdge(time) {
|
|
3988
3988
|
lastInvokeTime = time;
|
|
3989
|
-
timerId =
|
|
3989
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3990
3990
|
return leading ? invokeFunc(time) : result2;
|
|
3991
3991
|
}
|
|
3992
3992
|
function remainingWait(time) {
|
|
@@ -4002,7 +4002,7 @@ var lodash = { exports: {} };
|
|
|
4002
4002
|
if (shouldInvoke(time)) {
|
|
4003
4003
|
return trailingEdge(time);
|
|
4004
4004
|
}
|
|
4005
|
-
timerId =
|
|
4005
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
4006
4006
|
}
|
|
4007
4007
|
function trailingEdge(time) {
|
|
4008
4008
|
timerId = undefined$1;
|
|
@@ -4033,12 +4033,12 @@ var lodash = { exports: {} };
|
|
|
4033
4033
|
}
|
|
4034
4034
|
if (maxing) {
|
|
4035
4035
|
clearTimeout(timerId);
|
|
4036
|
-
timerId =
|
|
4036
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4037
4037
|
return invokeFunc(lastCallTime);
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
4040
|
if (timerId === undefined$1) {
|
|
4041
|
-
timerId =
|
|
4041
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4042
4042
|
}
|
|
4043
4043
|
return result2;
|
|
4044
4044
|
}
|
|
@@ -5752,6 +5752,10 @@ const formItemProps = {
|
|
|
5752
5752
|
extraInfo: {
|
|
5753
5753
|
type: String,
|
|
5754
5754
|
default: ""
|
|
5755
|
+
},
|
|
5756
|
+
isAsyncValidate: {
|
|
5757
|
+
type: Boolean,
|
|
5758
|
+
default: false
|
|
5755
5759
|
}
|
|
5756
5760
|
};
|
|
5757
5761
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6579,7 +6583,6 @@ var FormControl = defineComponent({
|
|
|
6579
6583
|
const formControl2 = ref();
|
|
6580
6584
|
const popoverRef = ref();
|
|
6581
6585
|
const ns2 = useNamespace$1("form");
|
|
6582
|
-
const showPopoverClick = ref(true);
|
|
6583
6586
|
const {
|
|
6584
6587
|
controlClasses,
|
|
6585
6588
|
controlContainerClasses,
|
|
@@ -6603,27 +6606,6 @@ var FormControl = defineComponent({
|
|
|
6603
6606
|
}
|
|
6604
6607
|
return void 0;
|
|
6605
6608
|
});
|
|
6606
|
-
const onDocumentClick = (e) => {
|
|
6607
|
-
const composedPath = e.composedPath();
|
|
6608
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6609
|
-
showPopoverClick.value = true;
|
|
6610
|
-
} else {
|
|
6611
|
-
showPopoverClick.value = false;
|
|
6612
|
-
}
|
|
6613
|
-
};
|
|
6614
|
-
watch(showPopover, (val) => {
|
|
6615
|
-
if (val) {
|
|
6616
|
-
setTimeout(() => {
|
|
6617
|
-
document.addEventListener("click", onDocumentClick);
|
|
6618
|
-
});
|
|
6619
|
-
} else {
|
|
6620
|
-
showPopoverClick.value = true;
|
|
6621
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6622
|
-
}
|
|
6623
|
-
});
|
|
6624
|
-
onUnmounted(() => {
|
|
6625
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6626
|
-
});
|
|
6627
6609
|
return () => createVNode("div", {
|
|
6628
6610
|
"class": controlClasses.value,
|
|
6629
6611
|
"ref": formControl2
|
|
@@ -6631,7 +6613,7 @@ var FormControl = defineComponent({
|
|
|
6631
6613
|
"class": controlContainerClasses.value
|
|
6632
6614
|
}, [createVNode(Popover, {
|
|
6633
6615
|
"ref": popoverRef,
|
|
6634
|
-
"is-open": showPopover.value
|
|
6616
|
+
"is-open": showPopover.value,
|
|
6635
6617
|
"trigger": "manually",
|
|
6636
6618
|
"content": errorMessage.value,
|
|
6637
6619
|
"pop-type": "error",
|
|
@@ -7761,7 +7743,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7761
7743
|
callback == null ? void 0 : callback(true);
|
|
7762
7744
|
return true;
|
|
7763
7745
|
}
|
|
7764
|
-
|
|
7746
|
+
if (props.isAsyncValidate) {
|
|
7747
|
+
validateState.value = "pending";
|
|
7748
|
+
}
|
|
7765
7749
|
return execValidate(rules2).then(() => {
|
|
7766
7750
|
callback == null ? void 0 : callback(true);
|
|
7767
7751
|
return true;
|