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/table/index.es.js
CHANGED
|
@@ -7547,8 +7547,7 @@ const commonProps = {
|
|
|
7547
7547
|
default: void 0
|
|
7548
7548
|
},
|
|
7549
7549
|
size: {
|
|
7550
|
-
type: String
|
|
7551
|
-
default: "md"
|
|
7550
|
+
type: String
|
|
7552
7551
|
},
|
|
7553
7552
|
showGlowStyle: {
|
|
7554
7553
|
type: Boolean,
|
|
@@ -7828,6 +7827,10 @@ const formItemProps = {
|
|
|
7828
7827
|
extraInfo: {
|
|
7829
7828
|
type: String,
|
|
7830
7829
|
default: ""
|
|
7830
|
+
},
|
|
7831
|
+
isAsyncValidate: {
|
|
7832
|
+
type: Boolean,
|
|
7833
|
+
default: false
|
|
7831
7834
|
}
|
|
7832
7835
|
};
|
|
7833
7836
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -8334,7 +8337,6 @@ var FormControl = defineComponent({
|
|
|
8334
8337
|
const formControl2 = ref();
|
|
8335
8338
|
const popoverRef = ref();
|
|
8336
8339
|
const ns2 = useNamespace("form");
|
|
8337
|
-
const showPopoverClick = ref(true);
|
|
8338
8340
|
const {
|
|
8339
8341
|
controlClasses,
|
|
8340
8342
|
controlContainerClasses,
|
|
@@ -8358,27 +8360,6 @@ var FormControl = defineComponent({
|
|
|
8358
8360
|
}
|
|
8359
8361
|
return void 0;
|
|
8360
8362
|
});
|
|
8361
|
-
const onDocumentClick = (e) => {
|
|
8362
|
-
const composedPath = e.composedPath();
|
|
8363
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
8364
|
-
showPopoverClick.value = true;
|
|
8365
|
-
} else {
|
|
8366
|
-
showPopoverClick.value = false;
|
|
8367
|
-
}
|
|
8368
|
-
};
|
|
8369
|
-
watch(showPopover, (val) => {
|
|
8370
|
-
if (val) {
|
|
8371
|
-
setTimeout(() => {
|
|
8372
|
-
document.addEventListener("click", onDocumentClick);
|
|
8373
|
-
});
|
|
8374
|
-
} else {
|
|
8375
|
-
showPopoverClick.value = true;
|
|
8376
|
-
document.removeEventListener("click", onDocumentClick);
|
|
8377
|
-
}
|
|
8378
|
-
});
|
|
8379
|
-
onUnmounted(() => {
|
|
8380
|
-
document.removeEventListener("click", onDocumentClick);
|
|
8381
|
-
});
|
|
8382
8363
|
return () => createVNode("div", {
|
|
8383
8364
|
"class": controlClasses.value,
|
|
8384
8365
|
"ref": formControl2
|
|
@@ -8386,7 +8367,7 @@ var FormControl = defineComponent({
|
|
|
8386
8367
|
"class": controlContainerClasses.value
|
|
8387
8368
|
}, [createVNode(Popover, {
|
|
8388
8369
|
"ref": popoverRef,
|
|
8389
|
-
"is-open": showPopover.value
|
|
8370
|
+
"is-open": showPopover.value,
|
|
8390
8371
|
"trigger": "manually",
|
|
8391
8372
|
"content": errorMessage.value,
|
|
8392
8373
|
"pop-type": "error",
|
|
@@ -9516,7 +9497,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
9516
9497
|
callback == null ? void 0 : callback(true);
|
|
9517
9498
|
return true;
|
|
9518
9499
|
}
|
|
9519
|
-
|
|
9500
|
+
if (props.isAsyncValidate) {
|
|
9501
|
+
validateState.value = "pending";
|
|
9502
|
+
}
|
|
9520
9503
|
return execValidate(rules2).then(() => {
|
|
9521
9504
|
callback == null ? void 0 : callback(true);
|
|
9522
9505
|
return true;
|
|
@@ -9778,7 +9761,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
9778
9761
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
9779
9762
|
});
|
|
9780
9763
|
}, { deep: true });
|
|
9781
|
-
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
9764
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
9782
9765
|
provide(checkboxGroupInjectionKey, {
|
|
9783
9766
|
disabled: toRef(props, "disabled"),
|
|
9784
9767
|
isShowTitle: toRef(props, "isShowTitle"),
|