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
@@ -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/es/utils/with-install").W
|
|
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/es/utils/with-install").W
|
|
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/es/utils/with-install").W
|
|
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/es/utils/with-install").W
|
|
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/es/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/es/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/es/utils/with-install").WithIn
|
|
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/es/utils/with-install").WithIn
|
|
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/es/utils/with-install").WithIn
|
|
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/es/utils/with-install").W
|
|
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/es/utils/with-install").W
|
|
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/es/utils/with-install").W
|
|
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/es/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/es/utils/with-install").Wit
|
|
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/es/utils/with-install").Wit
|
|
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/es/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/es/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/es/utils/basic.mjs
CHANGED
@@ -35,8 +35,10 @@ function pick(obj, keys, ignoreUndefined) {
|
|
35
35
|
}
|
36
36
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
37
37
|
const toArray = (item) => Array.isArray(item) ? item : [item];
|
38
|
+
const flat = (arr) => arr.reduce((acc, val) => acc.concat(val), []);
|
38
39
|
export {
|
39
40
|
extend,
|
41
|
+
flat,
|
40
42
|
get,
|
41
43
|
inBrowser,
|
42
44
|
isDate,
|
package/es/watermark/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Watermark: import("
|
1
|
+
export declare const Watermark: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
gapX: {
|
3
3
|
type: NumberConstructor;
|
4
4
|
default: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const ActionBar: import("
|
1
|
+
export declare const ActionBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
placeholder: BooleanConstructor;
|
3
3
|
safeAreaInsetBottom: {
|
4
4
|
type: BooleanConstructor;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export declare const ActionBarButton: import("
|
1
|
+
export declare const ActionBarButton: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
5
5
|
} & {
|
6
|
-
type: import("vue").PropType<import("
|
6
|
+
type: import("vue").PropType<import("..").ButtonType>;
|
7
7
|
text: StringConstructor;
|
8
8
|
icon: StringConstructor;
|
9
9
|
color: StringConstructor;
|
@@ -14,7 +14,7 @@ export declare const ActionBarButton: import("packages/vant/lib/utils/with-insta
|
|
14
14
|
url: StringConstructor;
|
15
15
|
replace: BooleanConstructor;
|
16
16
|
} & {
|
17
|
-
type: import("vue").PropType<import("
|
17
|
+
type: import("vue").PropType<import("..").ButtonType>;
|
18
18
|
text: StringConstructor;
|
19
19
|
icon: StringConstructor;
|
20
20
|
color: StringConstructor;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const ActionBarIcon: import("
|
1
|
+
export declare const ActionBarIcon: import("../utils").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 ActionBarIcon: import("packages/vant/lib/utils/with-install
|
|
9
9
|
color: StringConstructor;
|
10
10
|
badge: (NumberConstructor | StringConstructor)[];
|
11
11
|
iconClass: import("vue").PropType<unknown>;
|
12
|
-
badgeProps: import("vue").PropType<Partial<import("
|
12
|
+
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
13
13
|
iconPrefix: StringConstructor;
|
14
14
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
15
15
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
@@ -22,7 +22,7 @@ export declare const ActionBarIcon: import("packages/vant/lib/utils/with-install
|
|
22
22
|
color: StringConstructor;
|
23
23
|
badge: (NumberConstructor | StringConstructor)[];
|
24
24
|
iconClass: import("vue").PropType<unknown>;
|
25
|
-
badgeProps: import("vue").PropType<Partial<import("
|
25
|
+
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
26
26
|
iconPrefix: StringConstructor;
|
27
27
|
}>>, {
|
28
28
|
replace: boolean;
|
@@ -26,7 +26,7 @@ export declare const actionSheetProps: {
|
|
26
26
|
type: BooleanConstructor;
|
27
27
|
default: true;
|
28
28
|
};
|
29
|
-
beforeClose: import("vue").PropType<import("
|
29
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
30
30
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
31
31
|
overlayClass: import("vue").PropType<unknown>;
|
32
32
|
transitionAppear: BooleanConstructor;
|
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
82
82
|
type: BooleanConstructor;
|
83
83
|
default: true;
|
84
84
|
};
|
85
|
-
beforeClose: import("vue").PropType<import("
|
85
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
86
86
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
87
87
|
overlayClass: import("vue").PropType<unknown>;
|
88
88
|
transitionAppear: BooleanConstructor;
|
@@ -136,7 +136,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
136
136
|
type: BooleanConstructor;
|
137
137
|
default: true;
|
138
138
|
};
|
139
|
-
beforeClose: import("vue").PropType<import("
|
139
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
140
140
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
141
141
|
overlayClass: import("vue").PropType<unknown>;
|
142
142
|
transitionAppear: BooleanConstructor;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const ActionSheet: import("
|
1
|
+
export declare const ActionSheet: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
zIndex: (NumberConstructor | StringConstructor)[];
|
4
4
|
overlay: {
|
@@ -15,7 +15,7 @@ export declare const ActionSheet: import("packages/vant/lib/utils/with-install")
|
|
15
15
|
type: BooleanConstructor;
|
16
16
|
default: true;
|
17
17
|
};
|
18
|
-
beforeClose: import("vue").PropType<import("
|
18
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
19
19
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
20
20
|
overlayClass: import("vue").PropType<unknown>;
|
21
21
|
transitionAppear: BooleanConstructor;
|
@@ -69,7 +69,7 @@ export declare const ActionSheet: import("packages/vant/lib/utils/with-install")
|
|
69
69
|
type: BooleanConstructor;
|
70
70
|
default: true;
|
71
71
|
};
|
72
|
-
beforeClose: import("vue").PropType<import("
|
72
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
73
73
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
74
74
|
overlayClass: import("vue").PropType<unknown>;
|
75
75
|
transitionAppear: BooleanConstructor;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AddressEditProps } from './AddressEdit';
|
2
|
-
export declare const AddressEdit: import("
|
3
|
-
areaList: import("vue").PropType<import("
|
2
|
+
export declare const AddressEdit: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
+
areaList: import("vue").PropType<import("..").AreaList>;
|
4
4
|
isSaving: BooleanConstructor;
|
5
5
|
isDeleting: BooleanConstructor;
|
6
6
|
validator: import("vue").PropType<(key: string, value: string) => string | undefined>;
|
@@ -39,10 +39,10 @@ export declare const AddressEdit: import("packages/vant/lib/utils/with-install")
|
|
39
39
|
};
|
40
40
|
telValidator: {
|
41
41
|
type: import("vue").PropType<(val: string) => boolean>;
|
42
|
-
default: typeof import("
|
42
|
+
default: typeof import("../utils").isMobile;
|
43
43
|
};
|
44
44
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "focus" | "change" | "selectSearch" | "save" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "delete" | "focus" | "change" | "selectSearch" | "save" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
45
|
-
areaList: import("vue").PropType<import("
|
45
|
+
areaList: import("vue").PropType<import("..").AreaList>;
|
46
46
|
isSaving: BooleanConstructor;
|
47
47
|
isDeleting: BooleanConstructor;
|
48
48
|
validator: import("vue").PropType<(key: string, value: string) => string | undefined>;
|
@@ -81,7 +81,7 @@ export declare const AddressEdit: import("packages/vant/lib/utils/with-install")
|
|
81
81
|
};
|
82
82
|
telValidator: {
|
83
83
|
type: import("vue").PropType<(val: string) => boolean>;
|
84
|
-
default: typeof import("
|
84
|
+
default: typeof import("../utils").isMobile;
|
85
85
|
};
|
86
86
|
}>> & {
|
87
87
|
onFocus?: ((...args: any[]) => any) | undefined;
|
@@ -59,7 +59,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
59
59
|
}) {
|
60
60
|
const renderItem = (item, index, disabled) => {
|
61
61
|
const onEdit = () => emit(disabled ? "editDisabled" : "edit", item, index);
|
62
|
-
const onClick = () => emit("clickItem", item, index
|
62
|
+
const onClick = (event) => emit("clickItem", item, index, {
|
63
|
+
event
|
64
|
+
});
|
63
65
|
const onSelect = () => {
|
64
66
|
emit(disabled ? "selectDisabled" : "select", item, index);
|
65
67
|
if (!disabled) {
|
@@ -42,11 +42,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
42
42
|
slots,
|
43
43
|
emit
|
44
44
|
}) {
|
45
|
-
const onClick = () => {
|
45
|
+
const onClick = (event) => {
|
46
46
|
if (props.switchable) {
|
47
47
|
emit("select");
|
48
48
|
}
|
49
|
-
emit("click");
|
49
|
+
emit("click", event);
|
50
50
|
};
|
51
51
|
const renderRightIcon = () => (0, import_vue.createVNode)(import_icon.Icon, {
|
52
52
|
"name": props.rightIcon,
|
@@ -54,7 +54,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
54
54
|
"onClick": (event) => {
|
55
55
|
event.stopPropagation();
|
56
56
|
emit("edit");
|
57
|
-
emit("click");
|
57
|
+
emit("click", event);
|
58
58
|
}
|
59
59
|
}, null);
|
60
60
|
const renderTag = () => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const AddressList: import("
|
1
|
+
export declare const AddressList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
list: {
|
3
3
|
type: import("vue").PropType<import("./AddressListItem").AddressListAddress[]>;
|
4
4
|
default: () => never[];
|
package/lib/area/Area.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { AreaList } from './types';
|
3
|
-
export declare const areaProps: import("
|
3
|
+
export declare const areaProps: import("../utils").Writeable<Pick<{
|
4
4
|
loading: BooleanConstructor;
|
5
5
|
readonly: BooleanConstructor;
|
6
6
|
allowHtml: BooleanConstructor;
|
@@ -40,7 +40,7 @@ export declare const areaProps: import("packages/vant/lib/utils/basic").Writeabl
|
|
40
40
|
};
|
41
41
|
};
|
42
42
|
export type AreaProps = ExtractPropTypes<typeof areaProps>;
|
43
|
-
declare const _default: import("vue").DefineComponent<import("
|
43
|
+
declare const _default: import("vue").DefineComponent<import("../utils").Writeable<Pick<{
|
44
44
|
loading: BooleanConstructor;
|
45
45
|
readonly: BooleanConstructor;
|
46
46
|
allowHtml: BooleanConstructor;
|
@@ -78,7 +78,7 @@ declare const _default: import("vue").DefineComponent<import("packages/vant/lib/
|
|
78
78
|
type: PropType<AreaList>;
|
79
79
|
default: () => {};
|
80
80
|
};
|
81
|
-
}, () => 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<import("
|
81
|
+
}, () => 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<import("../utils").Writeable<Pick<{
|
82
82
|
loading: BooleanConstructor;
|
83
83
|
readonly: BooleanConstructor;
|
84
84
|
allowHtml: BooleanConstructor;
|
package/lib/area/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Area: import("
|
1
|
+
export declare const Area: import("../utils").WithInstall<import("vue").DefineComponent<import("../utils").Writeable<Pick<{
|
2
2
|
loading: BooleanConstructor;
|
3
3
|
readonly: BooleanConstructor;
|
4
4
|
allowHtml: BooleanConstructor;
|
@@ -36,7 +36,7 @@ export declare const Area: import("packages/vant/lib/utils/with-install").WithIn
|
|
36
36
|
type: import("vue").PropType<import("./types").AreaList>;
|
37
37
|
default: () => {};
|
38
38
|
};
|
39
|
-
}, () => 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<import("
|
39
|
+
}, () => 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<import("../utils").Writeable<Pick<{
|
40
40
|
loading: BooleanConstructor;
|
41
41
|
readonly: BooleanConstructor;
|
42
42
|
allowHtml: BooleanConstructor;
|
package/lib/back-top/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const BackTop: import("
|
1
|
+
export declare const BackTop: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
right: (NumberConstructor | StringConstructor)[];
|
3
3
|
bottom: (NumberConstructor | StringConstructor)[];
|
4
4
|
zIndex: (NumberConstructor | StringConstructor)[];
|
package/lib/badge/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Badge: import("
|
1
|
+
export declare const Badge: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
dot: BooleanConstructor;
|
3
3
|
max: (NumberConstructor | StringConstructor)[];
|
4
4
|
tag: {
|
@@ -6,7 +6,7 @@ export declare const Badge: import("packages/vant/lib/utils/with-install").WithI
|
|
6
6
|
default: keyof HTMLElementTagNameMap;
|
7
7
|
};
|
8
8
|
color: StringConstructor;
|
9
|
-
offset: import("vue").PropType<[import("
|
9
|
+
offset: import("vue").PropType<[import("../utils").Numeric, import("../utils").Numeric]>;
|
10
10
|
content: (NumberConstructor | StringConstructor)[];
|
11
11
|
showZero: {
|
12
12
|
type: BooleanConstructor;
|
@@ -24,7 +24,7 @@ export declare const Badge: import("packages/vant/lib/utils/with-install").WithI
|
|
24
24
|
default: keyof HTMLElementTagNameMap;
|
25
25
|
};
|
26
26
|
color: StringConstructor;
|
27
|
-
offset: import("vue").PropType<[import("
|
27
|
+
offset: import("vue").PropType<[import("../utils").Numeric, import("../utils").Numeric]>;
|
28
28
|
content: (NumberConstructor | StringConstructor)[];
|
29
29
|
showZero: {
|
30
30
|
type: BooleanConstructor;
|
package/lib/barrage/Barrage.d.ts
CHANGED
@@ -83,10 +83,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
83
|
}>> & {
|
84
84
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
85
85
|
}, {
|
86
|
-
duration: string | number;
|
87
86
|
top: string | number;
|
88
87
|
modelValue: BarrageItem[];
|
89
88
|
rows: string | number;
|
89
|
+
duration: string | number;
|
90
90
|
autoPlay: boolean;
|
91
91
|
delay: number;
|
92
92
|
}, {}>;
|
package/lib/barrage/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Barrage: import("
|
1
|
+
export declare const Barrage: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
top: {
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
4
4
|
default: number;
|
@@ -51,10 +51,10 @@ export declare const Barrage: import("packages/vant/lib/utils/with-install").Wit
|
|
51
51
|
}>> & {
|
52
52
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
53
53
|
}, {
|
54
|
-
duration: string | number;
|
55
54
|
top: string | number;
|
56
55
|
modelValue: import("./Barrage").BarrageItem[];
|
57
56
|
rows: string | number;
|
57
|
+
duration: string | number;
|
58
58
|
autoPlay: boolean;
|
59
59
|
delay: number;
|
60
60
|
}, {}>>;
|
package/lib/button/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Button: import("
|
1
|
+
export declare const Button: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
@@ -32,7 +32,7 @@ export declare const Button: import("packages/vant/lib/utils/with-install").With
|
|
32
32
|
};
|
33
33
|
loadingSize: (NumberConstructor | StringConstructor)[];
|
34
34
|
loadingText: StringConstructor;
|
35
|
-
loadingType: import("vue").PropType<import("
|
35
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
36
36
|
iconPosition: {
|
37
37
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
38
38
|
default: import("./types").ButtonIconPosition;
|
@@ -71,7 +71,7 @@ export declare const Button: import("packages/vant/lib/utils/with-install").With
|
|
71
71
|
};
|
72
72
|
loadingSize: (NumberConstructor | StringConstructor)[];
|
73
73
|
loadingText: StringConstructor;
|
74
|
-
loadingType: import("vue").PropType<import("
|
74
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
75
75
|
iconPosition: {
|
76
76
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
77
77
|
default: import("./types").ButtonIconPosition;
|
package/lib/calendar/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Calendar: import("
|
1
|
+
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
type: {
|
4
4
|
type: import("vue").PropType<import("./types").CalendarType>;
|
@@ -20,8 +20,8 @@ export declare const Calendar: import("packages/vant/lib/utils/with-install").Wi
|
|
20
20
|
default: null;
|
21
21
|
};
|
22
22
|
position: {
|
23
|
-
type: import("vue").PropType<import("
|
24
|
-
default: import("
|
23
|
+
type: import("vue").PropType<import("..").PopupPosition>;
|
24
|
+
default: import("..").PopupPosition;
|
25
25
|
};
|
26
26
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
27
27
|
showMark: {
|
@@ -105,8 +105,8 @@ export declare const Calendar: import("packages/vant/lib/utils/with-install").Wi
|
|
105
105
|
default: null;
|
106
106
|
};
|
107
107
|
position: {
|
108
|
-
type: import("vue").PropType<import("
|
109
|
-
default: import("
|
108
|
+
type: import("vue").PropType<import("..").PopupPosition>;
|
109
|
+
default: import("..").PopupPosition;
|
110
110
|
};
|
111
111
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
112
112
|
showMark: {
|
@@ -179,7 +179,7 @@ export declare const Calendar: import("packages/vant/lib/utils/with-install").Wi
|
|
179
179
|
onOverRange?: ((...args: any[]) => any) | undefined;
|
180
180
|
}, {
|
181
181
|
type: import("./types").CalendarType;
|
182
|
-
position: import("
|
182
|
+
position: import("..").PopupPosition;
|
183
183
|
round: boolean;
|
184
184
|
show: boolean;
|
185
185
|
readonly: boolean;
|
package/lib/calendar/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const name: string, bem: (el?: import("
|
1
|
+
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
2
2
|
export { name, bem, t };
|
3
3
|
export declare const formatMonthTitle: (date: Date) => any;
|
4
4
|
export declare function compareMonth(date1: Date, date2: Date): 0 | 1 | -1;
|
package/lib/card/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Card: import("
|
1
|
+
export declare const Card: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
tag: StringConstructor;
|
3
3
|
num: (NumberConstructor | StringConstructor)[];
|
4
4
|
desc: StringConstructor;
|
package/lib/cascader/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Cascader: import("
|
1
|
+
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
title: StringConstructor;
|
3
3
|
options: {
|
4
4
|
type: import("vue").PropType<import("./types").CascaderOption[]>;
|
package/lib/cell/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Cell: import("
|
1
|
+
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
tag: {
|
3
3
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
4
4
|
default: keyof HTMLElementTagNameMap;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const CellGroup: import("
|
1
|
+
export declare const CellGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
title: StringConstructor;
|
3
3
|
inset: BooleanConstructor;
|
4
4
|
border: {
|