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/search/index.es.js
CHANGED
|
@@ -79,6 +79,10 @@ const searchProps = {
|
|
|
79
79
|
"onUpdate:modelValue": {
|
|
80
80
|
type: Function,
|
|
81
81
|
default: void 0
|
|
82
|
+
},
|
|
83
|
+
showGlowStyle: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: true
|
|
82
86
|
}
|
|
83
87
|
};
|
|
84
88
|
const formProps = {
|
|
@@ -1374,7 +1378,7 @@ var lodash = { exports: {} };
|
|
|
1374
1378
|
if (typeof func != "function") {
|
|
1375
1379
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1376
1380
|
}
|
|
1377
|
-
return
|
|
1381
|
+
return setTimeout(function() {
|
|
1378
1382
|
func.apply(undefined$1, args);
|
|
1379
1383
|
}, wait);
|
|
1380
1384
|
}
|
|
@@ -3183,7 +3187,7 @@ var lodash = { exports: {} };
|
|
|
3183
3187
|
return object4[key];
|
|
3184
3188
|
}
|
|
3185
3189
|
var setData = shortOut(baseSetData);
|
|
3186
|
-
var
|
|
3190
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3187
3191
|
return root.setTimeout(func, wait);
|
|
3188
3192
|
};
|
|
3189
3193
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3975,7 +3979,7 @@ var lodash = { exports: {} };
|
|
|
3975
3979
|
}
|
|
3976
3980
|
function leadingEdge(time) {
|
|
3977
3981
|
lastInvokeTime = time;
|
|
3978
|
-
timerId =
|
|
3982
|
+
timerId = setTimeout(timerExpired, wait);
|
|
3979
3983
|
return leading ? invokeFunc(time) : result2;
|
|
3980
3984
|
}
|
|
3981
3985
|
function remainingWait(time) {
|
|
@@ -3991,7 +3995,7 @@ var lodash = { exports: {} };
|
|
|
3991
3995
|
if (shouldInvoke(time)) {
|
|
3992
3996
|
return trailingEdge(time);
|
|
3993
3997
|
}
|
|
3994
|
-
timerId =
|
|
3998
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
3995
3999
|
}
|
|
3996
4000
|
function trailingEdge(time) {
|
|
3997
4001
|
timerId = undefined$1;
|
|
@@ -4022,12 +4026,12 @@ var lodash = { exports: {} };
|
|
|
4022
4026
|
}
|
|
4023
4027
|
if (maxing) {
|
|
4024
4028
|
clearTimeout(timerId);
|
|
4025
|
-
timerId =
|
|
4029
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4026
4030
|
return invokeFunc(lastCallTime);
|
|
4027
4031
|
}
|
|
4028
4032
|
}
|
|
4029
4033
|
if (timerId === undefined$1) {
|
|
4030
|
-
timerId =
|
|
4034
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4031
4035
|
}
|
|
4032
4036
|
return result2;
|
|
4033
4037
|
}
|
|
@@ -5741,6 +5745,10 @@ const formItemProps = {
|
|
|
5741
5745
|
extraInfo: {
|
|
5742
5746
|
type: String,
|
|
5743
5747
|
default: ""
|
|
5748
|
+
},
|
|
5749
|
+
isAsyncValidate: {
|
|
5750
|
+
type: Boolean,
|
|
5751
|
+
default: false
|
|
5744
5752
|
}
|
|
5745
5753
|
};
|
|
5746
5754
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6568,7 +6576,6 @@ var FormControl = defineComponent({
|
|
|
6568
6576
|
const formControl2 = ref();
|
|
6569
6577
|
const popoverRef = ref();
|
|
6570
6578
|
const ns2 = useNamespace$1("form");
|
|
6571
|
-
const showPopoverClick = ref(true);
|
|
6572
6579
|
const {
|
|
6573
6580
|
controlClasses,
|
|
6574
6581
|
controlContainerClasses,
|
|
@@ -6592,27 +6599,6 @@ var FormControl = defineComponent({
|
|
|
6592
6599
|
}
|
|
6593
6600
|
return void 0;
|
|
6594
6601
|
});
|
|
6595
|
-
const onDocumentClick = (e) => {
|
|
6596
|
-
const composedPath = e.composedPath();
|
|
6597
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6598
|
-
showPopoverClick.value = true;
|
|
6599
|
-
} else {
|
|
6600
|
-
showPopoverClick.value = false;
|
|
6601
|
-
}
|
|
6602
|
-
};
|
|
6603
|
-
watch(showPopover, (val) => {
|
|
6604
|
-
if (val) {
|
|
6605
|
-
setTimeout(() => {
|
|
6606
|
-
document.addEventListener("click", onDocumentClick);
|
|
6607
|
-
});
|
|
6608
|
-
} else {
|
|
6609
|
-
showPopoverClick.value = true;
|
|
6610
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6611
|
-
}
|
|
6612
|
-
});
|
|
6613
|
-
onUnmounted(() => {
|
|
6614
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6615
|
-
});
|
|
6616
6602
|
return () => createVNode("div", {
|
|
6617
6603
|
"class": controlClasses.value,
|
|
6618
6604
|
"ref": formControl2
|
|
@@ -6620,7 +6606,7 @@ var FormControl = defineComponent({
|
|
|
6620
6606
|
"class": controlContainerClasses.value
|
|
6621
6607
|
}, [createVNode(Popover, {
|
|
6622
6608
|
"ref": popoverRef,
|
|
6623
|
-
"is-open": showPopover.value
|
|
6609
|
+
"is-open": showPopover.value,
|
|
6624
6610
|
"trigger": "manually",
|
|
6625
6611
|
"content": errorMessage.value,
|
|
6626
6612
|
"pop-type": "error",
|
|
@@ -7750,7 +7736,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7750
7736
|
callback == null ? void 0 : callback(true);
|
|
7751
7737
|
return true;
|
|
7752
7738
|
}
|
|
7753
|
-
|
|
7739
|
+
if (props.isAsyncValidate) {
|
|
7740
|
+
validateState.value = "pending";
|
|
7741
|
+
}
|
|
7754
7742
|
return execValidate(rules2).then(() => {
|
|
7755
7743
|
callback == null ? void 0 : callback(true);
|
|
7756
7744
|
return true;
|
|
@@ -7902,6 +7890,7 @@ const useSearchClass = (props, isFocus) => {
|
|
|
7902
7890
|
[ns2.m("focus")]: isFocus.value,
|
|
7903
7891
|
[ns2.m("disabled")]: props.disabled,
|
|
7904
7892
|
[ns2.m("no-border")]: props.noBorder,
|
|
7893
|
+
[ns2.m("glow-style")]: props.showGlowStyle,
|
|
7905
7894
|
[ns2.m(searchSize.value)]: !!searchSize.value,
|
|
7906
7895
|
[ns2.m(props.iconPosition)]: ICON_POSITION[props.iconPosition]
|
|
7907
7896
|
}));
|
|
@@ -8664,6 +8653,7 @@ var Search = defineComponent({
|
|
|
8664
8653
|
maxlength: props.maxLength,
|
|
8665
8654
|
modelValue: keywords.value,
|
|
8666
8655
|
placeholder: props.placeholder || t("placeholder"),
|
|
8656
|
+
showGlowStyle: false,
|
|
8667
8657
|
onKeydown: onInputKeydown,
|
|
8668
8658
|
"onUpdate:modelValue": onInputUpdate,
|
|
8669
8659
|
onFocus,
|