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/checkbox/index.es.js
CHANGED
|
@@ -1433,7 +1433,7 @@ var lodash = { exports: {} };
|
|
|
1433
1433
|
if (typeof func != "function") {
|
|
1434
1434
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1435
1435
|
}
|
|
1436
|
-
return
|
|
1436
|
+
return setTimeout(function() {
|
|
1437
1437
|
func.apply(undefined$1, args);
|
|
1438
1438
|
}, wait);
|
|
1439
1439
|
}
|
|
@@ -3242,7 +3242,7 @@ var lodash = { exports: {} };
|
|
|
3242
3242
|
return object4[key];
|
|
3243
3243
|
}
|
|
3244
3244
|
var setData = shortOut(baseSetData);
|
|
3245
|
-
var
|
|
3245
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3246
3246
|
return root.setTimeout(func, wait);
|
|
3247
3247
|
};
|
|
3248
3248
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4034,7 +4034,7 @@ var lodash = { exports: {} };
|
|
|
4034
4034
|
}
|
|
4035
4035
|
function leadingEdge(time) {
|
|
4036
4036
|
lastInvokeTime = time;
|
|
4037
|
-
timerId =
|
|
4037
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4038
4038
|
return leading ? invokeFunc(time) : result2;
|
|
4039
4039
|
}
|
|
4040
4040
|
function remainingWait(time) {
|
|
@@ -4050,7 +4050,7 @@ var lodash = { exports: {} };
|
|
|
4050
4050
|
if (shouldInvoke(time)) {
|
|
4051
4051
|
return trailingEdge(time);
|
|
4052
4052
|
}
|
|
4053
|
-
timerId =
|
|
4053
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
4054
4054
|
}
|
|
4055
4055
|
function trailingEdge(time) {
|
|
4056
4056
|
timerId = undefined$1;
|
|
@@ -4081,12 +4081,12 @@ var lodash = { exports: {} };
|
|
|
4081
4081
|
}
|
|
4082
4082
|
if (maxing) {
|
|
4083
4083
|
clearTimeout(timerId);
|
|
4084
|
-
timerId =
|
|
4084
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4085
4085
|
return invokeFunc(lastCallTime);
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
if (timerId === undefined$1) {
|
|
4089
|
-
timerId =
|
|
4089
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4090
4090
|
}
|
|
4091
4091
|
return result2;
|
|
4092
4092
|
}
|
|
@@ -5800,6 +5800,10 @@ const formItemProps = {
|
|
|
5800
5800
|
extraInfo: {
|
|
5801
5801
|
type: String,
|
|
5802
5802
|
default: ""
|
|
5803
|
+
},
|
|
5804
|
+
isAsyncValidate: {
|
|
5805
|
+
type: Boolean,
|
|
5806
|
+
default: false
|
|
5803
5807
|
}
|
|
5804
5808
|
};
|
|
5805
5809
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6627,7 +6631,6 @@ var FormControl = defineComponent({
|
|
|
6627
6631
|
const formControl2 = ref();
|
|
6628
6632
|
const popoverRef = ref();
|
|
6629
6633
|
const ns2 = useNamespace$1("form");
|
|
6630
|
-
const showPopoverClick = ref(true);
|
|
6631
6634
|
const {
|
|
6632
6635
|
controlClasses,
|
|
6633
6636
|
controlContainerClasses,
|
|
@@ -6651,27 +6654,6 @@ var FormControl = defineComponent({
|
|
|
6651
6654
|
}
|
|
6652
6655
|
return void 0;
|
|
6653
6656
|
});
|
|
6654
|
-
const onDocumentClick = (e) => {
|
|
6655
|
-
const composedPath = e.composedPath();
|
|
6656
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6657
|
-
showPopoverClick.value = true;
|
|
6658
|
-
} else {
|
|
6659
|
-
showPopoverClick.value = false;
|
|
6660
|
-
}
|
|
6661
|
-
};
|
|
6662
|
-
watch(showPopover, (val) => {
|
|
6663
|
-
if (val) {
|
|
6664
|
-
setTimeout(() => {
|
|
6665
|
-
document.addEventListener("click", onDocumentClick);
|
|
6666
|
-
});
|
|
6667
|
-
} else {
|
|
6668
|
-
showPopoverClick.value = true;
|
|
6669
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6670
|
-
}
|
|
6671
|
-
});
|
|
6672
|
-
onUnmounted(() => {
|
|
6673
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6674
|
-
});
|
|
6675
6657
|
return () => createVNode("div", {
|
|
6676
6658
|
"class": controlClasses.value,
|
|
6677
6659
|
"ref": formControl2
|
|
@@ -6679,7 +6661,7 @@ var FormControl = defineComponent({
|
|
|
6679
6661
|
"class": controlContainerClasses.value
|
|
6680
6662
|
}, [createVNode(Popover, {
|
|
6681
6663
|
"ref": popoverRef,
|
|
6682
|
-
"is-open": showPopover.value
|
|
6664
|
+
"is-open": showPopover.value,
|
|
6683
6665
|
"trigger": "manually",
|
|
6684
6666
|
"content": errorMessage.value,
|
|
6685
6667
|
"pop-type": "error",
|
|
@@ -7809,7 +7791,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7809
7791
|
callback == null ? void 0 : callback(true);
|
|
7810
7792
|
return true;
|
|
7811
7793
|
}
|
|
7812
|
-
|
|
7794
|
+
if (props.isAsyncValidate) {
|
|
7795
|
+
validateState.value = "pending";
|
|
7796
|
+
}
|
|
7813
7797
|
return execValidate(rules2).then(() => {
|
|
7814
7798
|
callback == null ? void 0 : callback(true);
|
|
7815
7799
|
return true;
|