vant 4.8.5 → 4.8.6
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/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 +4 -3
- package/es/action-sheet/ActionSheet.mjs +9 -1
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +3 -3
- package/es/address-edit/index.d.ts +5 -5
- 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/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/ImagePreview.d.ts +4 -0
- package/es/image-preview/ImagePreview.mjs +3 -0
- package/es/image-preview/ImagePreviewItem.d.ts +4 -0
- package/es/image-preview/ImagePreviewItem.mjs +3 -2
- package/es/image-preview/function-call.mjs +1 -0
- package/es/image-preview/index.d.ts +11 -8
- package/es/image-preview/types.d.ts +1 -0
- 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/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/Signature.mjs +3 -1
- package/es/signature/index.d.ts +1 -1
- package/es/signature/types.d.ts +2 -0
- 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/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/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 +4 -3
- package/lib/action-sheet/ActionSheet.js +9 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +3 -3
- package/lib/address-edit/index.d.ts +5 -5
- 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/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/ImagePreview.d.ts +4 -0
- package/lib/image-preview/ImagePreview.js +3 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +4 -0
- package/lib/image-preview/ImagePreviewItem.js +3 -2
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +11 -8
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/index.d.ts +4 -4
- package/lib/index.css +1 -1
- 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/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/Signature.js +3 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/signature/types.d.ts +2 -0
- 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/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/vant.cjs.js +20 -5
- package/lib/vant.es.js +20 -5
- package/lib/vant.js +20 -5
- 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 +1 -1
package/lib/field/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { FieldProps } from './Field';
|
2
|
-
export declare const Field: import("
|
2
|
+
export declare const Field: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
3
3
|
tag: {
|
4
4
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
5
5
|
default: keyof HTMLElementTagNameMap;
|
6
6
|
};
|
7
7
|
icon: StringConstructor;
|
8
|
-
size: import("vue").PropType<import("
|
8
|
+
size: import("vue").PropType<import("packages/vant/lib").CellSize>;
|
9
9
|
title: (NumberConstructor | StringConstructor)[];
|
10
10
|
value: (NumberConstructor | StringConstructor)[];
|
11
11
|
label: (NumberConstructor | StringConstructor)[];
|
@@ -20,7 +20,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
20
20
|
labelClass: import("vue").PropType<unknown>;
|
21
21
|
titleClass: import("vue").PropType<unknown>;
|
22
22
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
23
|
-
arrowDirection: import("vue").PropType<import("
|
23
|
+
arrowDirection: import("vue").PropType<import("packages/vant/lib").CellArrowDirection>;
|
24
24
|
required: {
|
25
25
|
type: import("vue").PropType<boolean | "auto">;
|
26
26
|
default: null;
|
@@ -100,7 +100,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
100
100
|
default: keyof HTMLElementTagNameMap;
|
101
101
|
};
|
102
102
|
icon: StringConstructor;
|
103
|
-
size: import("vue").PropType<import("
|
103
|
+
size: import("vue").PropType<import("packages/vant/lib").CellSize>;
|
104
104
|
title: (NumberConstructor | StringConstructor)[];
|
105
105
|
value: (NumberConstructor | StringConstructor)[];
|
106
106
|
label: (NumberConstructor | StringConstructor)[];
|
@@ -115,7 +115,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
115
115
|
labelClass: import("vue").PropType<unknown>;
|
116
116
|
titleClass: import("vue").PropType<unknown>;
|
117
117
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
118
|
-
arrowDirection: import("vue").PropType<import("
|
118
|
+
arrowDirection: import("vue").PropType<import("packages/vant/lib").CellArrowDirection>;
|
119
119
|
required: {
|
120
120
|
type: import("vue").PropType<boolean | "auto">;
|
121
121
|
default: null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const FloatingBubble: import("
|
1
|
+
export declare const FloatingBubble: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
gap: {
|
3
3
|
type: NumberConstructor;
|
4
4
|
default: number;
|
@@ -72,8 +72,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
72
72
|
"onUpdate:height"?: ((...args: any[]) => any) | undefined;
|
73
73
|
}, {
|
74
74
|
height: string | number;
|
75
|
-
safeAreaInsetBottom: boolean;
|
76
75
|
duration: string | number;
|
76
|
+
safeAreaInsetBottom: boolean;
|
77
77
|
lockScroll: boolean;
|
78
78
|
anchors: number[];
|
79
79
|
contentDraggable: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const FloatingPanel: import("
|
1
|
+
export declare const FloatingPanel: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
height: {
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
4
4
|
default: number;
|
@@ -47,8 +47,8 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
47
47
|
"onUpdate:height"?: ((...args: any[]) => any) | undefined;
|
48
48
|
}, {
|
49
49
|
height: string | number;
|
50
|
-
safeAreaInsetBottom: boolean;
|
51
50
|
duration: string | number;
|
51
|
+
safeAreaInsetBottom: boolean;
|
52
52
|
lockScroll: boolean;
|
53
53
|
anchors: number[];
|
54
54
|
contentDraggable: boolean;
|
package/lib/form/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { FormProps } from './Form';
|
2
|
-
export declare const Form: import("
|
2
|
+
export declare const Form: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
3
3
|
colon: BooleanConstructor;
|
4
4
|
disabled: BooleanConstructor;
|
5
5
|
readonly: BooleanConstructor;
|
6
6
|
required: import("vue").PropType<boolean | "auto">;
|
7
7
|
showError: BooleanConstructor;
|
8
8
|
labelWidth: (NumberConstructor | StringConstructor)[];
|
9
|
-
labelAlign: import("vue").PropType<import("
|
10
|
-
inputAlign: import("vue").PropType<import("
|
9
|
+
labelAlign: import("vue").PropType<import("packages/vant/lib").FieldTextAlign>;
|
10
|
+
inputAlign: import("vue").PropType<import("packages/vant/lib").FieldTextAlign>;
|
11
11
|
scrollToError: BooleanConstructor;
|
12
12
|
validateFirst: BooleanConstructor;
|
13
13
|
submitOnEnter: {
|
@@ -18,9 +18,9 @@ export declare const Form: import("../utils").WithInstall<import("vue").DefineCo
|
|
18
18
|
type: BooleanConstructor;
|
19
19
|
default: true;
|
20
20
|
};
|
21
|
-
errorMessageAlign: import("vue").PropType<import("
|
21
|
+
errorMessageAlign: import("vue").PropType<import("packages/vant/lib").FieldTextAlign>;
|
22
22
|
validateTrigger: {
|
23
|
-
type: import("vue").PropType<import("
|
23
|
+
type: import("vue").PropType<import("packages/vant/lib").FieldValidateTrigger | import("packages/vant/lib").FieldValidateTrigger[]>;
|
24
24
|
default: string;
|
25
25
|
};
|
26
26
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "failed")[], "submit" | "failed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -30,8 +30,8 @@ export declare const Form: import("../utils").WithInstall<import("vue").DefineCo
|
|
30
30
|
required: import("vue").PropType<boolean | "auto">;
|
31
31
|
showError: BooleanConstructor;
|
32
32
|
labelWidth: (NumberConstructor | StringConstructor)[];
|
33
|
-
labelAlign: import("vue").PropType<import("
|
34
|
-
inputAlign: import("vue").PropType<import("
|
33
|
+
labelAlign: import("vue").PropType<import("packages/vant/lib").FieldTextAlign>;
|
34
|
+
inputAlign: import("vue").PropType<import("packages/vant/lib").FieldTextAlign>;
|
35
35
|
scrollToError: BooleanConstructor;
|
36
36
|
validateFirst: BooleanConstructor;
|
37
37
|
submitOnEnter: {
|
@@ -42,9 +42,9 @@ export declare const Form: import("../utils").WithInstall<import("vue").DefineCo
|
|
42
42
|
type: BooleanConstructor;
|
43
43
|
default: true;
|
44
44
|
};
|
45
|
-
errorMessageAlign: import("vue").PropType<import("
|
45
|
+
errorMessageAlign: import("vue").PropType<import("packages/vant/lib").FieldTextAlign>;
|
46
46
|
validateTrigger: {
|
47
|
-
type: import("vue").PropType<import("
|
47
|
+
type: import("vue").PropType<import("packages/vant/lib").FieldValidateTrigger | import("packages/vant/lib").FieldValidateTrigger[]>;
|
48
48
|
default: string;
|
49
49
|
};
|
50
50
|
}>> & {
|
@@ -59,7 +59,7 @@ export declare const Form: import("../utils").WithInstall<import("vue").DefineCo
|
|
59
59
|
validateFirst: boolean;
|
60
60
|
submitOnEnter: boolean;
|
61
61
|
showErrorMessage: boolean;
|
62
|
-
validateTrigger: import("
|
62
|
+
validateTrigger: import("packages/vant/lib").FieldValidateTrigger | import("packages/vant/lib").FieldValidateTrigger[];
|
63
63
|
}, {}>>;
|
64
64
|
export default Form;
|
65
65
|
export { formProps } from './Form';
|
package/lib/grid/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Grid: import("
|
1
|
+
export declare const Grid: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
square: BooleanConstructor;
|
3
3
|
center: {
|
4
4
|
type: BooleanConstructor;
|
package/lib/grid-item/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const GridItem: import("
|
1
|
+
export declare const GridItem: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
@@ -9,7 +9,7 @@ export declare const GridItem: import("../utils").WithInstall<import("vue").Defi
|
|
9
9
|
badge: (NumberConstructor | StringConstructor)[];
|
10
10
|
iconColor: StringConstructor;
|
11
11
|
iconPrefix: StringConstructor;
|
12
|
-
badgeProps: import("vue").PropType<Partial<import("
|
12
|
+
badgeProps: import("vue").PropType<Partial<import("packages/vant/lib").BadgeProps>>;
|
13
13
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
14
14
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
15
15
|
url: StringConstructor;
|
@@ -21,7 +21,7 @@ export declare const GridItem: import("../utils").WithInstall<import("vue").Defi
|
|
21
21
|
badge: (NumberConstructor | StringConstructor)[];
|
22
22
|
iconColor: StringConstructor;
|
23
23
|
iconPrefix: StringConstructor;
|
24
|
-
badgeProps: import("vue").PropType<Partial<import("
|
24
|
+
badgeProps: import("vue").PropType<Partial<import("packages/vant/lib").BadgeProps>>;
|
25
25
|
}>>, {
|
26
26
|
replace: boolean;
|
27
27
|
dot: boolean;
|
package/lib/highlight/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Highlight: import("
|
1
|
+
export declare const Highlight: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
autoEscape: {
|
3
3
|
type: BooleanConstructor;
|
4
4
|
default: true;
|
package/lib/icon/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Icon: import("
|
1
|
+
export declare const Icon: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
dot: BooleanConstructor;
|
3
3
|
tag: {
|
4
4
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
@@ -8,7 +8,7 @@ export declare const Icon: import("../utils").WithInstall<import("vue").DefineCo
|
|
8
8
|
size: (NumberConstructor | StringConstructor)[];
|
9
9
|
badge: (NumberConstructor | StringConstructor)[];
|
10
10
|
color: StringConstructor;
|
11
|
-
badgeProps: import("vue").PropType<Partial<import("
|
11
|
+
badgeProps: import("vue").PropType<Partial<import("packages/vant/lib").BadgeProps>>;
|
12
12
|
classPrefix: StringConstructor;
|
13
13
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
14
14
|
dot: BooleanConstructor;
|
@@ -20,7 +20,7 @@ export declare const Icon: import("../utils").WithInstall<import("vue").DefineCo
|
|
20
20
|
size: (NumberConstructor | StringConstructor)[];
|
21
21
|
badge: (NumberConstructor | StringConstructor)[];
|
22
22
|
color: StringConstructor;
|
23
|
-
badgeProps: import("vue").PropType<Partial<import("
|
23
|
+
badgeProps: import("vue").PropType<Partial<import("packages/vant/lib").BadgeProps>>;
|
24
24
|
classPrefix: StringConstructor;
|
25
25
|
}>>, {
|
26
26
|
dot: boolean;
|
package/lib/image/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Image: import("
|
1
|
+
export declare const Image: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
src: StringConstructor;
|
3
3
|
alt: StringConstructor;
|
4
4
|
fit: import("vue").PropType<import("csstype").Property.ObjectFit | undefined>;
|
@@ -23,6 +23,7 @@ export declare const imagePreviewProps: {
|
|
23
23
|
type: BooleanConstructor;
|
24
24
|
default: true;
|
25
25
|
};
|
26
|
+
vertical: BooleanConstructor;
|
26
27
|
closeable: BooleanConstructor;
|
27
28
|
showIndex: {
|
28
29
|
type: BooleanConstructor;
|
@@ -91,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
92
|
type: BooleanConstructor;
|
92
93
|
default: true;
|
93
94
|
};
|
95
|
+
vertical: BooleanConstructor;
|
94
96
|
closeable: BooleanConstructor;
|
95
97
|
showIndex: {
|
96
98
|
type: BooleanConstructor;
|
@@ -157,6 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
159
|
type: BooleanConstructor;
|
158
160
|
default: true;
|
159
161
|
};
|
162
|
+
vertical: BooleanConstructor;
|
160
163
|
closeable: BooleanConstructor;
|
161
164
|
showIndex: {
|
162
165
|
type: BooleanConstructor;
|
@@ -212,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
212
215
|
loop: boolean;
|
213
216
|
overlay: boolean;
|
214
217
|
show: boolean;
|
218
|
+
vertical: boolean;
|
215
219
|
closeOnClickOverlay: boolean;
|
216
220
|
closeIcon: string;
|
217
221
|
closeable: boolean;
|
@@ -49,6 +49,7 @@ const imagePreviewProps = {
|
|
49
49
|
minZoom: (0, import_utils.makeNumericProp)(1 / 3),
|
50
50
|
maxZoom: (0, import_utils.makeNumericProp)(3),
|
51
51
|
overlay: import_utils.truthProp,
|
52
|
+
vertical: Boolean,
|
52
53
|
closeable: Boolean,
|
53
54
|
showIndex: import_utils.truthProp,
|
54
55
|
className: import_utils.unknownProp,
|
@@ -132,6 +133,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
132
133
|
"lazyRender": true,
|
133
134
|
"loop": props.loop,
|
134
135
|
"class": bem("swipe"),
|
136
|
+
"vertical": props.vertical,
|
135
137
|
"duration": props.swipeDuration,
|
136
138
|
"initialSwipe": props.startPosition,
|
137
139
|
"showIndicators": props.showIndicators,
|
@@ -157,6 +159,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
157
159
|
"doubleScale": props.doubleScale,
|
158
160
|
"closeOnClickImage": props.closeOnClickImage,
|
159
161
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
162
|
+
"vertical": props.vertical,
|
160
163
|
"onScale": emitScale,
|
161
164
|
"onClose": emitClose,
|
162
165
|
"onLongPress": () => emit("longPress", {
|
@@ -23,6 +23,7 @@ declare const imagePreviewItemProps: {
|
|
23
23
|
doubleScale: BooleanConstructor;
|
24
24
|
closeOnClickImage: BooleanConstructor;
|
25
25
|
closeOnClickOverlay: BooleanConstructor;
|
26
|
+
vertical: BooleanConstructor;
|
26
27
|
};
|
27
28
|
export type ImagePreviewItemProps = ExtractPropTypes<typeof imagePreviewItemProps>;
|
28
29
|
declare const _default: import("vue").DefineComponent<{
|
@@ -49,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
50
|
doubleScale: BooleanConstructor;
|
50
51
|
closeOnClickImage: BooleanConstructor;
|
51
52
|
closeOnClickOverlay: BooleanConstructor;
|
53
|
+
vertical: BooleanConstructor;
|
52
54
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale" | "longPress")[], "close" | "scale" | "longPress", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
53
55
|
src: StringConstructor;
|
54
56
|
show: BooleanConstructor;
|
@@ -73,12 +75,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
73
75
|
doubleScale: BooleanConstructor;
|
74
76
|
closeOnClickImage: BooleanConstructor;
|
75
77
|
closeOnClickOverlay: BooleanConstructor;
|
78
|
+
vertical: BooleanConstructor;
|
76
79
|
}>> & {
|
77
80
|
onClose?: ((...args: any[]) => any) | undefined;
|
78
81
|
onScale?: ((...args: any[]) => any) | undefined;
|
79
82
|
onLongPress?: ((...args: any[]) => any) | undefined;
|
80
83
|
}, {
|
81
84
|
show: boolean;
|
85
|
+
vertical: boolean;
|
82
86
|
closeOnClickOverlay: boolean;
|
83
87
|
disableZoom: boolean;
|
84
88
|
doubleScale: boolean;
|
@@ -47,7 +47,8 @@ const imagePreviewItemProps = {
|
|
47
47
|
disableZoom: Boolean,
|
48
48
|
doubleScale: Boolean,
|
49
49
|
closeOnClickImage: Boolean,
|
50
|
-
closeOnClickOverlay: Boolean
|
50
|
+
closeOnClickOverlay: Boolean,
|
51
|
+
vertical: Boolean
|
51
52
|
};
|
52
53
|
var stdin_default = (0, import_vue2.defineComponent)({
|
53
54
|
props: imagePreviewItemProps,
|
@@ -190,7 +191,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
190
191
|
} = touch;
|
191
192
|
const moveX = deltaX.value + startMoveX;
|
192
193
|
const moveY = deltaY.value + startMoveY;
|
193
|
-
if ((
|
194
|
+
if ((props.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
194
195
|
state.moving = false;
|
195
196
|
return;
|
196
197
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ImagePreviewProps } from './ImagePreview';
|
2
|
-
export declare const ImagePreview: import("
|
2
|
+
export declare const ImagePreview: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
3
3
|
show: BooleanConstructor;
|
4
4
|
loop: {
|
5
5
|
type: BooleanConstructor;
|
@@ -21,6 +21,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
21
21
|
type: BooleanConstructor;
|
22
22
|
default: true;
|
23
23
|
};
|
24
|
+
vertical: BooleanConstructor;
|
24
25
|
closeable: BooleanConstructor;
|
25
26
|
showIndex: {
|
26
27
|
type: BooleanConstructor;
|
@@ -32,7 +33,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
32
33
|
default: string;
|
33
34
|
};
|
34
35
|
transition: StringConstructor;
|
35
|
-
beforeClose: import("vue").PropType<import("
|
36
|
+
beforeClose: import("vue").PropType<import("packages/vant/lib/utils/interceptor").Interceptor>;
|
36
37
|
doubleScale: {
|
37
38
|
type: BooleanConstructor;
|
38
39
|
default: true;
|
@@ -61,8 +62,8 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
61
62
|
default: true;
|
62
63
|
};
|
63
64
|
closeIconPosition: {
|
64
|
-
type: import("vue").PropType<import("
|
65
|
-
default: import("
|
65
|
+
type: import("vue").PropType<import("packages/vant/lib").PopupCloseIconPosition>;
|
66
|
+
default: import("packages/vant/lib").PopupCloseIconPosition;
|
66
67
|
};
|
67
68
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
68
69
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -87,6 +88,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
87
88
|
type: BooleanConstructor;
|
88
89
|
default: true;
|
89
90
|
};
|
91
|
+
vertical: BooleanConstructor;
|
90
92
|
closeable: BooleanConstructor;
|
91
93
|
showIndex: {
|
92
94
|
type: BooleanConstructor;
|
@@ -98,7 +100,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
98
100
|
default: string;
|
99
101
|
};
|
100
102
|
transition: StringConstructor;
|
101
|
-
beforeClose: import("vue").PropType<import("
|
103
|
+
beforeClose: import("vue").PropType<import("packages/vant/lib/utils/interceptor").Interceptor>;
|
102
104
|
doubleScale: {
|
103
105
|
type: BooleanConstructor;
|
104
106
|
default: true;
|
@@ -127,8 +129,8 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
127
129
|
default: true;
|
128
130
|
};
|
129
131
|
closeIconPosition: {
|
130
|
-
type: import("vue").PropType<import("
|
131
|
-
default: import("
|
132
|
+
type: import("vue").PropType<import("packages/vant/lib").PopupCloseIconPosition>;
|
133
|
+
default: import("packages/vant/lib").PopupCloseIconPosition;
|
132
134
|
};
|
133
135
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
134
136
|
}>> & {
|
@@ -142,11 +144,12 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
142
144
|
loop: boolean;
|
143
145
|
overlay: boolean;
|
144
146
|
show: boolean;
|
147
|
+
vertical: boolean;
|
145
148
|
closeOnClickOverlay: boolean;
|
146
149
|
closeIcon: string;
|
147
150
|
closeable: boolean;
|
148
151
|
closeOnPopstate: boolean;
|
149
|
-
closeIconPosition: import("
|
152
|
+
closeIconPosition: import("packages/vant/lib").PopupCloseIconPosition;
|
150
153
|
swipeDuration: string | number;
|
151
154
|
showIndicators: boolean;
|
152
155
|
startPosition: string | number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const IndexAnchor: import("
|
1
|
+
export declare const IndexAnchor: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
index: (NumberConstructor | StringConstructor)[];
|
3
3
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
4
4
|
index: (NumberConstructor | StringConstructor)[];
|
package/lib/index-bar/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IndexBarProps } from './IndexBar';
|
2
|
-
export declare const IndexBar: import("
|
2
|
+
export declare const IndexBar: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
3
3
|
sticky: {
|
4
4
|
type: BooleanConstructor;
|
5
5
|
default: true;
|
@@ -12,7 +12,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
indexList: {
|
15
|
-
type: import("vue").PropType<import("
|
15
|
+
type: import("vue").PropType<import("packages/vant/lib/utils/basic").Numeric[]>;
|
16
16
|
default: () => string[];
|
17
17
|
};
|
18
18
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -28,7 +28,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
28
28
|
default: number;
|
29
29
|
};
|
30
30
|
indexList: {
|
31
|
-
type: import("vue").PropType<import("
|
31
|
+
type: import("vue").PropType<import("packages/vant/lib/utils/basic").Numeric[]>;
|
32
32
|
default: () => string[];
|
33
33
|
};
|
34
34
|
}>> & {
|
@@ -37,7 +37,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
37
37
|
}, {
|
38
38
|
sticky: boolean;
|
39
39
|
stickyOffsetTop: number;
|
40
|
-
indexList: import("
|
40
|
+
indexList: import("packages/vant/lib/utils/basic").Numeric[];
|
41
41
|
}, {}>>;
|
42
42
|
export default IndexBar;
|
43
43
|
export { indexBarProps } from './IndexBar';
|