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/form/index.es.js
CHANGED
|
@@ -1322,7 +1322,7 @@ var lodash = { exports: {} };
|
|
|
1322
1322
|
if (typeof func != "function") {
|
|
1323
1323
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1324
1324
|
}
|
|
1325
|
-
return
|
|
1325
|
+
return setTimeout(function() {
|
|
1326
1326
|
func.apply(undefined$1, args);
|
|
1327
1327
|
}, wait);
|
|
1328
1328
|
}
|
|
@@ -3131,7 +3131,7 @@ var lodash = { exports: {} };
|
|
|
3131
3131
|
return object4[key];
|
|
3132
3132
|
}
|
|
3133
3133
|
var setData = shortOut(baseSetData);
|
|
3134
|
-
var
|
|
3134
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3135
3135
|
return root.setTimeout(func, wait);
|
|
3136
3136
|
};
|
|
3137
3137
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3923,7 +3923,7 @@ var lodash = { exports: {} };
|
|
|
3923
3923
|
}
|
|
3924
3924
|
function leadingEdge(time) {
|
|
3925
3925
|
lastInvokeTime = time;
|
|
3926
|
-
timerId =
|
|
3926
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3927
3927
|
return leading ? invokeFunc(time) : result2;
|
|
3928
3928
|
}
|
|
3929
3929
|
function remainingWait(time) {
|
|
@@ -3939,7 +3939,7 @@ var lodash = { exports: {} };
|
|
|
3939
3939
|
if (shouldInvoke(time)) {
|
|
3940
3940
|
return trailingEdge(time);
|
|
3941
3941
|
}
|
|
3942
|
-
timerId =
|
|
3942
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
3943
3943
|
}
|
|
3944
3944
|
function trailingEdge(time) {
|
|
3945
3945
|
timerId = undefined$1;
|
|
@@ -3970,12 +3970,12 @@ var lodash = { exports: {} };
|
|
|
3970
3970
|
}
|
|
3971
3971
|
if (maxing) {
|
|
3972
3972
|
clearTimeout(timerId);
|
|
3973
|
-
timerId =
|
|
3973
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3974
3974
|
return invokeFunc(lastCallTime);
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
if (timerId === undefined$1) {
|
|
3978
|
-
timerId =
|
|
3978
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3979
3979
|
}
|
|
3980
3980
|
return result2;
|
|
3981
3981
|
}
|
|
@@ -5689,6 +5689,10 @@ const formItemProps = {
|
|
|
5689
5689
|
extraInfo: {
|
|
5690
5690
|
type: String,
|
|
5691
5691
|
default: ""
|
|
5692
|
+
},
|
|
5693
|
+
isAsyncValidate: {
|
|
5694
|
+
type: Boolean,
|
|
5695
|
+
default: false
|
|
5692
5696
|
}
|
|
5693
5697
|
};
|
|
5694
5698
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6516,7 +6520,6 @@ var FormControl = defineComponent({
|
|
|
6516
6520
|
const formControl2 = ref();
|
|
6517
6521
|
const popoverRef = ref();
|
|
6518
6522
|
const ns2 = useNamespace$1("form");
|
|
6519
|
-
const showPopoverClick = ref(true);
|
|
6520
6523
|
const {
|
|
6521
6524
|
controlClasses,
|
|
6522
6525
|
controlContainerClasses,
|
|
@@ -6540,27 +6543,6 @@ var FormControl = defineComponent({
|
|
|
6540
6543
|
}
|
|
6541
6544
|
return void 0;
|
|
6542
6545
|
});
|
|
6543
|
-
const onDocumentClick = (e) => {
|
|
6544
|
-
const composedPath = e.composedPath();
|
|
6545
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6546
|
-
showPopoverClick.value = true;
|
|
6547
|
-
} else {
|
|
6548
|
-
showPopoverClick.value = false;
|
|
6549
|
-
}
|
|
6550
|
-
};
|
|
6551
|
-
watch(showPopover, (val) => {
|
|
6552
|
-
if (val) {
|
|
6553
|
-
setTimeout(() => {
|
|
6554
|
-
document.addEventListener("click", onDocumentClick);
|
|
6555
|
-
});
|
|
6556
|
-
} else {
|
|
6557
|
-
showPopoverClick.value = true;
|
|
6558
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6559
|
-
}
|
|
6560
|
-
});
|
|
6561
|
-
onUnmounted(() => {
|
|
6562
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6563
|
-
});
|
|
6564
6546
|
return () => createVNode("div", {
|
|
6565
6547
|
"class": controlClasses.value,
|
|
6566
6548
|
"ref": formControl2
|
|
@@ -6568,7 +6550,7 @@ var FormControl = defineComponent({
|
|
|
6568
6550
|
"class": controlContainerClasses.value
|
|
6569
6551
|
}, [createVNode(Popover, {
|
|
6570
6552
|
"ref": popoverRef,
|
|
6571
|
-
"is-open": showPopover.value
|
|
6553
|
+
"is-open": showPopover.value,
|
|
6572
6554
|
"trigger": "manually",
|
|
6573
6555
|
"content": errorMessage.value,
|
|
6574
6556
|
"pop-type": "error",
|
|
@@ -7698,7 +7680,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7698
7680
|
callback == null ? void 0 : callback(true);
|
|
7699
7681
|
return true;
|
|
7700
7682
|
}
|
|
7701
|
-
|
|
7683
|
+
if (props.isAsyncValidate) {
|
|
7684
|
+
validateState.value = "pending";
|
|
7685
|
+
}
|
|
7702
7686
|
return execValidate(rules2).then(() => {
|
|
7703
7687
|
callback == null ? void 0 : callback(true);
|
|
7704
7688
|
return true;
|