vue-devui 1.6.8 → 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 +11 -27
- 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 +20 -4
- package/editor-md/index.umd.js +11 -11
- 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/splitter/index.es.js +20 -3
- package/splitter/index.umd.js +7 -7
- package/style.css +1 -1
- package/switch/index.es.js +8 -24
- package/switch/index.umd.js +15 -15
- package/table/index.es.js +28 -27
- package/table/index.umd.js +11 -11
- 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/tooltip/index.es.js +20 -3
- package/tooltip/index.umd.js +12 -12
- 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/types/tooltip/src/tooltip-types.d.ts +14 -1
- package/types/tooltip/src/tooltip.d.ts +27 -0
- package/vue-devui.es.js +56 -44
- package/vue-devui.umd.js +43 -43
package/table/index.es.js
CHANGED
|
@@ -7828,6 +7828,10 @@ const formItemProps = {
|
|
|
7828
7828
|
extraInfo: {
|
|
7829
7829
|
type: String,
|
|
7830
7830
|
default: ""
|
|
7831
|
+
},
|
|
7832
|
+
isAsyncValidate: {
|
|
7833
|
+
type: Boolean,
|
|
7834
|
+
default: false
|
|
7831
7835
|
}
|
|
7832
7836
|
};
|
|
7833
7837
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
@@ -8334,7 +8338,6 @@ var FormControl = defineComponent({
|
|
|
8334
8338
|
const formControl2 = ref();
|
|
8335
8339
|
const popoverRef = ref();
|
|
8336
8340
|
const ns2 = useNamespace("form");
|
|
8337
|
-
const showPopoverClick = ref(true);
|
|
8338
8341
|
const {
|
|
8339
8342
|
controlClasses,
|
|
8340
8343
|
controlContainerClasses,
|
|
@@ -8358,27 +8361,6 @@ var FormControl = defineComponent({
|
|
|
8358
8361
|
}
|
|
8359
8362
|
return void 0;
|
|
8360
8363
|
});
|
|
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
8364
|
return () => createVNode("div", {
|
|
8383
8365
|
"class": controlClasses.value,
|
|
8384
8366
|
"ref": formControl2
|
|
@@ -8386,7 +8368,7 @@ var FormControl = defineComponent({
|
|
|
8386
8368
|
"class": controlContainerClasses.value
|
|
8387
8369
|
}, [createVNode(Popover, {
|
|
8388
8370
|
"ref": popoverRef,
|
|
8389
|
-
"is-open": showPopover.value
|
|
8371
|
+
"is-open": showPopover.value,
|
|
8390
8372
|
"trigger": "manually",
|
|
8391
8373
|
"content": errorMessage.value,
|
|
8392
8374
|
"pop-type": "error",
|
|
@@ -9516,7 +9498,9 @@ function useFormItemValidate(props, _rules) {
|
|
|
9516
9498
|
callback == null ? void 0 : callback(true);
|
|
9517
9499
|
return true;
|
|
9518
9500
|
}
|
|
9519
|
-
|
|
9501
|
+
if (props.isAsyncValidate) {
|
|
9502
|
+
validateState.value = "pending";
|
|
9503
|
+
}
|
|
9520
9504
|
return execValidate(rules2).then(() => {
|
|
9521
9505
|
callback == null ? void 0 : callback(true);
|
|
9522
9506
|
return true;
|
|
@@ -10753,6 +10737,10 @@ const tooltipProps = {
|
|
|
10753
10737
|
type: [String, Array],
|
|
10754
10738
|
default: "top"
|
|
10755
10739
|
},
|
|
10740
|
+
align: {
|
|
10741
|
+
type: String,
|
|
10742
|
+
default: null
|
|
10743
|
+
},
|
|
10756
10744
|
showAnimation: {
|
|
10757
10745
|
type: Boolean,
|
|
10758
10746
|
default: true
|
|
@@ -10776,6 +10764,14 @@ const tooltipProps = {
|
|
|
10776
10764
|
hideAfter: {
|
|
10777
10765
|
type: Number,
|
|
10778
10766
|
default: 0
|
|
10767
|
+
},
|
|
10768
|
+
overlayClass: {
|
|
10769
|
+
type: String,
|
|
10770
|
+
default: ""
|
|
10771
|
+
},
|
|
10772
|
+
teleport: {
|
|
10773
|
+
type: [String, Object],
|
|
10774
|
+
default: "body"
|
|
10779
10775
|
}
|
|
10780
10776
|
};
|
|
10781
10777
|
const transformOriginMap = {
|
|
@@ -10855,7 +10851,10 @@ var Tooltip = defineComponent({
|
|
|
10855
10851
|
}) {
|
|
10856
10852
|
const {
|
|
10857
10853
|
showAnimation,
|
|
10858
|
-
content
|
|
10854
|
+
content,
|
|
10855
|
+
align,
|
|
10856
|
+
overlayClass,
|
|
10857
|
+
teleport
|
|
10859
10858
|
} = toRefs(props);
|
|
10860
10859
|
const origin = ref();
|
|
10861
10860
|
const tooltipRef = ref();
|
|
@@ -10872,7 +10871,8 @@ var Tooltip = defineComponent({
|
|
|
10872
10871
|
const className = computed(() => ({
|
|
10873
10872
|
[ns2.b()]: true,
|
|
10874
10873
|
[ns2.m(placement.value)]: true,
|
|
10875
|
-
[ns2.m("with-content")]: slots.content
|
|
10874
|
+
[ns2.m("with-content")]: slots.content,
|
|
10875
|
+
[overlayClass.value]: true
|
|
10876
10876
|
}));
|
|
10877
10877
|
provide(POPPER_TRIGGER_TOKEN, origin);
|
|
10878
10878
|
return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
|
|
@@ -10881,7 +10881,7 @@ var Tooltip = defineComponent({
|
|
|
10881
10881
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
|
|
10882
10882
|
}
|
|
10883
10883
|
}), createVNode(Teleport, {
|
|
10884
|
-
"to":
|
|
10884
|
+
"to": teleport.value
|
|
10885
10885
|
}, {
|
|
10886
10886
|
default: () => [createVNode(Transition, {
|
|
10887
10887
|
"name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
|
|
@@ -10893,6 +10893,7 @@ var Tooltip = defineComponent({
|
|
|
10893
10893
|
"class": className.value,
|
|
10894
10894
|
"origin": origin.value,
|
|
10895
10895
|
"position": positionArr.value,
|
|
10896
|
+
"align": align.value,
|
|
10896
10897
|
"offset": 6,
|
|
10897
10898
|
"show-arrow": true,
|
|
10898
10899
|
"style": overlayStyles.value,
|