vue-devui 1.6.9 → 1.6.11
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 +19 -36
- package/category-search/index.umd.js +18 -18
- package/checkbox/index.es.js +16 -33
- package/checkbox/index.umd.js +17 -17
- package/data-grid/index.es.js +11 -28
- package/data-grid/index.umd.js +7 -7
- package/date-picker-pro/index.es.js +36 -30
- package/date-picker-pro/index.umd.js +11 -11
- 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/menu/index.es.js +26 -2
- package/menu/index.umd.js +5 -1
- package/menu/style.css +1 -1
- package/modal/index.es.js +18 -12
- package/modal/index.umd.js +7 -7
- package/package.json +1 -1
- package/pagination/index.es.js +10 -27
- 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 +16 -33
- 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 +10 -27
- 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 +16 -33
- package/time-select/index.umd.js +14 -14
- package/tree/index.es.js +10 -27
- package/tree/index.umd.js +9 -9
- package/types/checkbox/src/checkbox-types.d.ts +0 -2
- package/types/date-picker-pro/src/date-picker-pro-types.d.ts +13 -0
- package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
- 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 +79 -59
- package/vue-devui.umd.js +43 -43
package/checkbox/index.es.js
CHANGED
|
@@ -65,8 +65,7 @@ const commonProps = {
|
|
|
65
65
|
default: void 0
|
|
66
66
|
},
|
|
67
67
|
size: {
|
|
68
|
-
type: String
|
|
69
|
-
default: "md"
|
|
68
|
+
type: String
|
|
70
69
|
},
|
|
71
70
|
showGlowStyle: {
|
|
72
71
|
type: Boolean,
|
|
@@ -1433,7 +1432,7 @@ var lodash = { exports: {} };
|
|
|
1433
1432
|
if (typeof func != "function") {
|
|
1434
1433
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1435
1434
|
}
|
|
1436
|
-
return
|
|
1435
|
+
return setTimeout(function() {
|
|
1437
1436
|
func.apply(undefined$1, args);
|
|
1438
1437
|
}, wait);
|
|
1439
1438
|
}
|
|
@@ -3242,7 +3241,7 @@ var lodash = { exports: {} };
|
|
|
3242
3241
|
return object4[key];
|
|
3243
3242
|
}
|
|
3244
3243
|
var setData = shortOut(baseSetData);
|
|
3245
|
-
var
|
|
3244
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3246
3245
|
return root.setTimeout(func, wait);
|
|
3247
3246
|
};
|
|
3248
3247
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4034,7 +4033,7 @@ var lodash = { exports: {} };
|
|
|
4034
4033
|
}
|
|
4035
4034
|
function leadingEdge(time) {
|
|
4036
4035
|
lastInvokeTime = time;
|
|
4037
|
-
timerId =
|
|
4036
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4038
4037
|
return leading ? invokeFunc(time) : result2;
|
|
4039
4038
|
}
|
|
4040
4039
|
function remainingWait(time) {
|
|
@@ -4050,7 +4049,7 @@ var lodash = { exports: {} };
|
|
|
4050
4049
|
if (shouldInvoke(time)) {
|
|
4051
4050
|
return trailingEdge(time);
|
|
4052
4051
|
}
|
|
4053
|
-
timerId =
|
|
4052
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
4054
4053
|
}
|
|
4055
4054
|
function trailingEdge(time) {
|
|
4056
4055
|
timerId = undefined$1;
|
|
@@ -4081,12 +4080,12 @@ var lodash = { exports: {} };
|
|
|
4081
4080
|
}
|
|
4082
4081
|
if (maxing) {
|
|
4083
4082
|
clearTimeout(timerId);
|
|
4084
|
-
timerId =
|
|
4083
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4085
4084
|
return invokeFunc(lastCallTime);
|
|
4086
4085
|
}
|
|
4087
4086
|
}
|
|
4088
4087
|
if (timerId === undefined$1) {
|
|
4089
|
-
timerId =
|
|
4088
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4090
4089
|
}
|
|
4091
4090
|
return result2;
|
|
4092
4091
|
}
|
|
@@ -5800,6 +5799,10 @@ const formItemProps = {
|
|
|
5800
5799
|
extraInfo: {
|
|
5801
5800
|
type: String,
|
|
5802
5801
|
default: ""
|
|
5802
|
+
},
|
|
5803
|
+
isAsyncValidate: {
|
|
5804
|
+
type: Boolean,
|
|
5805
|
+
default: false
|
|
5803
5806
|
}
|
|
5804
5807
|
};
|
|
5805
5808
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6627,7 +6630,6 @@ var FormControl = defineComponent({
|
|
|
6627
6630
|
const formControl2 = ref();
|
|
6628
6631
|
const popoverRef = ref();
|
|
6629
6632
|
const ns2 = useNamespace$1("form");
|
|
6630
|
-
const showPopoverClick = ref(true);
|
|
6631
6633
|
const {
|
|
6632
6634
|
controlClasses,
|
|
6633
6635
|
controlContainerClasses,
|
|
@@ -6651,27 +6653,6 @@ var FormControl = defineComponent({
|
|
|
6651
6653
|
}
|
|
6652
6654
|
return void 0;
|
|
6653
6655
|
});
|
|
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
6656
|
return () => createVNode("div", {
|
|
6676
6657
|
"class": controlClasses.value,
|
|
6677
6658
|
"ref": formControl2
|
|
@@ -6679,7 +6660,7 @@ var FormControl = defineComponent({
|
|
|
6679
6660
|
"class": controlContainerClasses.value
|
|
6680
6661
|
}, [createVNode(Popover, {
|
|
6681
6662
|
"ref": popoverRef,
|
|
6682
|
-
"is-open": showPopover.value
|
|
6663
|
+
"is-open": showPopover.value,
|
|
6683
6664
|
"trigger": "manually",
|
|
6684
6665
|
"content": errorMessage.value,
|
|
6685
6666
|
"pop-type": "error",
|
|
@@ -7809,7 +7790,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7809
7790
|
callback == null ? void 0 : callback(true);
|
|
7810
7791
|
return true;
|
|
7811
7792
|
}
|
|
7812
|
-
|
|
7793
|
+
if (props.isAsyncValidate) {
|
|
7794
|
+
validateState.value = "pending";
|
|
7795
|
+
}
|
|
7813
7796
|
return execValidate(rules2).then(() => {
|
|
7814
7797
|
callback == null ? void 0 : callback(true);
|
|
7815
7798
|
return true;
|
|
@@ -8071,7 +8054,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
8071
8054
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
8072
8055
|
});
|
|
8073
8056
|
}, { deep: true });
|
|
8074
|
-
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
8057
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
8075
8058
|
provide(checkboxGroupInjectionKey, {
|
|
8076
8059
|
disabled: toRef(props, "disabled"),
|
|
8077
8060
|
isShowTitle: toRef(props, "isShowTitle"),
|