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
|
@@ -2713,8 +2713,7 @@ const commonProps = {
|
|
|
2713
2713
|
default: void 0
|
|
2714
2714
|
},
|
|
2715
2715
|
size: {
|
|
2716
|
-
type: String
|
|
2717
|
-
default: "md"
|
|
2716
|
+
type: String
|
|
2718
2717
|
},
|
|
2719
2718
|
showGlowStyle: {
|
|
2720
2719
|
type: Boolean,
|
|
@@ -8434,6 +8433,10 @@ const formItemProps = {
|
|
|
8434
8433
|
extraInfo: {
|
|
8435
8434
|
type: String,
|
|
8436
8435
|
default: ""
|
|
8436
|
+
},
|
|
8437
|
+
isAsyncValidate: {
|
|
8438
|
+
type: Boolean,
|
|
8439
|
+
default: false
|
|
8437
8440
|
}
|
|
8438
8441
|
};
|
|
8439
8442
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -8940,7 +8943,6 @@ var FormControl = defineComponent({
|
|
|
8940
8943
|
const formControl2 = ref();
|
|
8941
8944
|
const popoverRef = ref();
|
|
8942
8945
|
const ns2 = useNamespace("form");
|
|
8943
|
-
const showPopoverClick = ref(true);
|
|
8944
8946
|
const {
|
|
8945
8947
|
controlClasses,
|
|
8946
8948
|
controlContainerClasses,
|
|
@@ -8964,27 +8966,6 @@ var FormControl = defineComponent({
|
|
|
8964
8966
|
}
|
|
8965
8967
|
return void 0;
|
|
8966
8968
|
});
|
|
8967
|
-
const onDocumentClick = (e) => {
|
|
8968
|
-
const composedPath = e.composedPath();
|
|
8969
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
8970
|
-
showPopoverClick.value = true;
|
|
8971
|
-
} else {
|
|
8972
|
-
showPopoverClick.value = false;
|
|
8973
|
-
}
|
|
8974
|
-
};
|
|
8975
|
-
watch(showPopover, (val) => {
|
|
8976
|
-
if (val) {
|
|
8977
|
-
setTimeout(() => {
|
|
8978
|
-
document.addEventListener("click", onDocumentClick);
|
|
8979
|
-
});
|
|
8980
|
-
} else {
|
|
8981
|
-
showPopoverClick.value = true;
|
|
8982
|
-
document.removeEventListener("click", onDocumentClick);
|
|
8983
|
-
}
|
|
8984
|
-
});
|
|
8985
|
-
onUnmounted(() => {
|
|
8986
|
-
document.removeEventListener("click", onDocumentClick);
|
|
8987
|
-
});
|
|
8988
8969
|
return () => createVNode("div", {
|
|
8989
8970
|
"class": controlClasses.value,
|
|
8990
8971
|
"ref": formControl2
|
|
@@ -8992,7 +8973,7 @@ var FormControl = defineComponent({
|
|
|
8992
8973
|
"class": controlContainerClasses.value
|
|
8993
8974
|
}, [createVNode(Popover, {
|
|
8994
8975
|
"ref": popoverRef,
|
|
8995
|
-
"is-open": showPopover.value
|
|
8976
|
+
"is-open": showPopover.value,
|
|
8996
8977
|
"trigger": "manually",
|
|
8997
8978
|
"content": errorMessage.value,
|
|
8998
8979
|
"pop-type": "error",
|
|
@@ -10122,7 +10103,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
10122
10103
|
callback == null ? void 0 : callback(true);
|
|
10123
10104
|
return true;
|
|
10124
10105
|
}
|
|
10125
|
-
|
|
10106
|
+
if (props.isAsyncValidate) {
|
|
10107
|
+
validateState.value = "pending";
|
|
10108
|
+
}
|
|
10126
10109
|
return execValidate(rules2).then(() => {
|
|
10127
10110
|
callback == null ? void 0 : callback(true);
|
|
10128
10111
|
return true;
|
|
@@ -10384,7 +10367,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
10384
10367
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
10385
10368
|
});
|
|
10386
10369
|
}, { deep: true });
|
|
10387
|
-
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
10370
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
10388
10371
|
provide(checkboxGroupInjectionKey, {
|
|
10389
10372
|
disabled: toRef(props, "disabled"),
|
|
10390
10373
|
isShowTitle: toRef(props, "isShowTitle"),
|
|
@@ -12316,13 +12299,13 @@ var CategorySearch = defineComponent({
|
|
|
12316
12299
|
onSearch
|
|
12317
12300
|
} = useCategorySearch(props, ctx);
|
|
12318
12301
|
return () => {
|
|
12319
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
12302
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
12320
12303
|
return createVNode("div", {
|
|
12321
12304
|
"ref": rootRef,
|
|
12322
12305
|
"class": containerClasses.value,
|
|
12323
12306
|
"onMouseenter": () => isHover.value = true,
|
|
12324
12307
|
"onMouseleave": () => isHover.value = false
|
|
12325
|
-
}, [createVNode("div", {
|
|
12308
|
+
}, [(_c = (_b = (_a = ctx.slots).searchIcon) == null ? void 0 : _b.call(_a)) != null ? _c : createVNode("div", {
|
|
12326
12309
|
"class": "dp-category-search-icon",
|
|
12327
12310
|
"onClick": onSearch
|
|
12328
12311
|
}, [createVNode(SearchIcon, null, null)]), createVNode("div", {
|
|
@@ -12337,13 +12320,13 @@ var CategorySearch = defineComponent({
|
|
|
12337
12320
|
"ref": inputRef
|
|
12338
12321
|
}, null)])]), showExtendedConfig.value && createVNode("div", {
|
|
12339
12322
|
"class": "dp-category-search-extended-container"
|
|
12340
|
-
}, [((
|
|
12341
|
-
"disabled": (
|
|
12342
|
-
}, null)]), ((
|
|
12343
|
-
"disabled": (
|
|
12344
|
-
}, null)]), ((
|
|
12345
|
-
"disabled": (
|
|
12346
|
-
}, null)]), (
|
|
12323
|
+
}, [((_d = operationConfig.clear) == null ? void 0 : _d.show) && createVNode(Fragment, null, [(_h = (_f = (_e = ctx.slots).clear) == null ? void 0 : _f.call(_e)) != null ? _h : createVNode(CategorySearchClear, {
|
|
12324
|
+
"disabled": (_g = operationConfig.clear) == null ? void 0 : _g.disabled
|
|
12325
|
+
}, null)]), ((_i = operationConfig.save) == null ? void 0 : _i.show) && createVNode(Fragment, null, [(_m = (_k = (_j = ctx.slots).save) == null ? void 0 : _k.call(_j)) != null ? _m : createVNode(CategorySearchSave, {
|
|
12326
|
+
"disabled": (_l = operationConfig.save) == null ? void 0 : _l.disabled
|
|
12327
|
+
}, null)]), ((_n = operationConfig.more) == null ? void 0 : _n.show) && createVNode(Fragment, null, [(_r = (_p = (_o = ctx.slots).more) == null ? void 0 : _p.call(_o)) != null ? _r : createVNode(CategorySearchMore, {
|
|
12328
|
+
"disabled": (_q = operationConfig.more) == null ? void 0 : _q.disabled
|
|
12329
|
+
}, null)]), (_t = (_s = ctx.slots).operation) == null ? void 0 : _t.call(_s)])]);
|
|
12347
12330
|
};
|
|
12348
12331
|
}
|
|
12349
12332
|
});
|