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/data-grid/index.es.js
CHANGED
|
@@ -354,8 +354,7 @@ const commonProps = {
|
|
|
354
354
|
default: void 0
|
|
355
355
|
},
|
|
356
356
|
size: {
|
|
357
|
-
type: String
|
|
358
|
-
default: "md"
|
|
357
|
+
type: String
|
|
359
358
|
},
|
|
360
359
|
showGlowStyle: {
|
|
361
360
|
type: Boolean,
|
|
@@ -6082,6 +6081,10 @@ const formItemProps = {
|
|
|
6082
6081
|
extraInfo: {
|
|
6083
6082
|
type: String,
|
|
6084
6083
|
default: ""
|
|
6084
|
+
},
|
|
6085
|
+
isAsyncValidate: {
|
|
6086
|
+
type: Boolean,
|
|
6087
|
+
default: false
|
|
6085
6088
|
}
|
|
6086
6089
|
};
|
|
6087
6090
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -6644,7 +6647,6 @@ var FormControl = defineComponent({
|
|
|
6644
6647
|
const formControl2 = ref();
|
|
6645
6648
|
const popoverRef = ref();
|
|
6646
6649
|
const ns2 = useNamespace("form");
|
|
6647
|
-
const showPopoverClick = ref(true);
|
|
6648
6650
|
const {
|
|
6649
6651
|
controlClasses,
|
|
6650
6652
|
controlContainerClasses,
|
|
@@ -6668,27 +6670,6 @@ var FormControl = defineComponent({
|
|
|
6668
6670
|
}
|
|
6669
6671
|
return void 0;
|
|
6670
6672
|
});
|
|
6671
|
-
const onDocumentClick = (e) => {
|
|
6672
|
-
const composedPath = e.composedPath();
|
|
6673
|
-
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6674
|
-
showPopoverClick.value = true;
|
|
6675
|
-
} else {
|
|
6676
|
-
showPopoverClick.value = false;
|
|
6677
|
-
}
|
|
6678
|
-
};
|
|
6679
|
-
watch(showPopover, (val) => {
|
|
6680
|
-
if (val) {
|
|
6681
|
-
setTimeout(() => {
|
|
6682
|
-
document.addEventListener("click", onDocumentClick);
|
|
6683
|
-
});
|
|
6684
|
-
} else {
|
|
6685
|
-
showPopoverClick.value = true;
|
|
6686
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6687
|
-
}
|
|
6688
|
-
});
|
|
6689
|
-
onUnmounted(() => {
|
|
6690
|
-
document.removeEventListener("click", onDocumentClick);
|
|
6691
|
-
});
|
|
6692
6673
|
return () => createVNode("div", {
|
|
6693
6674
|
"class": controlClasses.value,
|
|
6694
6675
|
"ref": formControl2
|
|
@@ -6696,7 +6677,7 @@ var FormControl = defineComponent({
|
|
|
6696
6677
|
"class": controlContainerClasses.value
|
|
6697
6678
|
}, [createVNode(Popover, {
|
|
6698
6679
|
"ref": popoverRef,
|
|
6699
|
-
"is-open": showPopover.value
|
|
6680
|
+
"is-open": showPopover.value,
|
|
6700
6681
|
"trigger": "manually",
|
|
6701
6682
|
"content": errorMessage.value,
|
|
6702
6683
|
"pop-type": "error",
|
|
@@ -7826,7 +7807,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
7826
7807
|
callback == null ? void 0 : callback(true);
|
|
7827
7808
|
return true;
|
|
7828
7809
|
}
|
|
7829
|
-
|
|
7810
|
+
if (props.isAsyncValidate) {
|
|
7811
|
+
validateState.value = "pending";
|
|
7812
|
+
}
|
|
7830
7813
|
return execValidate(rules2).then(() => {
|
|
7831
7814
|
callback == null ? void 0 : callback(true);
|
|
7832
7815
|
return true;
|
|
@@ -8088,7 +8071,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
8088
8071
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
8089
8072
|
});
|
|
8090
8073
|
}, { deep: true });
|
|
8091
|
-
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
8074
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
8092
8075
|
provide(checkboxGroupInjectionKey, {
|
|
8093
8076
|
disabled: toRef(props, "disabled"),
|
|
8094
8077
|
isShowTitle: toRef(props, "isShowTitle"),
|
|
@@ -11367,7 +11350,7 @@ function useDataGrid(props, ctx) {
|
|
|
11367
11350
|
(_a = scrollRef.value) == null ? void 0 : _a.addEventListener("scroll", onScroll);
|
|
11368
11351
|
if (typeof window !== "undefined" && scrollRef.value) {
|
|
11369
11352
|
resizeObserver = new ResizeObserver(() => {
|
|
11370
|
-
if (scrollRef.value) {
|
|
11353
|
+
if (scrollRef.value && sliceColumns.value.length) {
|
|
11371
11354
|
let distance = 0;
|
|
11372
11355
|
initOriginColumnData();
|
|
11373
11356
|
distance = scrollRef.value.scrollLeft;
|