vant 4.8.6 → 4.8.8
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/README.md +1 -1
- package/es/action-bar/index.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +3 -3
- package/es/action-bar-icon/index.d.ts +3 -3
- package/es/action-sheet/ActionSheet.d.ts +3 -3
- package/es/action-sheet/index.d.ts +3 -3
- package/es/address-edit/index.d.ts +5 -5
- package/es/address-list/AddressList.mjs +3 -1
- package/es/address-list/AddressListItem.mjs +3 -3
- package/es/address-list/index.d.ts +1 -1
- package/es/area/Area.d.ts +3 -3
- package/es/area/index.d.ts +2 -2
- package/es/back-top/index.d.ts +1 -1
- package/es/badge/index.d.ts +3 -3
- package/es/barrage/Barrage.d.ts +1 -1
- package/es/barrage/index.d.ts +2 -2
- package/es/button/index.d.ts +3 -3
- package/es/calendar/index.d.ts +6 -6
- package/es/calendar/utils.d.ts +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/index.d.ts +8 -8
- package/es/circle/index.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/index.d.ts +4 -4
- package/es/collapse-item/index.d.ts +5 -5
- package/es/config-provider/index.d.ts +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-edit/index.d.ts +3 -3
- package/es/contact-list/index.d.ts +1 -1
- package/es/count-down/index.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +4 -4
- package/es/coupon-list/index.d.ts +7 -7
- package/es/date-picker/DatePicker.d.ts +10 -10
- package/es/date-picker/index.d.ts +8 -8
- package/es/dialog/Dialog.d.ts +3 -3
- package/es/dialog/index.d.ts +3 -3
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +2 -2
- package/es/empty/index.d.ts +3 -3
- package/es/field/index.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.mjs +3 -1
- package/es/floating-bubble/index.d.ts +1 -1
- package/es/floating-panel/FloatingPanel.d.ts +1 -1
- package/es/floating-panel/index.d.ts +2 -2
- package/es/form/index.d.ts +10 -10
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/index.d.ts +3 -3
- package/es/highlight/index.d.ts +1 -1
- package/es/icon/index.d.ts +3 -3
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.mjs +3 -1
- package/es/image-preview/index.d.ts +8 -8
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/index.d.ts +4 -4
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +3 -3
- package/es/notify/index.d.ts +3 -3
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/index.d.ts +2 -2
- package/es/password-input/index.d.ts +1 -1
- package/es/picker/index.d.ts +4 -4
- package/es/picker/utils.d.ts +1 -1
- package/es/picker-group/PickerGroup.mjs +11 -3
- package/es/picker-group/index.d.ts +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +3 -3
- package/es/popup/index.d.ts +3 -3
- package/es/progress/index.d.ts +3 -3
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio/index.d.ts +3 -3
- package/es/radio-group/index.d.ts +5 -5
- package/es/rate/index.d.ts +1 -1
- package/es/rolling-text/index.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +17 -17
- package/es/search/index.d.ts +13 -13
- package/es/share-sheet/ShareSheet.d.ts +3 -3
- package/es/share-sheet/index.d.ts +3 -3
- package/es/sidebar/index.d.ts +1 -1
- package/es/sidebar-item/index.d.ts +3 -3
- package/es/signature/index.d.ts +1 -1
- package/es/skeleton/index.d.ts +9 -9
- package/es/skeleton-avatar/index.d.ts +1 -1
- package/es/skeleton-image/index.d.ts +1 -1
- package/es/skeleton-paragraph/index.d.ts +1 -1
- package/es/skeleton-title/index.d.ts +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/index.d.ts +3 -3
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/submit-bar/index.d.ts +6 -6
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/index.d.ts +2 -2
- package/es/swipe-cell/index.d.ts +3 -3
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabbar/index.d.ts +3 -3
- package/es/tabbar-item/index.d.ts +3 -3
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/index.d.ts +4 -4
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.mjs +30 -21
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +13 -13
- package/es/time-picker/index.d.ts +10 -10
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/index.d.ts +4 -4
- package/es/tree-select/index.d.ts +4 -4
- package/es/uploader/index.d.ts +7 -7
- package/es/uploader/utils.d.ts +1 -1
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/basic.mjs +2 -0
- package/es/watermark/index.d.ts +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +3 -3
- package/lib/action-bar-icon/index.d.ts +3 -3
- package/lib/action-sheet/ActionSheet.d.ts +3 -3
- package/lib/action-sheet/index.d.ts +3 -3
- package/lib/address-edit/index.d.ts +5 -5
- package/lib/address-list/AddressList.js +3 -1
- package/lib/address-list/AddressListItem.js +3 -3
- package/lib/address-list/index.d.ts +1 -1
- package/lib/area/Area.d.ts +3 -3
- package/lib/area/index.d.ts +2 -2
- package/lib/back-top/index.d.ts +1 -1
- package/lib/badge/index.d.ts +3 -3
- package/lib/barrage/Barrage.d.ts +1 -1
- package/lib/barrage/index.d.ts +2 -2
- package/lib/button/index.d.ts +3 -3
- package/lib/calendar/index.d.ts +6 -6
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/index.d.ts +8 -8
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/collapse/index.d.ts +4 -4
- package/lib/collapse-item/index.d.ts +5 -5
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-edit/index.d.ts +3 -3
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/count-down/index.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +4 -4
- package/lib/coupon-list/index.d.ts +7 -7
- package/lib/date-picker/DatePicker.d.ts +10 -10
- package/lib/date-picker/index.d.ts +8 -8
- package/lib/dialog/Dialog.d.ts +3 -3
- package/lib/dialog/index.d.ts +3 -3
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +2 -2
- package/lib/empty/index.d.ts +3 -3
- package/lib/field/index.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.js +3 -1
- package/lib/floating-bubble/index.d.ts +1 -1
- package/lib/floating-panel/FloatingPanel.d.ts +1 -1
- package/lib/floating-panel/index.d.ts +2 -2
- package/lib/form/index.d.ts +10 -10
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/index.d.ts +3 -3
- package/lib/highlight/index.d.ts +1 -1
- package/lib/icon/index.d.ts +3 -3
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreviewItem.js +3 -1
- package/lib/image-preview/index.d.ts +8 -8
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/index.d.ts +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +3 -3
- package/lib/notify/index.d.ts +3 -3
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/index.d.ts +2 -2
- package/lib/password-input/index.d.ts +1 -1
- package/lib/picker/index.d.ts +4 -4
- package/lib/picker/utils.d.ts +1 -1
- package/lib/picker-group/PickerGroup.js +9 -1
- package/lib/picker-group/index.d.ts +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/popup/index.d.ts +3 -3
- package/lib/progress/index.d.ts +3 -3
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio-group/index.d.ts +5 -5
- package/lib/rate/index.d.ts +1 -1
- package/lib/rolling-text/index.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +17 -17
- package/lib/search/index.d.ts +13 -13
- package/lib/share-sheet/ShareSheet.d.ts +3 -3
- package/lib/share-sheet/index.d.ts +3 -3
- package/lib/sidebar/index.d.ts +1 -1
- package/lib/sidebar-item/index.d.ts +3 -3
- package/lib/signature/index.d.ts +1 -1
- package/lib/skeleton/index.d.ts +9 -9
- package/lib/skeleton-avatar/index.d.ts +1 -1
- package/lib/skeleton-image/index.d.ts +1 -1
- package/lib/skeleton-paragraph/index.d.ts +1 -1
- package/lib/skeleton-title/index.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/index.d.ts +3 -3
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/submit-bar/index.d.ts +6 -6
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/index.d.ts +2 -2
- package/lib/swipe-cell/index.d.ts +3 -3
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tabbar/index.d.ts +3 -3
- package/lib/tabbar-item/index.d.ts +3 -3
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.js +29 -20
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/time-picker/TimePicker.d.ts +13 -13
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/index.d.ts +4 -4
- package/lib/tree-select/index.d.ts +4 -4
- package/lib/uploader/index.d.ts +7 -7
- package/lib/uploader/utils.d.ts +1 -1
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +2 -0
- package/lib/vant.cjs.js +52 -28
- package/lib/vant.es.js +52 -28
- package/lib/vant.js +53 -29
- package/lib/vant.min.js +2 -2
- package/lib/watermark/index.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +4 -4
package/lib/tabs/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TabsProps } from './Tabs';
|
2
|
-
export declare const Tabs: import("
|
2
|
+
export declare const Tabs: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
3
|
type: {
|
4
4
|
type: import("vue").PropType<import("./types").TabsType>;
|
5
5
|
default: import("./types").TabsType;
|
@@ -38,7 +38,7 @@ export declare const Tabs: import("packages/vant/lib/utils/with-install").WithIn
|
|
38
38
|
};
|
39
39
|
lineWidth: (NumberConstructor | StringConstructor)[];
|
40
40
|
lineHeight: (NumberConstructor | StringConstructor)[];
|
41
|
-
beforeChange: import("vue").PropType<import("
|
41
|
+
beforeChange: import("vue").PropType<import("../utils").Interceptor>;
|
42
42
|
swipeThreshold: {
|
43
43
|
type: (NumberConstructor | StringConstructor)[];
|
44
44
|
default: number;
|
@@ -84,7 +84,7 @@ export declare const Tabs: import("packages/vant/lib/utils/with-install").WithIn
|
|
84
84
|
};
|
85
85
|
lineWidth: (NumberConstructor | StringConstructor)[];
|
86
86
|
lineHeight: (NumberConstructor | StringConstructor)[];
|
87
|
-
beforeChange: import("vue").PropType<import("
|
87
|
+
beforeChange: import("vue").PropType<import("../utils").Interceptor>;
|
88
88
|
swipeThreshold: {
|
89
89
|
type: (NumberConstructor | StringConstructor)[];
|
90
90
|
default: number;
|
@@ -99,11 +99,11 @@ export declare const Tabs: import("packages/vant/lib/utils/with-install").WithIn
|
|
99
99
|
"onUpdate:active"?: ((...args: any[]) => any) | undefined;
|
100
100
|
}, {
|
101
101
|
type: import("./types").TabsType;
|
102
|
-
duration: string | number;
|
103
102
|
ellipsis: boolean;
|
104
103
|
sticky: boolean;
|
105
104
|
border: boolean;
|
106
105
|
active: string | number;
|
106
|
+
duration: string | number;
|
107
107
|
lazyRender: boolean;
|
108
108
|
offsetTop: string | number;
|
109
109
|
animated: boolean;
|
package/lib/tag/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Tag: import("
|
1
|
+
export declare const Tag: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
size: import("vue").PropType<import("./types").TagSize>;
|
3
3
|
mark: BooleanConstructor;
|
4
4
|
show: {
|
@@ -46,6 +46,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
46
46
|
const expanded = (0, import_vue2.ref)(false);
|
47
47
|
const hasAction = (0, import_vue2.ref)(false);
|
48
48
|
const root = (0, import_vue2.ref)();
|
49
|
+
let needRecalculate = false;
|
49
50
|
const actionText = (0, import_vue2.computed)(() => expanded.value ? props.collapseText : props.expandText);
|
50
51
|
const pxToNum = (value) => {
|
51
52
|
if (!value)
|
@@ -53,26 +54,26 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
53
54
|
const match = value.match(/^\d*(\.\d*)?/);
|
54
55
|
return match ? Number(match[0]) : 0;
|
55
56
|
};
|
57
|
+
const cloneContainer = () => {
|
58
|
+
if (!root.value || !root.value.isConnected)
|
59
|
+
return;
|
60
|
+
const originStyle = window.getComputedStyle(root.value);
|
61
|
+
const container = document.createElement("div");
|
62
|
+
const styleNames = Array.prototype.slice.apply(originStyle);
|
63
|
+
styleNames.forEach((name2) => {
|
64
|
+
container.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
65
|
+
});
|
66
|
+
container.style.position = "fixed";
|
67
|
+
container.style.zIndex = "-9999";
|
68
|
+
container.style.top = "-9999px";
|
69
|
+
container.style.height = "auto";
|
70
|
+
container.style.minHeight = "auto";
|
71
|
+
container.style.maxHeight = "auto";
|
72
|
+
container.innerText = props.content;
|
73
|
+
document.body.appendChild(container);
|
74
|
+
return container;
|
75
|
+
};
|
56
76
|
const calcEllipsised = () => {
|
57
|
-
const cloneContainer = () => {
|
58
|
-
if (!root.value)
|
59
|
-
return;
|
60
|
-
const originStyle = window.getComputedStyle(root.value);
|
61
|
-
const container2 = document.createElement("div");
|
62
|
-
const styleNames = Array.prototype.slice.apply(originStyle);
|
63
|
-
styleNames.forEach((name2) => {
|
64
|
-
container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
65
|
-
});
|
66
|
-
container2.style.position = "fixed";
|
67
|
-
container2.style.zIndex = "-9999";
|
68
|
-
container2.style.top = "-9999px";
|
69
|
-
container2.style.height = "auto";
|
70
|
-
container2.style.minHeight = "auto";
|
71
|
-
container2.style.maxHeight = "auto";
|
72
|
-
container2.innerText = props.content;
|
73
|
-
document.body.appendChild(container2);
|
74
|
-
return container2;
|
75
|
-
};
|
76
77
|
const calcEllipsisText = (container2, maxHeight2) => {
|
77
78
|
const {
|
78
79
|
content,
|
@@ -124,8 +125,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
124
125
|
return container2.innerText;
|
125
126
|
};
|
126
127
|
const container = cloneContainer();
|
127
|
-
if (!container)
|
128
|
+
if (!container) {
|
129
|
+
needRecalculate = true;
|
128
130
|
return;
|
131
|
+
}
|
129
132
|
const {
|
130
133
|
paddingBottom,
|
131
134
|
paddingTop,
|
@@ -158,6 +161,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
158
161
|
}, [action]);
|
159
162
|
};
|
160
163
|
(0, import_vue2.onMounted)(calcEllipsised);
|
164
|
+
(0, import_vue2.onActivated)(() => {
|
165
|
+
if (needRecalculate) {
|
166
|
+
needRecalculate = false;
|
167
|
+
calcEllipsised();
|
168
|
+
}
|
169
|
+
});
|
161
170
|
(0, import_vue2.watch)([import_utils.windowWidth, () => [props.content, props.rows, props.position]], calcEllipsised);
|
162
171
|
(0, import_use_expose.useExpose)({
|
163
172
|
toggle
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const TextEllipsis: import("
|
1
|
+
export declare const TextEllipsis: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
rows: {
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
4
4
|
default: number;
|
@@ -29,10 +29,10 @@ export declare const timePickerProps: {
|
|
29
29
|
type: PropType<string[]>;
|
30
30
|
default: () => never[];
|
31
31
|
};
|
32
|
-
filter: PropType<(columnType: string, options: import("
|
32
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[] | undefined) => import("../picker").PickerOption[]>;
|
33
33
|
formatter: {
|
34
|
-
type: PropType<(type: string, option: import("
|
35
|
-
default: (type: string, option: import("
|
34
|
+
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
35
|
+
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
36
36
|
};
|
37
37
|
} & {
|
38
38
|
minHour: {
|
@@ -71,7 +71,7 @@ export declare const timePickerProps: {
|
|
71
71
|
type: PropType<TimePickerColumnType[]>;
|
72
72
|
default: () => string[];
|
73
73
|
};
|
74
|
-
filter: PropType<(columnType: string, options: import("
|
74
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
75
75
|
};
|
76
76
|
export type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
|
77
77
|
declare const _default: import("vue").DefineComponent<{
|
@@ -103,10 +103,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
103
103
|
type: PropType<string[]>;
|
104
104
|
default: () => never[];
|
105
105
|
};
|
106
|
-
filter: PropType<(columnType: string, options: import("
|
106
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[] | undefined) => import("../picker").PickerOption[]>;
|
107
107
|
formatter: {
|
108
|
-
type: PropType<(type: string, option: import("
|
109
|
-
default: (type: string, option: import("
|
108
|
+
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
109
|
+
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
110
110
|
};
|
111
111
|
} & {
|
112
112
|
minHour: {
|
@@ -145,7 +145,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
145
145
|
type: PropType<TimePickerColumnType[]>;
|
146
146
|
default: () => string[];
|
147
147
|
};
|
148
|
-
filter: PropType<(columnType: string, options: import("
|
148
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
149
149
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
150
150
|
loading: BooleanConstructor;
|
151
151
|
readonly: BooleanConstructor;
|
@@ -175,10 +175,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
175
|
type: PropType<string[]>;
|
176
176
|
default: () => never[];
|
177
177
|
};
|
178
|
-
filter: PropType<(columnType: string, options: import("
|
178
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[] | undefined) => import("../picker").PickerOption[]>;
|
179
179
|
formatter: {
|
180
|
-
type: PropType<(type: string, option: import("
|
181
|
-
default: (type: string, option: import("
|
180
|
+
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
181
|
+
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
182
182
|
};
|
183
183
|
} & {
|
184
184
|
minHour: {
|
@@ -217,14 +217,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
217
217
|
type: PropType<TimePickerColumnType[]>;
|
218
218
|
default: () => string[];
|
219
219
|
};
|
220
|
-
filter: PropType<(columnType: string, options: import("
|
220
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
221
221
|
}>> & {
|
222
222
|
onChange?: ((...args: any[]) => any) | undefined;
|
223
223
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
224
224
|
onCancel?: ((...args: any[]) => any) | undefined;
|
225
225
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
226
226
|
}, {
|
227
|
-
formatter: (type: string, option: import("
|
227
|
+
formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
228
228
|
modelValue: string[];
|
229
229
|
readonly: boolean;
|
230
230
|
loading: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TimePickerProps } from './TimePicker';
|
2
|
-
export declare const TimePicker: import("
|
2
|
+
export declare const TimePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
3
|
loading: BooleanConstructor;
|
4
4
|
readonly: BooleanConstructor;
|
5
5
|
allowHtml: BooleanConstructor;
|
@@ -28,10 +28,10 @@ export declare const TimePicker: import("packages/vant/lib/utils/with-install").
|
|
28
28
|
type: import("vue").PropType<string[]>;
|
29
29
|
default: () => never[];
|
30
30
|
};
|
31
|
-
filter: import("vue").PropType<(columnType: string, options: import("
|
31
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[] | undefined) => import("..").PickerOption[]>;
|
32
32
|
formatter: {
|
33
|
-
type: import("vue").PropType<(type: string, option: import("
|
34
|
-
default: (type: string, option: import("
|
33
|
+
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
34
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
35
35
|
};
|
36
36
|
} & {
|
37
37
|
minHour: {
|
@@ -70,7 +70,7 @@ export declare const TimePicker: import("packages/vant/lib/utils/with-install").
|
|
70
70
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
71
71
|
default: () => string[];
|
72
72
|
};
|
73
|
-
filter: import("vue").PropType<(columnType: string, options: import("
|
73
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
74
74
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
75
75
|
loading: BooleanConstructor;
|
76
76
|
readonly: BooleanConstructor;
|
@@ -100,10 +100,10 @@ export declare const TimePicker: import("packages/vant/lib/utils/with-install").
|
|
100
100
|
type: import("vue").PropType<string[]>;
|
101
101
|
default: () => never[];
|
102
102
|
};
|
103
|
-
filter: import("vue").PropType<(columnType: string, options: import("
|
103
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[] | undefined) => import("..").PickerOption[]>;
|
104
104
|
formatter: {
|
105
|
-
type: import("vue").PropType<(type: string, option: import("
|
106
|
-
default: (type: string, option: import("
|
105
|
+
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
106
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
107
107
|
};
|
108
108
|
} & {
|
109
109
|
minHour: {
|
@@ -142,14 +142,14 @@ export declare const TimePicker: import("packages/vant/lib/utils/with-install").
|
|
142
142
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
143
143
|
default: () => string[];
|
144
144
|
};
|
145
|
-
filter: import("vue").PropType<(columnType: string, options: import("
|
145
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
146
146
|
}>> & {
|
147
147
|
onChange?: ((...args: any[]) => any) | undefined;
|
148
148
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
149
149
|
onCancel?: ((...args: any[]) => any) | undefined;
|
150
150
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
151
151
|
}, {
|
152
|
-
formatter: (type: string, option: import("
|
152
|
+
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
153
153
|
modelValue: string[];
|
154
154
|
readonly: boolean;
|
155
155
|
loading: boolean;
|
package/lib/toast/Toast.d.ts
CHANGED
@@ -107,9 +107,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
107
|
}, {
|
108
108
|
type: ToastType;
|
109
109
|
position: ToastPosition;
|
110
|
-
duration: number;
|
111
110
|
overlay: boolean;
|
112
111
|
show: boolean;
|
112
|
+
duration: number;
|
113
113
|
closeOnClickOverlay: boolean;
|
114
114
|
transition: string;
|
115
115
|
forbidClick: boolean;
|
package/lib/toast/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Toast: import("
|
1
|
+
export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
icon: StringConstructor;
|
3
3
|
show: BooleanConstructor;
|
4
4
|
type: {
|
@@ -24,7 +24,7 @@ export declare const Toast: import("packages/vant/lib/utils/with-install").WithI
|
|
24
24
|
type: import("vue").PropType<string>;
|
25
25
|
default: string;
|
26
26
|
};
|
27
|
-
loadingType: import("vue").PropType<import("
|
27
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
28
28
|
forbidClick: BooleanConstructor;
|
29
29
|
overlayClass: import("vue").PropType<unknown>;
|
30
30
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
@@ -57,7 +57,7 @@ export declare const Toast: import("packages/vant/lib/utils/with-install").WithI
|
|
57
57
|
type: import("vue").PropType<string>;
|
58
58
|
default: string;
|
59
59
|
};
|
60
|
-
loadingType: import("vue").PropType<import("
|
60
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
61
61
|
forbidClick: BooleanConstructor;
|
62
62
|
overlayClass: import("vue").PropType<unknown>;
|
63
63
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
@@ -69,9 +69,9 @@ export declare const Toast: import("packages/vant/lib/utils/with-install").WithI
|
|
69
69
|
}, {
|
70
70
|
type: import("./types").ToastType;
|
71
71
|
position: import("./types").ToastPosition;
|
72
|
-
duration: number;
|
73
72
|
overlay: boolean;
|
74
73
|
show: boolean;
|
74
|
+
duration: number;
|
75
75
|
closeOnClickOverlay: boolean;
|
76
76
|
transition: string;
|
77
77
|
forbidClick: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const TreeSelect: import("
|
1
|
+
export declare const TreeSelect: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
max: {
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
4
4
|
default: number;
|
@@ -20,7 +20,7 @@ export declare const TreeSelect: import("packages/vant/lib/utils/with-install").
|
|
20
20
|
default: number;
|
21
21
|
};
|
22
22
|
activeId: {
|
23
|
-
type: import("vue").PropType<import("
|
23
|
+
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
24
24
|
default: number;
|
25
25
|
};
|
26
26
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -45,7 +45,7 @@ export declare const TreeSelect: import("packages/vant/lib/utils/with-install").
|
|
45
45
|
default: number;
|
46
46
|
};
|
47
47
|
activeId: {
|
48
|
-
type: import("vue").PropType<import("
|
48
|
+
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
49
49
|
default: number;
|
50
50
|
};
|
51
51
|
}>> & {
|
@@ -59,7 +59,7 @@ export declare const TreeSelect: import("packages/vant/lib/utils/with-install").
|
|
59
59
|
items: import("./TreeSelect").TreeSelectItem[];
|
60
60
|
selectedIcon: string;
|
61
61
|
mainActiveIndex: string | number;
|
62
|
-
activeId: import("
|
62
|
+
activeId: import("../utils").Numeric | import("../utils").Numeric[];
|
63
63
|
}, {}>>;
|
64
64
|
export default TreeSelect;
|
65
65
|
export { treeSelectProps } from './TreeSelect';
|
package/lib/uploader/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { UploaderProps } from './Uploader';
|
2
|
-
export declare const Uploader: import("
|
2
|
+
export declare const Uploader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
3
|
name: {
|
4
4
|
type: (NumberConstructor | StringConstructor)[];
|
5
5
|
default: string;
|
@@ -45,13 +45,13 @@ export declare const Uploader: import("packages/vant/lib/utils/with-install").Wi
|
|
45
45
|
default: () => never[];
|
46
46
|
};
|
47
47
|
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
48
|
-
beforeDelete: import("vue").PropType<import("
|
49
|
-
previewSize: import("vue").PropType<import("
|
48
|
+
beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
|
49
|
+
previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
50
50
|
previewImage: {
|
51
51
|
type: BooleanConstructor;
|
52
52
|
default: true;
|
53
53
|
};
|
54
|
-
previewOptions: import("vue").PropType<Partial<import("
|
54
|
+
previewOptions: import("vue").PropType<Partial<import("..").ImagePreviewOptions>>;
|
55
55
|
previewFullImage: {
|
56
56
|
type: BooleanConstructor;
|
57
57
|
default: true;
|
@@ -106,13 +106,13 @@ export declare const Uploader: import("packages/vant/lib/utils/with-install").Wi
|
|
106
106
|
default: () => never[];
|
107
107
|
};
|
108
108
|
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
109
|
-
beforeDelete: import("vue").PropType<import("
|
110
|
-
previewSize: import("vue").PropType<import("
|
109
|
+
beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
|
110
|
+
previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
111
111
|
previewImage: {
|
112
112
|
type: BooleanConstructor;
|
113
113
|
default: true;
|
114
114
|
};
|
115
|
-
previewOptions: import("vue").PropType<Partial<import("
|
115
|
+
previewOptions: import("vue").PropType<Partial<import("..").ImagePreviewOptions>>;
|
116
116
|
previewFullImage: {
|
117
117
|
type: BooleanConstructor;
|
118
118
|
default: true;
|
package/lib/uploader/utils.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { UploaderMaxSize, UploaderResultType, UploaderFileListItem } from './types';
|
2
|
-
declare const name: string, bem: (el?: import("
|
2
|
+
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
3
3
|
export { name, bem, t };
|
4
4
|
export declare function readFileContent(file: File, resultType: UploaderResultType): Promise<string | void>;
|
5
5
|
export declare function isOversize(items: UploaderFileListItem | UploaderFileListItem[], maxSize: UploaderMaxSize): boolean;
|
package/lib/utils/basic.d.ts
CHANGED
@@ -27,3 +27,4 @@ export type RequiredParams<T> = T extends (...args: infer P) => infer R ? (...ar
|
|
27
27
|
export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>, ignoreUndefined?: boolean): Writeable<Pick<T, U>>;
|
28
28
|
export declare const isSameValue: (newValue: unknown, oldValue: unknown) => boolean;
|
29
29
|
export declare const toArray: <T>(item: T | T[]) => T[];
|
30
|
+
export declare const flat: <T>(arr: (T | T[])[]) => T[];
|
package/lib/utils/basic.js
CHANGED
@@ -18,6 +18,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
18
18
|
var stdin_exports = {};
|
19
19
|
__export(stdin_exports, {
|
20
20
|
extend: () => extend,
|
21
|
+
flat: () => flat,
|
21
22
|
get: () => get,
|
22
23
|
inBrowser: () => inBrowser,
|
23
24
|
isDate: () => isDate,
|
@@ -71,3 +72,4 @@ function pick(obj, keys, ignoreUndefined) {
|
|
71
72
|
}
|
72
73
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
73
74
|
const toArray = (item) => Array.isArray(item) ? item : [item];
|
75
|
+
const flat = (arr) => arr.reduce((acc, val) => acc.concat(val), []);
|
package/lib/vant.cjs.js
CHANGED
@@ -41,6 +41,7 @@ function pick(obj, keys, ignoreUndefined) {
|
|
41
41
|
}
|
42
42
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
43
43
|
const toArray = (item) => Array.isArray(item) ? item : [item];
|
44
|
+
const flat = (arr) => arr.reduce((acc, val) => acc.concat(val), []);
|
44
45
|
const unknownProp = null;
|
45
46
|
const numericProp = [Number, String];
|
46
47
|
const truthProp = {
|
@@ -3298,7 +3299,15 @@ var stdin_default$1A = vue.defineComponent({
|
|
3298
3299
|
const onCancel = () => emit("cancel");
|
3299
3300
|
return () => {
|
3300
3301
|
var _a, _b;
|
3301
|
-
|
3302
|
+
let childNodes = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b.filter((node) => node.type !== vue.Comment).map((node) => {
|
3303
|
+
if (node.type === vue.Fragment) {
|
3304
|
+
return node.children;
|
3305
|
+
}
|
3306
|
+
return node;
|
3307
|
+
});
|
3308
|
+
if (childNodes) {
|
3309
|
+
childNodes = flat(childNodes);
|
3310
|
+
}
|
3302
3311
|
const confirmButtonText = showNextButton() ? props2.nextStepText : props2.confirmButtonText;
|
3303
3312
|
return vue.createVNode("div", {
|
3304
3313
|
"class": bem$1l()
|
@@ -5577,11 +5586,11 @@ var stdin_default$1m = vue.defineComponent({
|
|
5577
5586
|
slots,
|
5578
5587
|
emit
|
5579
5588
|
}) {
|
5580
|
-
const onClick = () => {
|
5589
|
+
const onClick = (event) => {
|
5581
5590
|
if (props2.switchable) {
|
5582
5591
|
emit("select");
|
5583
5592
|
}
|
5584
|
-
emit("click");
|
5593
|
+
emit("click", event);
|
5585
5594
|
};
|
5586
5595
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
5587
5596
|
"name": props2.rightIcon,
|
@@ -5589,7 +5598,7 @@ var stdin_default$1m = vue.defineComponent({
|
|
5589
5598
|
"onClick": (event) => {
|
5590
5599
|
event.stopPropagation();
|
5591
5600
|
emit("edit");
|
5592
|
-
emit("click");
|
5601
|
+
emit("click", event);
|
5593
5602
|
}
|
5594
5603
|
}, null);
|
5595
5604
|
const renderTag = () => {
|
@@ -5671,7 +5680,9 @@ var stdin_default$1l = vue.defineComponent({
|
|
5671
5680
|
}) {
|
5672
5681
|
const renderItem = (item, index, disabled) => {
|
5673
5682
|
const onEdit = () => emit(disabled ? "editDisabled" : "edit", item, index);
|
5674
|
-
const onClick = () => emit("clickItem", item, index
|
5683
|
+
const onClick = (event) => emit("clickItem", item, index, {
|
5684
|
+
event
|
5685
|
+
});
|
5675
5686
|
const onSelect = () => {
|
5676
5687
|
emit(disabled ? "selectDisabled" : "select", item, index);
|
5677
5688
|
if (!disabled) {
|
@@ -10034,7 +10045,9 @@ var stdin_default$S = vue.defineComponent({
|
|
10034
10045
|
initialized = true;
|
10035
10046
|
});
|
10036
10047
|
});
|
10037
|
-
vue.watch([windowWidth, windowHeight, () => props2.gap, () => props2.offset], updateState
|
10048
|
+
vue.watch([windowWidth, windowHeight, () => props2.gap, () => props2.offset], updateState, {
|
10049
|
+
deep: true
|
10050
|
+
});
|
10038
10051
|
const show = vue.ref(true);
|
10039
10052
|
vue.onActivated(() => {
|
10040
10053
|
show.value = true;
|
@@ -10787,7 +10800,9 @@ var stdin_default$N = vue.defineComponent({
|
|
10787
10800
|
default: () => [slots.image ? vue.createVNode("div", {
|
10788
10801
|
"class": bem$E("image-wrap")
|
10789
10802
|
}, [slots.image({
|
10790
|
-
src: props2.src
|
10803
|
+
src: props2.src,
|
10804
|
+
onLoad,
|
10805
|
+
style: imageStyle.value
|
10791
10806
|
})]) : vue.createVNode(Image$1, {
|
10792
10807
|
"ref": imageRef,
|
10793
10808
|
"src": props2.src,
|
@@ -15013,6 +15028,7 @@ var stdin_default$9 = vue.defineComponent({
|
|
15013
15028
|
const expanded = vue.ref(false);
|
15014
15029
|
const hasAction = vue.ref(false);
|
15015
15030
|
const root = vue.ref();
|
15031
|
+
let needRecalculate = false;
|
15016
15032
|
const actionText = vue.computed(() => expanded.value ? props2.collapseText : props2.expandText);
|
15017
15033
|
const pxToNum = (value) => {
|
15018
15034
|
if (!value)
|
@@ -15020,26 +15036,26 @@ var stdin_default$9 = vue.defineComponent({
|
|
15020
15036
|
const match = value.match(/^\d*(\.\d*)?/);
|
15021
15037
|
return match ? Number(match[0]) : 0;
|
15022
15038
|
};
|
15039
|
+
const cloneContainer = () => {
|
15040
|
+
if (!root.value || !root.value.isConnected)
|
15041
|
+
return;
|
15042
|
+
const originStyle = window.getComputedStyle(root.value);
|
15043
|
+
const container = document.createElement("div");
|
15044
|
+
const styleNames = Array.prototype.slice.apply(originStyle);
|
15045
|
+
styleNames.forEach((name2) => {
|
15046
|
+
container.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
15047
|
+
});
|
15048
|
+
container.style.position = "fixed";
|
15049
|
+
container.style.zIndex = "-9999";
|
15050
|
+
container.style.top = "-9999px";
|
15051
|
+
container.style.height = "auto";
|
15052
|
+
container.style.minHeight = "auto";
|
15053
|
+
container.style.maxHeight = "auto";
|
15054
|
+
container.innerText = props2.content;
|
15055
|
+
document.body.appendChild(container);
|
15056
|
+
return container;
|
15057
|
+
};
|
15023
15058
|
const calcEllipsised = () => {
|
15024
|
-
const cloneContainer = () => {
|
15025
|
-
if (!root.value)
|
15026
|
-
return;
|
15027
|
-
const originStyle = window.getComputedStyle(root.value);
|
15028
|
-
const container2 = document.createElement("div");
|
15029
|
-
const styleNames = Array.prototype.slice.apply(originStyle);
|
15030
|
-
styleNames.forEach((name2) => {
|
15031
|
-
container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
15032
|
-
});
|
15033
|
-
container2.style.position = "fixed";
|
15034
|
-
container2.style.zIndex = "-9999";
|
15035
|
-
container2.style.top = "-9999px";
|
15036
|
-
container2.style.height = "auto";
|
15037
|
-
container2.style.minHeight = "auto";
|
15038
|
-
container2.style.maxHeight = "auto";
|
15039
|
-
container2.innerText = props2.content;
|
15040
|
-
document.body.appendChild(container2);
|
15041
|
-
return container2;
|
15042
|
-
};
|
15043
15059
|
const calcEllipsisText = (container2, maxHeight2) => {
|
15044
15060
|
const {
|
15045
15061
|
content,
|
@@ -15091,8 +15107,10 @@ var stdin_default$9 = vue.defineComponent({
|
|
15091
15107
|
return container2.innerText;
|
15092
15108
|
};
|
15093
15109
|
const container = cloneContainer();
|
15094
|
-
if (!container)
|
15110
|
+
if (!container) {
|
15111
|
+
needRecalculate = true;
|
15095
15112
|
return;
|
15113
|
+
}
|
15096
15114
|
const {
|
15097
15115
|
paddingBottom,
|
15098
15116
|
paddingTop,
|
@@ -15125,6 +15143,12 @@ var stdin_default$9 = vue.defineComponent({
|
|
15125
15143
|
}, [action]);
|
15126
15144
|
};
|
15127
15145
|
vue.onMounted(calcEllipsised);
|
15146
|
+
vue.onActivated(() => {
|
15147
|
+
if (needRecalculate) {
|
15148
|
+
needRecalculate = false;
|
15149
|
+
calcEllipsised();
|
15150
|
+
}
|
15151
|
+
});
|
15128
15152
|
vue.watch([windowWidth, () => [props2.content, props2.rows, props2.position]], calcEllipsised);
|
15129
15153
|
useExpose({
|
15130
15154
|
toggle
|
@@ -16795,7 +16819,7 @@ const Lazyload = {
|
|
16795
16819
|
});
|
16796
16820
|
}
|
16797
16821
|
};
|
16798
|
-
const version = "4.8.
|
16822
|
+
const version = "4.8.8";
|
16799
16823
|
function install(app) {
|
16800
16824
|
const components = [
|
16801
16825
|
ActionBar,
|