jb-mobile-ui 1.0.0
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 +47 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/components/JbMobileButton.vue.d.ts +17 -0
- package/dist/components/JbMobileDatePicker.vue.d.ts +543 -0
- package/dist/components/JbMobileEmpty.vue.d.ts +29 -0
- package/dist/components/JbMobilePopup.vue.d.ts +82 -0
- package/dist/components/JbMobileSearchInput.vue.d.ts +18 -0
- package/dist/components/JbMobileSelect.vue.d.ts +95 -0
- package/dist/components/JbMobileTimePicker.vue.d.ts +445 -0
- package/dist/components/JbMobileTreeSelectPopup.vue.d.ts +118 -0
- package/dist/font/D-DIN-PRO-Bold.otf +0 -0
- package/dist/font/D-DIN-PRO-Regular.woff2 +0 -0
- package/dist/font/Noto-Sans-CJK-Thin.woff2 +0 -0
- package/dist/font/NotoSansSC[wght].woff2 +0 -0
- package/dist/index.cjs.js +7 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.es.js +5864 -0
- package/dist/main.d.ts +0 -0
- package/dist/types/common.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
visible: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
contentHeight: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
greyBg: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
footButton: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
beforeConfirm: {
|
|
32
|
+
type: FunctionConstructor;
|
|
33
|
+
default: () => boolean;
|
|
34
|
+
};
|
|
35
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
close: (...args: any[]) => void;
|
|
37
|
+
"update:visible": (...args: any[]) => void;
|
|
38
|
+
confirm: (...args: any[]) => void;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
visible: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
contentHeight: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
title: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
greyBg: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
footButton: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
beforeConfirm: {
|
|
61
|
+
type: FunctionConstructor;
|
|
62
|
+
default: () => boolean;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
title: string;
|
|
70
|
+
visible: boolean;
|
|
71
|
+
contentHeight: number;
|
|
72
|
+
greyBg: boolean;
|
|
73
|
+
footButton: boolean;
|
|
74
|
+
beforeConfirm: Function;
|
|
75
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
76
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
|
+
export default _default;
|
|
78
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
|
+
new (): {
|
|
80
|
+
$slots: S;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
modelValue: string | number;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
width: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
placeholder: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
popupTitle: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
options: {
|
|
19
|
+
type: {
|
|
20
|
+
(arrayLength: number): Record<string, any>[];
|
|
21
|
+
(...items: Record<string, any>[]): Record<string, any>[];
|
|
22
|
+
new (arrayLength: number): Record<string, any>[];
|
|
23
|
+
new (...items: Record<string, any>[]): Record<string, any>[];
|
|
24
|
+
isArray(arg: any): arg is any[];
|
|
25
|
+
readonly prototype: any[];
|
|
26
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
27
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
28
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
29
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
30
|
+
of<T>(...items: T[]): T[];
|
|
31
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
32
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
33
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
34
|
+
};
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
fieldNames: {
|
|
38
|
+
type: ObjectConstructor;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
change: (...args: any[]) => void;
|
|
43
|
+
"update:modelValue": (...args: any[]) => void;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
width: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
placeholder: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
popupTitle: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
options: {
|
|
62
|
+
type: {
|
|
63
|
+
(arrayLength: number): Record<string, any>[];
|
|
64
|
+
(...items: Record<string, any>[]): Record<string, any>[];
|
|
65
|
+
new (arrayLength: number): Record<string, any>[];
|
|
66
|
+
new (...items: Record<string, any>[]): Record<string, any>[];
|
|
67
|
+
isArray(arg: any): arg is any[];
|
|
68
|
+
readonly prototype: any[];
|
|
69
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
70
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
71
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
72
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
73
|
+
of<T>(...items: T[]): T[];
|
|
74
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
75
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
76
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
77
|
+
};
|
|
78
|
+
default: () => never[];
|
|
79
|
+
};
|
|
80
|
+
fieldNames: {
|
|
81
|
+
type: ObjectConstructor;
|
|
82
|
+
default: () => {};
|
|
83
|
+
};
|
|
84
|
+
}>> & Readonly<{
|
|
85
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
placeholder: string;
|
|
89
|
+
modelValue: string | number;
|
|
90
|
+
width: number;
|
|
91
|
+
popupTitle: string;
|
|
92
|
+
options: Record<string, any>[];
|
|
93
|
+
fieldNames: Record<string, any>;
|
|
94
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
visible: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
timePickerType: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
defaultValue: {
|
|
12
|
+
type: (DateConstructor | {
|
|
13
|
+
(arrayLength: number): Date[];
|
|
14
|
+
(...items: Date[]): Date[];
|
|
15
|
+
new (arrayLength: number): Date[];
|
|
16
|
+
new (...items: Date[]): Date[];
|
|
17
|
+
isArray(arg: any): arg is any[];
|
|
18
|
+
readonly prototype: any[];
|
|
19
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
20
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
21
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
22
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
23
|
+
of<T>(...items: T[]): T[];
|
|
24
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
25
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
26
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
27
|
+
})[];
|
|
28
|
+
default: Date;
|
|
29
|
+
};
|
|
30
|
+
minDate: {
|
|
31
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
32
|
+
default: Date;
|
|
33
|
+
};
|
|
34
|
+
maxDate: {
|
|
35
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
36
|
+
default: Date;
|
|
37
|
+
};
|
|
38
|
+
valueFormat: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}>, {
|
|
43
|
+
toPrevDate: () => void;
|
|
44
|
+
toNextDate: () => void;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
"update:visible": (...args: any[]) => void;
|
|
47
|
+
confirm: (...args: any[]) => void;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
49
|
+
visible: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
timePickerType: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
defaultValue: {
|
|
58
|
+
type: (DateConstructor | {
|
|
59
|
+
(arrayLength: number): Date[];
|
|
60
|
+
(...items: Date[]): Date[];
|
|
61
|
+
new (arrayLength: number): Date[];
|
|
62
|
+
new (...items: Date[]): Date[];
|
|
63
|
+
isArray(arg: any): arg is any[];
|
|
64
|
+
readonly prototype: any[];
|
|
65
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
66
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
67
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
68
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
69
|
+
of<T>(...items: T[]): T[];
|
|
70
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
71
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
72
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
73
|
+
})[];
|
|
74
|
+
default: Date;
|
|
75
|
+
};
|
|
76
|
+
minDate: {
|
|
77
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
78
|
+
default: Date;
|
|
79
|
+
};
|
|
80
|
+
maxDate: {
|
|
81
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
82
|
+
default: Date;
|
|
83
|
+
};
|
|
84
|
+
valueFormat: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
}>> & Readonly<{
|
|
89
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
visible: boolean;
|
|
93
|
+
timePickerType: string;
|
|
94
|
+
defaultValue: Date | Date[];
|
|
95
|
+
minDate: string | number | Date;
|
|
96
|
+
maxDate: string | number | Date;
|
|
97
|
+
valueFormat: string;
|
|
98
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
99
|
+
timePickerContentRef: HTMLDivElement;
|
|
100
|
+
calendarRef: ({
|
|
101
|
+
$: import('vue').ComponentInternalInstance;
|
|
102
|
+
$data: {};
|
|
103
|
+
$props: Partial<{
|
|
104
|
+
type: import('vant').CalendarType;
|
|
105
|
+
position: import('vant').PopupPosition;
|
|
106
|
+
round: boolean;
|
|
107
|
+
show: boolean;
|
|
108
|
+
readonly: boolean;
|
|
109
|
+
safeAreaInsetBottom: boolean;
|
|
110
|
+
lazyRender: boolean;
|
|
111
|
+
closeOnClickOverlay: boolean;
|
|
112
|
+
closeOnPopstate: boolean;
|
|
113
|
+
safeAreaInsetTop: boolean;
|
|
114
|
+
switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
115
|
+
poppable: boolean;
|
|
116
|
+
maxRange: string | number;
|
|
117
|
+
showMark: boolean;
|
|
118
|
+
showTitle: boolean;
|
|
119
|
+
showConfirm: boolean;
|
|
120
|
+
allowSameDay: boolean;
|
|
121
|
+
showSubtitle: boolean;
|
|
122
|
+
showRangePrompt: boolean;
|
|
123
|
+
firstDayOfWeek: string | number;
|
|
124
|
+
}> & Omit<{
|
|
125
|
+
readonly type: import('vant').CalendarType;
|
|
126
|
+
readonly round: boolean;
|
|
127
|
+
readonly show: boolean;
|
|
128
|
+
readonly lazyRender: boolean;
|
|
129
|
+
readonly closeOnClickOverlay: boolean;
|
|
130
|
+
readonly position: import('vant').PopupPosition;
|
|
131
|
+
readonly closeOnPopstate: boolean;
|
|
132
|
+
readonly safeAreaInsetTop: boolean;
|
|
133
|
+
readonly safeAreaInsetBottom: boolean;
|
|
134
|
+
readonly switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
135
|
+
readonly readonly: boolean;
|
|
136
|
+
readonly poppable: boolean;
|
|
137
|
+
readonly maxRange: string | number;
|
|
138
|
+
readonly showMark: boolean;
|
|
139
|
+
readonly showTitle: boolean;
|
|
140
|
+
readonly showConfirm: boolean;
|
|
141
|
+
readonly allowSameDay: boolean;
|
|
142
|
+
readonly showSubtitle: boolean;
|
|
143
|
+
readonly showRangePrompt: boolean;
|
|
144
|
+
readonly firstDayOfWeek: string | number;
|
|
145
|
+
readonly color?: string | undefined;
|
|
146
|
+
readonly title?: string | undefined;
|
|
147
|
+
readonly teleport?: string | import('vue').RendererElement | null | undefined;
|
|
148
|
+
readonly minDate?: Date | undefined;
|
|
149
|
+
readonly maxDate?: Date | undefined;
|
|
150
|
+
readonly defaultDate?: Date | Date[] | null | undefined;
|
|
151
|
+
readonly formatter?: ((item: import('vant').CalendarDayItem) => import('vant').CalendarDayItem) | undefined;
|
|
152
|
+
readonly rowHeight?: string | number | undefined;
|
|
153
|
+
readonly confirmText?: string | undefined;
|
|
154
|
+
readonly rangePrompt?: string | undefined;
|
|
155
|
+
readonly confirmDisabledText?: string | undefined;
|
|
156
|
+
readonly onSelect?: ((...args: any[]) => any) | undefined | undefined;
|
|
157
|
+
readonly "onUpdate:show"?: ((...args: any[]) => any) | undefined | undefined;
|
|
158
|
+
readonly onClickOverlay?: ((...args: any[]) => any) | undefined | undefined;
|
|
159
|
+
readonly onConfirm?: ((...args: any[]) => any) | undefined | undefined;
|
|
160
|
+
readonly onClickDisabledDate?: ((...args: any[]) => any) | undefined | undefined;
|
|
161
|
+
readonly onClickSubtitle?: ((...args: any[]) => any) | undefined | undefined;
|
|
162
|
+
readonly onPanelChange?: ((...args: any[]) => any) | undefined | undefined;
|
|
163
|
+
readonly onUnselect?: ((...args: any[]) => any) | undefined | undefined;
|
|
164
|
+
readonly onMonthShow?: ((...args: any[]) => any) | undefined | undefined;
|
|
165
|
+
readonly onOverRange?: ((...args: any[]) => any) | undefined | undefined;
|
|
166
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "round" | "show" | "lazyRender" | "closeOnClickOverlay" | "position" | "closeOnPopstate" | "safeAreaInsetTop" | "safeAreaInsetBottom" | "switchMode" | "readonly" | "poppable" | "maxRange" | "showMark" | "showTitle" | "showConfirm" | "allowSameDay" | "showSubtitle" | "showRangePrompt" | "firstDayOfWeek">;
|
|
167
|
+
$attrs: {
|
|
168
|
+
[x: string]: unknown;
|
|
169
|
+
};
|
|
170
|
+
$refs: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
};
|
|
173
|
+
$slots: Readonly<{
|
|
174
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
177
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
178
|
+
$host: Element | null;
|
|
179
|
+
$emit: (event: "select" | "confirm" | "update:show" | "clickOverlay" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", ...args: any[]) => void;
|
|
180
|
+
$el: any;
|
|
181
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
182
|
+
show: BooleanConstructor;
|
|
183
|
+
type: {
|
|
184
|
+
type: import('vue').PropType<import('vant').CalendarType>;
|
|
185
|
+
default: import('vant').CalendarType;
|
|
186
|
+
};
|
|
187
|
+
switchMode: {
|
|
188
|
+
type: import('vue').PropType<import('vant/lib/calendar/types').CalendarSwitchMode>;
|
|
189
|
+
default: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
190
|
+
};
|
|
191
|
+
title: StringConstructor;
|
|
192
|
+
color: StringConstructor;
|
|
193
|
+
round: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: true;
|
|
196
|
+
};
|
|
197
|
+
readonly: BooleanConstructor;
|
|
198
|
+
poppable: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: true;
|
|
201
|
+
};
|
|
202
|
+
maxRange: {
|
|
203
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
204
|
+
default: null;
|
|
205
|
+
};
|
|
206
|
+
position: {
|
|
207
|
+
type: import('vue').PropType<import('vant').PopupPosition>;
|
|
208
|
+
default: import('vant').PopupPosition;
|
|
209
|
+
};
|
|
210
|
+
teleport: import('vue').PropType<import('vue').TeleportProps["to"]>;
|
|
211
|
+
showMark: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: true;
|
|
214
|
+
};
|
|
215
|
+
showTitle: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: true;
|
|
218
|
+
};
|
|
219
|
+
formatter: import('vue').PropType<(item: import('vant').CalendarDayItem) => import('vant').CalendarDayItem>;
|
|
220
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
221
|
+
confirmText: StringConstructor;
|
|
222
|
+
rangePrompt: StringConstructor;
|
|
223
|
+
lazyRender: {
|
|
224
|
+
type: BooleanConstructor;
|
|
225
|
+
default: true;
|
|
226
|
+
};
|
|
227
|
+
showConfirm: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: true;
|
|
230
|
+
};
|
|
231
|
+
defaultDate: import('vue').PropType<Date | Date[] | null>;
|
|
232
|
+
allowSameDay: BooleanConstructor;
|
|
233
|
+
showSubtitle: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
default: true;
|
|
236
|
+
};
|
|
237
|
+
closeOnPopstate: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: true;
|
|
240
|
+
};
|
|
241
|
+
showRangePrompt: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
default: true;
|
|
244
|
+
};
|
|
245
|
+
confirmDisabledText: StringConstructor;
|
|
246
|
+
closeOnClickOverlay: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: true;
|
|
249
|
+
};
|
|
250
|
+
safeAreaInsetTop: BooleanConstructor;
|
|
251
|
+
safeAreaInsetBottom: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
default: true;
|
|
254
|
+
};
|
|
255
|
+
minDate: {
|
|
256
|
+
type: DateConstructor;
|
|
257
|
+
validator: (val: unknown) => val is Date;
|
|
258
|
+
};
|
|
259
|
+
maxDate: {
|
|
260
|
+
type: DateConstructor;
|
|
261
|
+
validator: (val: unknown) => val is Date;
|
|
262
|
+
};
|
|
263
|
+
firstDayOfWeek: {
|
|
264
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
265
|
+
default: number;
|
|
266
|
+
validator: (val: number) => boolean;
|
|
267
|
+
};
|
|
268
|
+
}>> & Readonly<{
|
|
269
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
270
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
271
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
onPanelChange?: ((...args: any[]) => any) | undefined;
|
|
276
|
+
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
277
|
+
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
278
|
+
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
279
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "confirm" | "update:show" | "clickOverlay" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], string, {
|
|
280
|
+
type: import('vant').CalendarType;
|
|
281
|
+
position: import('vant').PopupPosition;
|
|
282
|
+
round: boolean;
|
|
283
|
+
show: boolean;
|
|
284
|
+
readonly: boolean;
|
|
285
|
+
safeAreaInsetBottom: boolean;
|
|
286
|
+
lazyRender: boolean;
|
|
287
|
+
closeOnClickOverlay: boolean;
|
|
288
|
+
closeOnPopstate: boolean;
|
|
289
|
+
safeAreaInsetTop: boolean;
|
|
290
|
+
switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
291
|
+
poppable: boolean;
|
|
292
|
+
maxRange: string | number;
|
|
293
|
+
showMark: boolean;
|
|
294
|
+
showTitle: boolean;
|
|
295
|
+
showConfirm: boolean;
|
|
296
|
+
allowSameDay: boolean;
|
|
297
|
+
showSubtitle: boolean;
|
|
298
|
+
showRangePrompt: boolean;
|
|
299
|
+
firstDayOfWeek: string | number;
|
|
300
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
301
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
302
|
+
created?: (() => void) | (() => void)[];
|
|
303
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
304
|
+
mounted?: (() => void) | (() => void)[];
|
|
305
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
306
|
+
updated?: (() => void) | (() => void)[];
|
|
307
|
+
activated?: (() => void) | (() => void)[];
|
|
308
|
+
deactivated?: (() => void) | (() => void)[];
|
|
309
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
310
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
311
|
+
destroyed?: (() => void) | (() => void)[];
|
|
312
|
+
unmounted?: (() => void) | (() => void)[];
|
|
313
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
314
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
315
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
316
|
+
};
|
|
317
|
+
$forceUpdate: () => void;
|
|
318
|
+
$nextTick: typeof nextTick;
|
|
319
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
320
|
+
} & Readonly<{
|
|
321
|
+
type: import('vant').CalendarType;
|
|
322
|
+
position: import('vant').PopupPosition;
|
|
323
|
+
round: boolean;
|
|
324
|
+
show: boolean;
|
|
325
|
+
readonly: boolean;
|
|
326
|
+
safeAreaInsetBottom: boolean;
|
|
327
|
+
lazyRender: boolean;
|
|
328
|
+
closeOnClickOverlay: boolean;
|
|
329
|
+
closeOnPopstate: boolean;
|
|
330
|
+
safeAreaInsetTop: boolean;
|
|
331
|
+
switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
332
|
+
poppable: boolean;
|
|
333
|
+
maxRange: string | number;
|
|
334
|
+
showMark: boolean;
|
|
335
|
+
showTitle: boolean;
|
|
336
|
+
showConfirm: boolean;
|
|
337
|
+
allowSameDay: boolean;
|
|
338
|
+
showSubtitle: boolean;
|
|
339
|
+
showRangePrompt: boolean;
|
|
340
|
+
firstDayOfWeek: string | number;
|
|
341
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
342
|
+
show: BooleanConstructor;
|
|
343
|
+
type: {
|
|
344
|
+
type: import('vue').PropType<import('vant').CalendarType>;
|
|
345
|
+
default: import('vant').CalendarType;
|
|
346
|
+
};
|
|
347
|
+
switchMode: {
|
|
348
|
+
type: import('vue').PropType<import('vant/lib/calendar/types').CalendarSwitchMode>;
|
|
349
|
+
default: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
350
|
+
};
|
|
351
|
+
title: StringConstructor;
|
|
352
|
+
color: StringConstructor;
|
|
353
|
+
round: {
|
|
354
|
+
type: BooleanConstructor;
|
|
355
|
+
default: true;
|
|
356
|
+
};
|
|
357
|
+
readonly: BooleanConstructor;
|
|
358
|
+
poppable: {
|
|
359
|
+
type: BooleanConstructor;
|
|
360
|
+
default: true;
|
|
361
|
+
};
|
|
362
|
+
maxRange: {
|
|
363
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
364
|
+
default: null;
|
|
365
|
+
};
|
|
366
|
+
position: {
|
|
367
|
+
type: import('vue').PropType<import('vant').PopupPosition>;
|
|
368
|
+
default: import('vant').PopupPosition;
|
|
369
|
+
};
|
|
370
|
+
teleport: import('vue').PropType<import('vue').TeleportProps["to"]>;
|
|
371
|
+
showMark: {
|
|
372
|
+
type: BooleanConstructor;
|
|
373
|
+
default: true;
|
|
374
|
+
};
|
|
375
|
+
showTitle: {
|
|
376
|
+
type: BooleanConstructor;
|
|
377
|
+
default: true;
|
|
378
|
+
};
|
|
379
|
+
formatter: import('vue').PropType<(item: import('vant').CalendarDayItem) => import('vant').CalendarDayItem>;
|
|
380
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
381
|
+
confirmText: StringConstructor;
|
|
382
|
+
rangePrompt: StringConstructor;
|
|
383
|
+
lazyRender: {
|
|
384
|
+
type: BooleanConstructor;
|
|
385
|
+
default: true;
|
|
386
|
+
};
|
|
387
|
+
showConfirm: {
|
|
388
|
+
type: BooleanConstructor;
|
|
389
|
+
default: true;
|
|
390
|
+
};
|
|
391
|
+
defaultDate: import('vue').PropType<Date | Date[] | null>;
|
|
392
|
+
allowSameDay: BooleanConstructor;
|
|
393
|
+
showSubtitle: {
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
default: true;
|
|
396
|
+
};
|
|
397
|
+
closeOnPopstate: {
|
|
398
|
+
type: BooleanConstructor;
|
|
399
|
+
default: true;
|
|
400
|
+
};
|
|
401
|
+
showRangePrompt: {
|
|
402
|
+
type: BooleanConstructor;
|
|
403
|
+
default: true;
|
|
404
|
+
};
|
|
405
|
+
confirmDisabledText: StringConstructor;
|
|
406
|
+
closeOnClickOverlay: {
|
|
407
|
+
type: BooleanConstructor;
|
|
408
|
+
default: true;
|
|
409
|
+
};
|
|
410
|
+
safeAreaInsetTop: BooleanConstructor;
|
|
411
|
+
safeAreaInsetBottom: {
|
|
412
|
+
type: BooleanConstructor;
|
|
413
|
+
default: true;
|
|
414
|
+
};
|
|
415
|
+
minDate: {
|
|
416
|
+
type: DateConstructor;
|
|
417
|
+
validator: (val: unknown) => val is Date;
|
|
418
|
+
};
|
|
419
|
+
maxDate: {
|
|
420
|
+
type: DateConstructor;
|
|
421
|
+
validator: (val: unknown) => val is Date;
|
|
422
|
+
};
|
|
423
|
+
firstDayOfWeek: {
|
|
424
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
425
|
+
default: number;
|
|
426
|
+
validator: (val: number) => boolean;
|
|
427
|
+
};
|
|
428
|
+
}>> & Readonly<{
|
|
429
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
430
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
431
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
|
432
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
433
|
+
onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
|
434
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
|
435
|
+
onPanelChange?: ((...args: any[]) => any) | undefined;
|
|
436
|
+
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
437
|
+
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
438
|
+
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
439
|
+
}>, "type" | "round" | "show" | "lazyRender" | "closeOnClickOverlay" | "position" | "closeOnPopstate" | "safeAreaInsetTop" | "safeAreaInsetBottom" | "switchMode" | "readonly" | "poppable" | "maxRange" | "showMark" | "showTitle" | "showConfirm" | "allowSameDay" | "showSubtitle" | "showRangePrompt" | "firstDayOfWeek"> & import('vue').ShallowUnwrapRef<() => import("vue/jsx-runtime").JSX.Element> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
440
|
+
$props: {
|
|
441
|
+
onClick?: (...args: any[]) => void;
|
|
442
|
+
};
|
|
443
|
+
}) | null;
|
|
444
|
+
}, any>;
|
|
445
|
+
export default _default;
|