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
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<h1 align="center">Jb Mobile Ui</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">A public Vue UI library for JinBiWuYe mobile web apps(Vue 3).</p>
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Using `npm` to install:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i jb-mobile-ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Using `yarn`, `pnpm`, or `bun`:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# with yarn
|
|
17
|
+
yarn add jb-mobile-ui
|
|
18
|
+
|
|
19
|
+
# with pnpm
|
|
20
|
+
pnpm add jb-mobile-ui
|
|
21
|
+
|
|
22
|
+
# with Bun
|
|
23
|
+
bun add jb-mobile-ui
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
在 vite.config.ts 中添加配置:
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
resolve: {
|
|
32
|
+
alias: {
|
|
33
|
+
'jb-mobile-ui': '/node_modules/jb-mobile-ui'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
按需引入组件:
|
|
39
|
+
|
|
40
|
+
```javascript
|
|
41
|
+
import { JbMobileButton } from 'jb-mobile-ui'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Links
|
|
45
|
+
|
|
46
|
+
- <a href="#">Documentation</a>
|
|
47
|
+
- <a href="./CHANGELOG.md">Changelog</a>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
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').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
datePickerType: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
datePickerTypeList: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => string[];
|
|
9
|
+
};
|
|
10
|
+
defaultValue: {
|
|
11
|
+
type: (DateConstructor | {
|
|
12
|
+
(arrayLength: number): Date[];
|
|
13
|
+
(...items: Date[]): Date[];
|
|
14
|
+
new (arrayLength: number): Date[];
|
|
15
|
+
new (...items: Date[]): Date[];
|
|
16
|
+
isArray(arg: any): arg is any[];
|
|
17
|
+
readonly prototype: any[];
|
|
18
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
19
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
20
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
21
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
22
|
+
of<T>(...items: T[]): T[];
|
|
23
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
24
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
25
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
26
|
+
})[];
|
|
27
|
+
default: Date;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
confirm: (...args: any[]) => void;
|
|
35
|
+
"update:datePickerType": (...args: any[]) => void;
|
|
36
|
+
changeDateFail: (...args: any[]) => void;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
datePickerType: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
datePickerTypeList: {
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
default: () => string[];
|
|
45
|
+
};
|
|
46
|
+
defaultValue: {
|
|
47
|
+
type: (DateConstructor | {
|
|
48
|
+
(arrayLength: number): Date[];
|
|
49
|
+
(...items: Date[]): Date[];
|
|
50
|
+
new (arrayLength: number): Date[];
|
|
51
|
+
new (...items: Date[]): Date[];
|
|
52
|
+
isArray(arg: any): arg is any[];
|
|
53
|
+
readonly prototype: any[];
|
|
54
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
55
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
56
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
57
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
58
|
+
of<T>(...items: T[]): T[];
|
|
59
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
60
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
61
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
62
|
+
})[];
|
|
63
|
+
default: Date;
|
|
64
|
+
};
|
|
65
|
+
disabled: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{
|
|
70
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
"onUpdate:datePickerType"?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onChangeDateFail?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
defaultValue: Date | Date[];
|
|
76
|
+
datePickerType: string;
|
|
77
|
+
datePickerTypeList: unknown[];
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
79
|
+
timePickerPopupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
80
|
+
visible: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
timePickerType: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
defaultValue: {
|
|
89
|
+
type: (DateConstructor | {
|
|
90
|
+
(arrayLength: number): Date[];
|
|
91
|
+
(...items: Date[]): Date[];
|
|
92
|
+
new (arrayLength: number): Date[];
|
|
93
|
+
new (...items: Date[]): Date[];
|
|
94
|
+
isArray(arg: any): arg is any[];
|
|
95
|
+
readonly prototype: any[];
|
|
96
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
97
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
98
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
99
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
100
|
+
of<T>(...items: T[]): T[];
|
|
101
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
102
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
103
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
104
|
+
})[];
|
|
105
|
+
default: Date;
|
|
106
|
+
};
|
|
107
|
+
minDate: {
|
|
108
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
109
|
+
default: Date;
|
|
110
|
+
};
|
|
111
|
+
maxDate: {
|
|
112
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
113
|
+
default: Date;
|
|
114
|
+
};
|
|
115
|
+
valueFormat: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
}>> & Readonly<{
|
|
120
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
}>, {
|
|
123
|
+
toPrevDate: () => void;
|
|
124
|
+
toNextDate: () => void;
|
|
125
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
+
"update:visible": (...args: any[]) => void;
|
|
127
|
+
confirm: (...args: any[]) => void;
|
|
128
|
+
}, import('vue').PublicProps, {
|
|
129
|
+
visible: boolean;
|
|
130
|
+
timePickerType: string;
|
|
131
|
+
defaultValue: Date | Date[];
|
|
132
|
+
minDate: string | number | Date;
|
|
133
|
+
maxDate: string | number | Date;
|
|
134
|
+
valueFormat: string;
|
|
135
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
136
|
+
timePickerContentRef: HTMLDivElement;
|
|
137
|
+
calendarRef: ({
|
|
138
|
+
$: import('vue').ComponentInternalInstance;
|
|
139
|
+
$data: {};
|
|
140
|
+
$props: Partial<{
|
|
141
|
+
type: import('vant').CalendarType;
|
|
142
|
+
position: import('vant').PopupPosition;
|
|
143
|
+
round: boolean;
|
|
144
|
+
show: boolean;
|
|
145
|
+
readonly: boolean;
|
|
146
|
+
safeAreaInsetBottom: boolean;
|
|
147
|
+
lazyRender: boolean;
|
|
148
|
+
closeOnClickOverlay: boolean;
|
|
149
|
+
closeOnPopstate: boolean;
|
|
150
|
+
safeAreaInsetTop: boolean;
|
|
151
|
+
switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
152
|
+
poppable: boolean;
|
|
153
|
+
maxRange: string | number;
|
|
154
|
+
showMark: boolean;
|
|
155
|
+
showTitle: boolean;
|
|
156
|
+
showConfirm: boolean;
|
|
157
|
+
allowSameDay: boolean;
|
|
158
|
+
showSubtitle: boolean;
|
|
159
|
+
showRangePrompt: boolean;
|
|
160
|
+
firstDayOfWeek: string | number;
|
|
161
|
+
}> & Omit<{
|
|
162
|
+
readonly type: import('vant').CalendarType;
|
|
163
|
+
readonly round: boolean;
|
|
164
|
+
readonly show: boolean;
|
|
165
|
+
readonly lazyRender: boolean;
|
|
166
|
+
readonly closeOnClickOverlay: boolean;
|
|
167
|
+
readonly position: import('vant').PopupPosition;
|
|
168
|
+
readonly closeOnPopstate: boolean;
|
|
169
|
+
readonly safeAreaInsetTop: boolean;
|
|
170
|
+
readonly safeAreaInsetBottom: boolean;
|
|
171
|
+
readonly switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
172
|
+
readonly readonly: boolean;
|
|
173
|
+
readonly poppable: boolean;
|
|
174
|
+
readonly maxRange: string | number;
|
|
175
|
+
readonly showMark: boolean;
|
|
176
|
+
readonly showTitle: boolean;
|
|
177
|
+
readonly showConfirm: boolean;
|
|
178
|
+
readonly allowSameDay: boolean;
|
|
179
|
+
readonly showSubtitle: boolean;
|
|
180
|
+
readonly showRangePrompt: boolean;
|
|
181
|
+
readonly firstDayOfWeek: string | number;
|
|
182
|
+
readonly color?: string | undefined;
|
|
183
|
+
readonly title?: string | undefined;
|
|
184
|
+
readonly teleport?: string | import('vue').RendererElement | null | undefined;
|
|
185
|
+
readonly minDate?: Date | undefined;
|
|
186
|
+
readonly maxDate?: Date | undefined;
|
|
187
|
+
readonly defaultDate?: Date | Date[] | null | undefined;
|
|
188
|
+
readonly formatter?: ((item: import('vant').CalendarDayItem) => import('vant').CalendarDayItem) | undefined;
|
|
189
|
+
readonly rowHeight?: string | number | undefined;
|
|
190
|
+
readonly confirmText?: string | undefined;
|
|
191
|
+
readonly rangePrompt?: string | undefined;
|
|
192
|
+
readonly confirmDisabledText?: string | undefined;
|
|
193
|
+
readonly onSelect?: ((...args: any[]) => any) | undefined | undefined;
|
|
194
|
+
readonly "onUpdate:show"?: ((...args: any[]) => any) | undefined | undefined;
|
|
195
|
+
readonly onClickOverlay?: ((...args: any[]) => any) | undefined | undefined;
|
|
196
|
+
readonly onConfirm?: ((...args: any[]) => any) | undefined | undefined;
|
|
197
|
+
readonly onClickDisabledDate?: ((...args: any[]) => any) | undefined | undefined;
|
|
198
|
+
readonly onClickSubtitle?: ((...args: any[]) => any) | undefined | undefined;
|
|
199
|
+
readonly onPanelChange?: ((...args: any[]) => any) | undefined | undefined;
|
|
200
|
+
readonly onUnselect?: ((...args: any[]) => any) | undefined | undefined;
|
|
201
|
+
readonly onMonthShow?: ((...args: any[]) => any) | undefined | undefined;
|
|
202
|
+
readonly onOverRange?: ((...args: any[]) => any) | undefined | undefined;
|
|
203
|
+
} & 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">;
|
|
204
|
+
$attrs: {
|
|
205
|
+
[x: string]: unknown;
|
|
206
|
+
};
|
|
207
|
+
$refs: {
|
|
208
|
+
[x: string]: unknown;
|
|
209
|
+
};
|
|
210
|
+
$slots: Readonly<{
|
|
211
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
214
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
215
|
+
$host: Element | null;
|
|
216
|
+
$emit: (event: "select" | "confirm" | "update:show" | "clickOverlay" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", ...args: any[]) => void;
|
|
217
|
+
$el: any;
|
|
218
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
219
|
+
show: BooleanConstructor;
|
|
220
|
+
type: {
|
|
221
|
+
type: import('vue').PropType<import('vant').CalendarType>;
|
|
222
|
+
default: import('vant').CalendarType;
|
|
223
|
+
};
|
|
224
|
+
switchMode: {
|
|
225
|
+
type: import('vue').PropType<import('vant/lib/calendar/types').CalendarSwitchMode>;
|
|
226
|
+
default: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
227
|
+
};
|
|
228
|
+
title: StringConstructor;
|
|
229
|
+
color: StringConstructor;
|
|
230
|
+
round: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
default: true;
|
|
233
|
+
};
|
|
234
|
+
readonly: BooleanConstructor;
|
|
235
|
+
poppable: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: true;
|
|
238
|
+
};
|
|
239
|
+
maxRange: {
|
|
240
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
241
|
+
default: null;
|
|
242
|
+
};
|
|
243
|
+
position: {
|
|
244
|
+
type: import('vue').PropType<import('vant').PopupPosition>;
|
|
245
|
+
default: import('vant').PopupPosition;
|
|
246
|
+
};
|
|
247
|
+
teleport: import('vue').PropType<import('vue').TeleportProps["to"]>;
|
|
248
|
+
showMark: {
|
|
249
|
+
type: BooleanConstructor;
|
|
250
|
+
default: true;
|
|
251
|
+
};
|
|
252
|
+
showTitle: {
|
|
253
|
+
type: BooleanConstructor;
|
|
254
|
+
default: true;
|
|
255
|
+
};
|
|
256
|
+
formatter: import('vue').PropType<(item: import('vant').CalendarDayItem) => import('vant').CalendarDayItem>;
|
|
257
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
258
|
+
confirmText: StringConstructor;
|
|
259
|
+
rangePrompt: StringConstructor;
|
|
260
|
+
lazyRender: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: true;
|
|
263
|
+
};
|
|
264
|
+
showConfirm: {
|
|
265
|
+
type: BooleanConstructor;
|
|
266
|
+
default: true;
|
|
267
|
+
};
|
|
268
|
+
defaultDate: import('vue').PropType<Date | Date[] | null>;
|
|
269
|
+
allowSameDay: BooleanConstructor;
|
|
270
|
+
showSubtitle: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: true;
|
|
273
|
+
};
|
|
274
|
+
closeOnPopstate: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: true;
|
|
277
|
+
};
|
|
278
|
+
showRangePrompt: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: true;
|
|
281
|
+
};
|
|
282
|
+
confirmDisabledText: StringConstructor;
|
|
283
|
+
closeOnClickOverlay: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: true;
|
|
286
|
+
};
|
|
287
|
+
safeAreaInsetTop: BooleanConstructor;
|
|
288
|
+
safeAreaInsetBottom: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: true;
|
|
291
|
+
};
|
|
292
|
+
minDate: {
|
|
293
|
+
type: DateConstructor;
|
|
294
|
+
validator: (val: unknown) => val is Date;
|
|
295
|
+
};
|
|
296
|
+
maxDate: {
|
|
297
|
+
type: DateConstructor;
|
|
298
|
+
validator: (val: unknown) => val is Date;
|
|
299
|
+
};
|
|
300
|
+
firstDayOfWeek: {
|
|
301
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
302
|
+
default: number;
|
|
303
|
+
validator: (val: number) => boolean;
|
|
304
|
+
};
|
|
305
|
+
}>> & Readonly<{
|
|
306
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
307
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
308
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
|
309
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
310
|
+
onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
|
311
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
|
312
|
+
onPanelChange?: ((...args: any[]) => any) | undefined;
|
|
313
|
+
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
314
|
+
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
315
|
+
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
316
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "confirm" | "update:show" | "clickOverlay" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], string, {
|
|
317
|
+
type: import('vant').CalendarType;
|
|
318
|
+
position: import('vant').PopupPosition;
|
|
319
|
+
round: boolean;
|
|
320
|
+
show: boolean;
|
|
321
|
+
readonly: boolean;
|
|
322
|
+
safeAreaInsetBottom: boolean;
|
|
323
|
+
lazyRender: boolean;
|
|
324
|
+
closeOnClickOverlay: boolean;
|
|
325
|
+
closeOnPopstate: boolean;
|
|
326
|
+
safeAreaInsetTop: boolean;
|
|
327
|
+
switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
328
|
+
poppable: boolean;
|
|
329
|
+
maxRange: string | number;
|
|
330
|
+
showMark: boolean;
|
|
331
|
+
showTitle: boolean;
|
|
332
|
+
showConfirm: boolean;
|
|
333
|
+
allowSameDay: boolean;
|
|
334
|
+
showSubtitle: boolean;
|
|
335
|
+
showRangePrompt: boolean;
|
|
336
|
+
firstDayOfWeek: string | number;
|
|
337
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
338
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
339
|
+
created?: (() => void) | (() => void)[];
|
|
340
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
341
|
+
mounted?: (() => void) | (() => void)[];
|
|
342
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
343
|
+
updated?: (() => void) | (() => void)[];
|
|
344
|
+
activated?: (() => void) | (() => void)[];
|
|
345
|
+
deactivated?: (() => void) | (() => void)[];
|
|
346
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
347
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
348
|
+
destroyed?: (() => void) | (() => void)[];
|
|
349
|
+
unmounted?: (() => void) | (() => void)[];
|
|
350
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
351
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
352
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
353
|
+
};
|
|
354
|
+
$forceUpdate: () => void;
|
|
355
|
+
$nextTick: typeof import('vue').nextTick;
|
|
356
|
+
$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;
|
|
357
|
+
} & Readonly<{
|
|
358
|
+
type: import('vant').CalendarType;
|
|
359
|
+
position: import('vant').PopupPosition;
|
|
360
|
+
round: boolean;
|
|
361
|
+
show: boolean;
|
|
362
|
+
readonly: boolean;
|
|
363
|
+
safeAreaInsetBottom: boolean;
|
|
364
|
+
lazyRender: boolean;
|
|
365
|
+
closeOnClickOverlay: boolean;
|
|
366
|
+
closeOnPopstate: boolean;
|
|
367
|
+
safeAreaInsetTop: boolean;
|
|
368
|
+
switchMode: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
369
|
+
poppable: boolean;
|
|
370
|
+
maxRange: string | number;
|
|
371
|
+
showMark: boolean;
|
|
372
|
+
showTitle: boolean;
|
|
373
|
+
showConfirm: boolean;
|
|
374
|
+
allowSameDay: boolean;
|
|
375
|
+
showSubtitle: boolean;
|
|
376
|
+
showRangePrompt: boolean;
|
|
377
|
+
firstDayOfWeek: string | number;
|
|
378
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
379
|
+
show: BooleanConstructor;
|
|
380
|
+
type: {
|
|
381
|
+
type: import('vue').PropType<import('vant').CalendarType>;
|
|
382
|
+
default: import('vant').CalendarType;
|
|
383
|
+
};
|
|
384
|
+
switchMode: {
|
|
385
|
+
type: import('vue').PropType<import('vant/lib/calendar/types').CalendarSwitchMode>;
|
|
386
|
+
default: import('vant/lib/calendar/types').CalendarSwitchMode;
|
|
387
|
+
};
|
|
388
|
+
title: StringConstructor;
|
|
389
|
+
color: StringConstructor;
|
|
390
|
+
round: {
|
|
391
|
+
type: BooleanConstructor;
|
|
392
|
+
default: true;
|
|
393
|
+
};
|
|
394
|
+
readonly: BooleanConstructor;
|
|
395
|
+
poppable: {
|
|
396
|
+
type: BooleanConstructor;
|
|
397
|
+
default: true;
|
|
398
|
+
};
|
|
399
|
+
maxRange: {
|
|
400
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
401
|
+
default: null;
|
|
402
|
+
};
|
|
403
|
+
position: {
|
|
404
|
+
type: import('vue').PropType<import('vant').PopupPosition>;
|
|
405
|
+
default: import('vant').PopupPosition;
|
|
406
|
+
};
|
|
407
|
+
teleport: import('vue').PropType<import('vue').TeleportProps["to"]>;
|
|
408
|
+
showMark: {
|
|
409
|
+
type: BooleanConstructor;
|
|
410
|
+
default: true;
|
|
411
|
+
};
|
|
412
|
+
showTitle: {
|
|
413
|
+
type: BooleanConstructor;
|
|
414
|
+
default: true;
|
|
415
|
+
};
|
|
416
|
+
formatter: import('vue').PropType<(item: import('vant').CalendarDayItem) => import('vant').CalendarDayItem>;
|
|
417
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
418
|
+
confirmText: StringConstructor;
|
|
419
|
+
rangePrompt: StringConstructor;
|
|
420
|
+
lazyRender: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default: true;
|
|
423
|
+
};
|
|
424
|
+
showConfirm: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
default: true;
|
|
427
|
+
};
|
|
428
|
+
defaultDate: import('vue').PropType<Date | Date[] | null>;
|
|
429
|
+
allowSameDay: BooleanConstructor;
|
|
430
|
+
showSubtitle: {
|
|
431
|
+
type: BooleanConstructor;
|
|
432
|
+
default: true;
|
|
433
|
+
};
|
|
434
|
+
closeOnPopstate: {
|
|
435
|
+
type: BooleanConstructor;
|
|
436
|
+
default: true;
|
|
437
|
+
};
|
|
438
|
+
showRangePrompt: {
|
|
439
|
+
type: BooleanConstructor;
|
|
440
|
+
default: true;
|
|
441
|
+
};
|
|
442
|
+
confirmDisabledText: StringConstructor;
|
|
443
|
+
closeOnClickOverlay: {
|
|
444
|
+
type: BooleanConstructor;
|
|
445
|
+
default: true;
|
|
446
|
+
};
|
|
447
|
+
safeAreaInsetTop: BooleanConstructor;
|
|
448
|
+
safeAreaInsetBottom: {
|
|
449
|
+
type: BooleanConstructor;
|
|
450
|
+
default: true;
|
|
451
|
+
};
|
|
452
|
+
minDate: {
|
|
453
|
+
type: DateConstructor;
|
|
454
|
+
validator: (val: unknown) => val is Date;
|
|
455
|
+
};
|
|
456
|
+
maxDate: {
|
|
457
|
+
type: DateConstructor;
|
|
458
|
+
validator: (val: unknown) => val is Date;
|
|
459
|
+
};
|
|
460
|
+
firstDayOfWeek: {
|
|
461
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
462
|
+
default: number;
|
|
463
|
+
validator: (val: number) => boolean;
|
|
464
|
+
};
|
|
465
|
+
}>> & Readonly<{
|
|
466
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
467
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
468
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
|
469
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
470
|
+
onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
|
471
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
|
472
|
+
onPanelChange?: ((...args: any[]) => any) | undefined;
|
|
473
|
+
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
474
|
+
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
475
|
+
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
476
|
+
}>, "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 & {} & {
|
|
477
|
+
$props: {
|
|
478
|
+
onClick?: (...args: any[]) => void;
|
|
479
|
+
};
|
|
480
|
+
}) | null;
|
|
481
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
482
|
+
P: {};
|
|
483
|
+
B: {};
|
|
484
|
+
D: {};
|
|
485
|
+
C: {};
|
|
486
|
+
M: {};
|
|
487
|
+
Defaults: {};
|
|
488
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
489
|
+
visible: {
|
|
490
|
+
type: BooleanConstructor;
|
|
491
|
+
default: boolean;
|
|
492
|
+
};
|
|
493
|
+
timePickerType: {
|
|
494
|
+
type: StringConstructor;
|
|
495
|
+
default: string;
|
|
496
|
+
};
|
|
497
|
+
defaultValue: {
|
|
498
|
+
type: (DateConstructor | {
|
|
499
|
+
(arrayLength: number): Date[];
|
|
500
|
+
(...items: Date[]): Date[];
|
|
501
|
+
new (arrayLength: number): Date[];
|
|
502
|
+
new (...items: Date[]): Date[];
|
|
503
|
+
isArray(arg: any): arg is any[];
|
|
504
|
+
readonly prototype: any[];
|
|
505
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
506
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
507
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
508
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
509
|
+
of<T>(...items: T[]): T[];
|
|
510
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
511
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
512
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
513
|
+
})[];
|
|
514
|
+
default: Date;
|
|
515
|
+
};
|
|
516
|
+
minDate: {
|
|
517
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
518
|
+
default: Date;
|
|
519
|
+
};
|
|
520
|
+
maxDate: {
|
|
521
|
+
type: (StringConstructor | NumberConstructor | DateConstructor)[];
|
|
522
|
+
default: Date;
|
|
523
|
+
};
|
|
524
|
+
valueFormat: {
|
|
525
|
+
type: StringConstructor;
|
|
526
|
+
default: string;
|
|
527
|
+
};
|
|
528
|
+
}>> & Readonly<{
|
|
529
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
530
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
531
|
+
}>, {
|
|
532
|
+
toPrevDate: () => void;
|
|
533
|
+
toNextDate: () => void;
|
|
534
|
+
}, {}, {}, {}, {
|
|
535
|
+
visible: boolean;
|
|
536
|
+
timePickerType: string;
|
|
537
|
+
defaultValue: Date | Date[];
|
|
538
|
+
minDate: string | number | Date;
|
|
539
|
+
maxDate: string | number | Date;
|
|
540
|
+
valueFormat: string;
|
|
541
|
+
}> | null;
|
|
542
|
+
}, HTMLDivElement>;
|
|
543
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
tip: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
tip: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
tip: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|