@qin-ui/vant-pro 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/es/index.d.ts ADDED
@@ -0,0 +1,1054 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { Area } from 'vant';
4
+ import { Attrs } from 'vue';
5
+ import { Button } from 'vant';
6
+ import { Cascader } from 'vant';
7
+ import { CellArrowDirection } from 'vant';
8
+ import { CellSize } from 'vant';
9
+ import { CheckboxGroup } from 'vant';
10
+ import { Component } from 'vue';
11
+ import { ComponentCustomProperties } from 'vue';
12
+ import { ComponentCustomProps } from 'vue';
13
+ import { ComponentExposed } from 'vue-component-type-helpers';
14
+ import { ComponentInternalInstance } from 'vue';
15
+ import { ComponentOptionsBase } from 'vue';
16
+ import { ComponentOptionsMixin } from 'vue';
17
+ import { ComponentProps } from 'vue-component-type-helpers';
18
+ import { ComponentProvideOptions } from 'vue';
19
+ import { ComponentPublicInstance } from 'vue';
20
+ import { ComponentSlots } from 'vue-component-type-helpers';
21
+ import { ComputedRef } from 'vue';
22
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
23
+ import { CSSProperties } from 'vue';
24
+ import { DatePicker } from 'vant';
25
+ import { DebuggerEvent } from 'vue';
26
+ import { DefineComponent } from 'vue';
27
+ import { ExtractPropTypes } from 'vue';
28
+ import { Field as Field_2 } from 'vant';
29
+ import { FieldAutosizeConfig } from 'vant';
30
+ import { FieldClearTrigger } from 'vant';
31
+ import { FieldEnterKeyHint } from 'vant';
32
+ import { FieldFormatTrigger } from 'vant';
33
+ import { FieldInstance } from 'vant';
34
+ import { FieldProps } from 'vant';
35
+ import { FieldRule } from 'vant';
36
+ import { FieldTextAlign } from 'vant';
37
+ import { FieldType } from 'vant';
38
+ import { FormInstance } from 'vant';
39
+ import { FormProps } from 'vant';
40
+ import { GlobalComponents } from 'vue';
41
+ import { GlobalDirectives } from 'vue';
42
+ import { HTMLAttributes } from 'vue';
43
+ import { InjectionKey } from 'vue';
44
+ import { JSX } from 'vue/jsx-runtime';
45
+ import { MaybeRef } from 'vue';
46
+ import { nextTick } from 'vue';
47
+ import { OnCleanup } from '@vue/reactivity';
48
+ import { Picker } from 'vant';
49
+ import { Plugin as Plugin_2 } from 'vue';
50
+ import { Popup } from 'vant';
51
+ import { PropType } from 'vue';
52
+ import { PublicProps } from 'vue';
53
+ import { RadioGroup } from 'vant';
54
+ import { Rate } from 'vant';
55
+ import { Raw } from 'vue';
56
+ import { Reactive } from 'vue';
57
+ import { Ref } from 'vue';
58
+ import { ShallowUnwrapRef } from 'vue';
59
+ import { Signature } from 'vant';
60
+ import { Slider } from 'vant';
61
+ import { Slot } from 'vue';
62
+ import { Stepper } from 'vant';
63
+ import { Switch } from 'vant';
64
+ import { TimePicker } from 'vant';
65
+ import { Uploader } from 'vant';
66
+ import { VNode } from 'vue';
67
+ import { VNodeProps } from 'vue';
68
+ import { VNodeTypes } from 'vue';
69
+ import { WatchOptions } from 'vue';
70
+ import { WatchStopHandle } from 'vue';
71
+
72
+ declare const __VLS_component: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
73
+
74
+ declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
75
+
76
+ declare const __VLS_component_3: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
77
+
78
+ declare type __VLS_PrettifyLocal<T> = {
79
+ [K in keyof T]: T[K];
80
+ } & {};
81
+
82
+ declare type __VLS_Props = {
83
+ path?: string | number | (string | number)[];
84
+ };
85
+
86
+ declare function __VLS_template(): {
87
+ attrs: Partial<{}>;
88
+ slots: {
89
+ default?(_: {}): any;
90
+ default?(_: {}): any;
91
+ };
92
+ refs: {};
93
+ rootEl: any;
94
+ };
95
+
96
+ declare function __VLS_template_2(): {
97
+ attrs: Partial<{}>;
98
+ slots: {
99
+ default?(_: {
100
+ path: string | undefined;
101
+ }): any;
102
+ };
103
+ refs: {};
104
+ rootEl: any;
105
+ };
106
+
107
+ declare function __VLS_template_3(): {
108
+ attrs: Partial<{}>;
109
+ slots: {
110
+ default?(_: {
111
+ componentProps: Record<string, any>;
112
+ }): any;
113
+ };
114
+ refs: {};
115
+ rootEl: any;
116
+ };
117
+
118
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
119
+
120
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
121
+
122
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
123
+
124
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
125
+ new (): {
126
+ $slots: S;
127
+ };
128
+ };
129
+
130
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
131
+ new (): {
132
+ $slots: S;
133
+ };
134
+ };
135
+
136
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
137
+ new (): {
138
+ $slots: S;
139
+ };
140
+ };
141
+
142
+ declare type AdditionalMethods<FormItemInstance> = {
143
+ /**
144
+ * @description 获取FormItem实例的方法
145
+ */
146
+ getFormItemRef?: () => FormItemInstance;
147
+ /**
148
+ * @description 获取传入FormItem组件的属性
149
+ */
150
+ getFormItemComputedProps?: () => Readonly<{
151
+ [x: string]: any;
152
+ }>;
153
+ /**
154
+ * @description 获取组件实例的方法
155
+ */
156
+ getComponentRef?: () => any;
157
+ /**
158
+ * @description 获取传入Component组件的属性
159
+ */
160
+ getComponentComputedProps?: () => Readonly<{
161
+ disabled?: boolean;
162
+ [x: string]: any;
163
+ }>;
164
+ };
165
+
166
+ declare type AllowStringKey<T, Prefix extends string = ''> = {
167
+ [K in keyof T as string extends K ? never : number extends K ? never : K extends string ? K : never]: T[K] extends (infer U)[] ? `${Prefix}${K & string}` | (IsRecord<U> extends true ? AllowStringKey<U, `${Prefix}${K & string}[index].`> : never) : IsRecord<T[K]> extends true ? `${Prefix}${K & string}` | AllowStringKey<T[K], `${Prefix}${K & string}.`> : `${Prefix}${K & string}`;
168
+ } extends infer Obj ? Obj[keyof Obj] : never;
169
+
170
+ export declare type Base<D extends Data = Data> = BaseWithFields<D> | BaseWithoutFields<D>;
171
+
172
+ declare type BaseCommon<D extends Data = Data> = {
173
+ /**
174
+ * @description 字段标识namePath, 同name
175
+ */
176
+ path?: Path<D>;
177
+ /**
178
+ * @description 字段是否隐藏
179
+ */
180
+ hidden?: boolean;
181
+ /**
182
+ * @description 字段是否禁用
183
+ */
184
+ disabled?: boolean;
185
+ /**
186
+ * @description 字段中文名称,支持字符串或组件
187
+ */
188
+ label?: SlotComponentType;
189
+ /**
190
+ * @description 字段插槽配置
191
+ */
192
+ slots?: Slots;
193
+ /**
194
+ * @description 嵌套 fields 容器包裹组件
195
+ */
196
+ fieldContainer?: ContainerComponent;
197
+ /**
198
+ * @description 额外的自定义属性,不会被当作组件参数
199
+ */
200
+ extraProps?: Record<string, any>;
201
+ };
202
+
203
+ export declare type BaseComponentMap = {
204
+ field: typeof Field_2;
205
+ switch: typeof Switch;
206
+ stepper: typeof Stepper;
207
+ rate: typeof Rate;
208
+ slider: typeof Slider;
209
+ uploader: typeof Uploader;
210
+ 'checkbox-group': typeof CheckboxGroup;
211
+ 'radio-group': typeof RadioGroup;
212
+ picker: typeof Picker;
213
+ 'date-picker': typeof DatePicker;
214
+ 'time-picker': typeof TimePicker;
215
+ cascader: typeof Cascader;
216
+ area: typeof Area;
217
+ signature: typeof Signature;
218
+ button: typeof Button;
219
+ };
220
+
221
+ export declare const BaseField: DefineComponent<Props, {
222
+ getComponentRef: () => any;
223
+ getComponentComputedProps: () => any;
224
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
225
+ fieldRef: ({
226
+ $: ComponentInternalInstance;
227
+ $data: {};
228
+ $props: Partial<{
229
+ type: FieldType;
230
+ tag: keyof HTMLElementTagNameMap;
231
+ center: boolean;
232
+ autofocus: boolean;
233
+ disabled: boolean;
234
+ border: boolean;
235
+ isLink: boolean;
236
+ required: boolean | "auto";
237
+ clickable: boolean | null;
238
+ clearable: boolean;
239
+ clearIcon: string;
240
+ modelValue: string | number;
241
+ clearTrigger: FieldClearTrigger;
242
+ formatTrigger: FieldFormatTrigger;
243
+ spellcheck: boolean;
244
+ error: boolean;
245
+ readonly: boolean;
246
+ showWordLimit: boolean;
247
+ colon: boolean;
248
+ }> & Omit<{
249
+ readonly tag: keyof HTMLElementTagNameMap;
250
+ readonly center: boolean;
251
+ readonly isLink: boolean;
252
+ readonly border: boolean;
253
+ readonly required: boolean | "auto";
254
+ readonly clickable: boolean | null;
255
+ readonly autofocus: boolean;
256
+ readonly clearable: boolean;
257
+ readonly clearIcon: string;
258
+ readonly modelValue: string | number;
259
+ readonly clearTrigger: FieldClearTrigger;
260
+ readonly formatTrigger: FieldFormatTrigger;
261
+ readonly spellcheck: boolean;
262
+ readonly error: boolean;
263
+ readonly disabled: boolean;
264
+ readonly readonly: boolean;
265
+ readonly type: FieldType;
266
+ readonly showWordLimit: boolean;
267
+ readonly colon: boolean;
268
+ readonly icon?: string | undefined;
269
+ readonly size?: CellSize | undefined;
270
+ readonly title?: string | number | undefined;
271
+ readonly value?: string | number | undefined;
272
+ readonly label?: string | number | undefined;
273
+ readonly iconPrefix?: string | undefined;
274
+ readonly valueClass?: unknown;
275
+ readonly labelClass?: unknown;
276
+ readonly titleClass?: unknown;
277
+ readonly titleStyle?: string | CSSProperties | undefined;
278
+ readonly arrowDirection?: CellArrowDirection | undefined;
279
+ readonly id?: string | undefined;
280
+ readonly name?: string | undefined;
281
+ readonly leftIcon?: string | undefined;
282
+ readonly rightIcon?: string | undefined;
283
+ readonly maxlength?: string | number | undefined;
284
+ readonly max?: number | undefined;
285
+ readonly min?: number | undefined;
286
+ readonly formatter?: ((value: string) => string) | undefined;
287
+ readonly inputAlign?: FieldTextAlign | undefined;
288
+ readonly placeholder?: string | undefined;
289
+ readonly autocomplete?: string | undefined;
290
+ readonly autocapitalize?: string | undefined;
291
+ readonly autocorrect?: string | undefined;
292
+ readonly errorMessage?: string | undefined;
293
+ readonly enterkeyhint?: FieldEnterKeyHint | undefined;
294
+ readonly inputmode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
295
+ readonly rows?: string | number | undefined;
296
+ readonly rules?: FieldRule[] | undefined;
297
+ readonly autosize?: boolean | FieldAutosizeConfig | undefined;
298
+ readonly labelWidth?: string | number | undefined;
299
+ readonly labelAlign?: FieldTextAlign | undefined;
300
+ readonly errorMessageAlign?: FieldTextAlign | undefined;
301
+ readonly onFocus?: ((...args: any[]) => any) | undefined | undefined;
302
+ readonly onBlur?: ((...args: any[]) => any) | undefined | undefined;
303
+ readonly onKeypress?: ((...args: any[]) => any) | undefined | undefined;
304
+ readonly onClear?: ((...args: any[]) => any) | undefined | undefined;
305
+ readonly onClickInput?: ((...args: any[]) => any) | undefined | undefined;
306
+ readonly onEndValidate?: ((...args: any[]) => any) | undefined | undefined;
307
+ readonly onStartValidate?: ((...args: any[]) => any) | undefined | undefined;
308
+ readonly onClickLeftIcon?: ((...args: any[]) => any) | undefined | undefined;
309
+ readonly onClickRightIcon?: ((...args: any[]) => any) | undefined | undefined;
310
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined | undefined;
311
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "tag" | "center" | "isLink" | "border" | "required" | "clickable" | "autofocus" | "clearable" | "clearIcon" | "modelValue" | "clearTrigger" | "formatTrigger" | "spellcheck" | "error" | "disabled" | "readonly" | "type" | "showWordLimit" | "colon">;
312
+ $attrs: Attrs;
313
+ $refs: {
314
+ [x: string]: unknown;
315
+ };
316
+ $slots: Readonly<{
317
+ [name: string]: Slot<any> | undefined;
318
+ }>;
319
+ $root: ComponentPublicInstance | null;
320
+ $parent: ComponentPublicInstance | null;
321
+ $host: Element | null;
322
+ $emit: (event: "focus" | "clear" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", ...args: any[]) => void;
323
+ $el: any;
324
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
325
+ tag: {
326
+ type: PropType<keyof HTMLElementTagNameMap>;
327
+ default: keyof HTMLElementTagNameMap;
328
+ };
329
+ icon: StringConstructor;
330
+ size: PropType<CellSize>;
331
+ title: (NumberConstructor | StringConstructor)[];
332
+ value: (NumberConstructor | StringConstructor)[];
333
+ label: (NumberConstructor | StringConstructor)[];
334
+ center: BooleanConstructor;
335
+ isLink: BooleanConstructor;
336
+ border: {
337
+ type: BooleanConstructor;
338
+ default: true;
339
+ };
340
+ iconPrefix: StringConstructor;
341
+ valueClass: PropType<unknown>;
342
+ labelClass: PropType<unknown>;
343
+ titleClass: PropType<unknown>;
344
+ titleStyle: PropType<string | CSSProperties>;
345
+ arrowDirection: PropType<CellArrowDirection>;
346
+ required: {
347
+ type: PropType<boolean | "auto">;
348
+ default: null;
349
+ };
350
+ clickable: {
351
+ type: PropType<boolean | null>;
352
+ default: null;
353
+ };
354
+ } & {
355
+ id: StringConstructor;
356
+ name: StringConstructor;
357
+ leftIcon: StringConstructor;
358
+ rightIcon: StringConstructor;
359
+ autofocus: BooleanConstructor;
360
+ clearable: BooleanConstructor;
361
+ maxlength: (NumberConstructor | StringConstructor)[];
362
+ max: NumberConstructor;
363
+ min: NumberConstructor;
364
+ formatter: PropType<(value: string) => string>;
365
+ clearIcon: {
366
+ type: PropType<string>;
367
+ default: string;
368
+ };
369
+ modelValue: {
370
+ type: (NumberConstructor | StringConstructor)[];
371
+ default: string;
372
+ };
373
+ inputAlign: PropType<FieldTextAlign>;
374
+ placeholder: StringConstructor;
375
+ autocomplete: StringConstructor;
376
+ autocapitalize: StringConstructor;
377
+ autocorrect: StringConstructor;
378
+ errorMessage: StringConstructor;
379
+ enterkeyhint: PropType<FieldEnterKeyHint>;
380
+ clearTrigger: {
381
+ type: PropType<FieldClearTrigger>;
382
+ default: FieldClearTrigger;
383
+ };
384
+ formatTrigger: {
385
+ type: PropType<FieldFormatTrigger>;
386
+ default: FieldFormatTrigger;
387
+ };
388
+ spellcheck: {
389
+ type: BooleanConstructor;
390
+ default: null;
391
+ };
392
+ error: {
393
+ type: BooleanConstructor;
394
+ default: null;
395
+ };
396
+ disabled: {
397
+ type: BooleanConstructor;
398
+ default: null;
399
+ };
400
+ readonly: {
401
+ type: BooleanConstructor;
402
+ default: null;
403
+ };
404
+ inputmode: PropType<HTMLAttributes["inputmode"]>;
405
+ } & {
406
+ rows: (NumberConstructor | StringConstructor)[];
407
+ type: {
408
+ type: PropType<FieldType>;
409
+ default: FieldType;
410
+ };
411
+ rules: PropType<FieldRule[]>;
412
+ autosize: PropType<boolean | FieldAutosizeConfig>;
413
+ labelWidth: (NumberConstructor | StringConstructor)[];
414
+ labelClass: PropType<unknown>;
415
+ labelAlign: PropType<FieldTextAlign>;
416
+ showWordLimit: BooleanConstructor;
417
+ errorMessageAlign: PropType<FieldTextAlign>;
418
+ colon: {
419
+ type: BooleanConstructor;
420
+ default: null;
421
+ };
422
+ }>> & Readonly<{
423
+ onFocus?: ((...args: any[]) => any) | undefined;
424
+ onBlur?: ((...args: any[]) => any) | undefined;
425
+ onKeypress?: ((...args: any[]) => any) | undefined;
426
+ onClear?: ((...args: any[]) => any) | undefined;
427
+ onClickInput?: ((...args: any[]) => any) | undefined;
428
+ onEndValidate?: ((...args: any[]) => any) | undefined;
429
+ onStartValidate?: ((...args: any[]) => any) | undefined;
430
+ onClickLeftIcon?: ((...args: any[]) => any) | undefined;
431
+ onClickRightIcon?: ((...args: any[]) => any) | undefined;
432
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
433
+ }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("focus" | "clear" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], string, {
434
+ type: FieldType;
435
+ tag: keyof HTMLElementTagNameMap;
436
+ center: boolean;
437
+ autofocus: boolean;
438
+ disabled: boolean;
439
+ border: boolean;
440
+ isLink: boolean;
441
+ required: boolean | "auto";
442
+ clickable: boolean | null;
443
+ clearable: boolean;
444
+ clearIcon: string;
445
+ modelValue: string | number;
446
+ clearTrigger: FieldClearTrigger;
447
+ formatTrigger: FieldFormatTrigger;
448
+ spellcheck: boolean;
449
+ error: boolean;
450
+ readonly: boolean;
451
+ showWordLimit: boolean;
452
+ colon: boolean;
453
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
454
+ beforeCreate?: (() => void) | (() => void)[];
455
+ created?: (() => void) | (() => void)[];
456
+ beforeMount?: (() => void) | (() => void)[];
457
+ mounted?: (() => void) | (() => void)[];
458
+ beforeUpdate?: (() => void) | (() => void)[];
459
+ updated?: (() => void) | (() => void)[];
460
+ activated?: (() => void) | (() => void)[];
461
+ deactivated?: (() => void) | (() => void)[];
462
+ beforeDestroy?: (() => void) | (() => void)[];
463
+ beforeUnmount?: (() => void) | (() => void)[];
464
+ destroyed?: (() => void) | (() => void)[];
465
+ unmounted?: (() => void) | (() => void)[];
466
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
467
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
468
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
469
+ };
470
+ $forceUpdate: () => void;
471
+ $nextTick: nextTick;
472
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
473
+ } & Readonly<{
474
+ type: FieldType;
475
+ tag: keyof HTMLElementTagNameMap;
476
+ center: boolean;
477
+ autofocus: boolean;
478
+ disabled: boolean;
479
+ border: boolean;
480
+ isLink: boolean;
481
+ required: boolean | "auto";
482
+ clickable: boolean | null;
483
+ clearable: boolean;
484
+ clearIcon: string;
485
+ modelValue: string | number;
486
+ clearTrigger: FieldClearTrigger;
487
+ formatTrigger: FieldFormatTrigger;
488
+ spellcheck: boolean;
489
+ error: boolean;
490
+ readonly: boolean;
491
+ showWordLimit: boolean;
492
+ colon: boolean;
493
+ }> & Omit<Readonly<ExtractPropTypes< {
494
+ tag: {
495
+ type: PropType<keyof HTMLElementTagNameMap>;
496
+ default: keyof HTMLElementTagNameMap;
497
+ };
498
+ icon: StringConstructor;
499
+ size: PropType<CellSize>;
500
+ title: (NumberConstructor | StringConstructor)[];
501
+ value: (NumberConstructor | StringConstructor)[];
502
+ label: (NumberConstructor | StringConstructor)[];
503
+ center: BooleanConstructor;
504
+ isLink: BooleanConstructor;
505
+ border: {
506
+ type: BooleanConstructor;
507
+ default: true;
508
+ };
509
+ iconPrefix: StringConstructor;
510
+ valueClass: PropType<unknown>;
511
+ labelClass: PropType<unknown>;
512
+ titleClass: PropType<unknown>;
513
+ titleStyle: PropType<string | CSSProperties>;
514
+ arrowDirection: PropType<CellArrowDirection>;
515
+ required: {
516
+ type: PropType<boolean | "auto">;
517
+ default: null;
518
+ };
519
+ clickable: {
520
+ type: PropType<boolean | null>;
521
+ default: null;
522
+ };
523
+ } & {
524
+ id: StringConstructor;
525
+ name: StringConstructor;
526
+ leftIcon: StringConstructor;
527
+ rightIcon: StringConstructor;
528
+ autofocus: BooleanConstructor;
529
+ clearable: BooleanConstructor;
530
+ maxlength: (NumberConstructor | StringConstructor)[];
531
+ max: NumberConstructor;
532
+ min: NumberConstructor;
533
+ formatter: PropType<(value: string) => string>;
534
+ clearIcon: {
535
+ type: PropType<string>;
536
+ default: string;
537
+ };
538
+ modelValue: {
539
+ type: (NumberConstructor | StringConstructor)[];
540
+ default: string;
541
+ };
542
+ inputAlign: PropType<FieldTextAlign>;
543
+ placeholder: StringConstructor;
544
+ autocomplete: StringConstructor;
545
+ autocapitalize: StringConstructor;
546
+ autocorrect: StringConstructor;
547
+ errorMessage: StringConstructor;
548
+ enterkeyhint: PropType<FieldEnterKeyHint>;
549
+ clearTrigger: {
550
+ type: PropType<FieldClearTrigger>;
551
+ default: FieldClearTrigger;
552
+ };
553
+ formatTrigger: {
554
+ type: PropType<FieldFormatTrigger>;
555
+ default: FieldFormatTrigger;
556
+ };
557
+ spellcheck: {
558
+ type: BooleanConstructor;
559
+ default: null;
560
+ };
561
+ error: {
562
+ type: BooleanConstructor;
563
+ default: null;
564
+ };
565
+ disabled: {
566
+ type: BooleanConstructor;
567
+ default: null;
568
+ };
569
+ readonly: {
570
+ type: BooleanConstructor;
571
+ default: null;
572
+ };
573
+ inputmode: PropType<HTMLAttributes["inputmode"]>;
574
+ } & {
575
+ rows: (NumberConstructor | StringConstructor)[];
576
+ type: {
577
+ type: PropType<FieldType>;
578
+ default: FieldType;
579
+ };
580
+ rules: PropType<FieldRule[]>;
581
+ autosize: PropType<boolean | FieldAutosizeConfig>;
582
+ labelWidth: (NumberConstructor | StringConstructor)[];
583
+ labelClass: PropType<unknown>;
584
+ labelAlign: PropType<FieldTextAlign>;
585
+ showWordLimit: BooleanConstructor;
586
+ errorMessageAlign: PropType<FieldTextAlign>;
587
+ colon: {
588
+ type: BooleanConstructor;
589
+ default: null;
590
+ };
591
+ }>> & Readonly<{
592
+ onFocus?: ((...args: any[]) => any) | undefined;
593
+ onBlur?: ((...args: any[]) => any) | undefined;
594
+ onKeypress?: ((...args: any[]) => any) | undefined;
595
+ onClear?: ((...args: any[]) => any) | undefined;
596
+ onClickInput?: ((...args: any[]) => any) | undefined;
597
+ onEndValidate?: ((...args: any[]) => any) | undefined;
598
+ onStartValidate?: ((...args: any[]) => any) | undefined;
599
+ onClickLeftIcon?: ((...args: any[]) => any) | undefined;
600
+ onClickRightIcon?: ((...args: any[]) => any) | undefined;
601
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
602
+ }>, "tag" | "center" | "isLink" | "border" | "required" | "clickable" | "autofocus" | "clearable" | "clearIcon" | "modelValue" | "clearTrigger" | "formatTrigger" | "spellcheck" | "error" | "disabled" | "readonly" | "type" | "showWordLimit" | "colon"> & {} & {} & ComponentCustomProperties & {} & {
603
+ $props: {
604
+ onClick?: (...args: any[]) => void;
605
+ };
606
+ }) | null;
607
+ componentRef: unknown;
608
+ }, any>;
609
+
610
+ declare interface BaseField_2<D extends Data = Data> {
611
+ path?: Path<D> | any;
612
+ name?: any;
613
+ fields?: any[];
614
+ [key: string]: any;
615
+ }
616
+
617
+ export declare const BaseForm: <F extends Form<any> = Form>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
618
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & {
619
+ form?: F;
620
+ } & Partial<{}>> & PublicProps;
621
+ expose(exposed: ShallowUnwrapRef< {}>): void;
622
+ attrs: any;
623
+ slots: Readonly<Partial<Record<F extends Form<infer D extends Data> ? Path<D> : string, Slot<VModelProps & {
624
+ path?: string;
625
+ } & Data & {
626
+ [x: string]: any;
627
+ disabled?: boolean;
628
+ }>> & {
629
+ default: Slot;
630
+ }>> & Partial<Record<F extends Form<infer D extends Data> ? Path<D> : string, Slot<VModelProps & {
631
+ path?: string;
632
+ } & Data & {
633
+ [x: string]: any;
634
+ disabled?: boolean;
635
+ }>> & {
636
+ default: Slot;
637
+ }>;
638
+ emit: {};
639
+ }>) => VNode & {
640
+ __ctx?: Awaited<typeof __VLS_setup>;
641
+ };
642
+
643
+ export declare const BaseFormItem: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
644
+
645
+ declare type BaseWithFields<D extends Data = Data> = BaseCommon<D> & {
646
+ /**
647
+ * @description 嵌套子字段配置 (Vant 中主要用于分组,或者通过 CellGroup 包裹)
648
+ */
649
+ fields: Fields<D>;
650
+ component?: never;
651
+ componentStyle?: never;
652
+ componentClass?: never;
653
+ componentContainer?: never;
654
+ fieldStyle?: never;
655
+ fieldClass?: never;
656
+ valueFormatter?: never;
657
+ displayFormatter?: never;
658
+ modelProp?: never;
659
+ popup?: never;
660
+ };
661
+
662
+ declare type BaseWithoutFields<D extends Data = Data> = BaseCommon<D> & {
663
+ fields?: undefined;
664
+ /**
665
+ * @description 表单字段component样式属性
666
+ */
667
+ componentStyle?: CSSProperties;
668
+ /**
669
+ * @description 表单字段component样式类名
670
+ */
671
+ componentClass?: any;
672
+ /**
673
+ * @description 表单字段外层 van-field 样式属性
674
+ */
675
+ fieldStyle?: CSSProperties;
676
+ /**
677
+ * @description 表单字段外层 van-field 样式类名
678
+ */
679
+ fieldClass?: any;
680
+ /**
681
+ * @description 字段component容器包裹组件
682
+ */
683
+ componentContainer?: ContainerComponent;
684
+ /**
685
+ * @description 字段值处理函数,在onUpdateValue前执行
686
+ */
687
+ valueFormatter?: ValueFormatter;
688
+ /**
689
+ * @description 针对 Popup 展现形式的组件,将选中值转化为输入框展示文字
690
+ */
691
+ displayFormatter?: DisplayFormatter;
692
+ /**
693
+ * @description 组件v-model双向绑定更新属性名
694
+ */
695
+ modelProp?: string;
696
+ /**
697
+ * @description 是否通过 Popup 弹窗展示该组件(为 true 或传递 PopupProps 配置对象时开启)
698
+ */
699
+ popup?: boolean | Partial<PopupProps>;
700
+ };
701
+
702
+ export declare interface ComponentMap {
703
+ }
704
+
705
+ export declare const componentMap: BaseComponentMap;
706
+
707
+ export declare type ComponentName = keyof BaseComponentMap | keyof ComponentMap | 'custom';
708
+
709
+ export declare type ComponentVars = Partial<RequiredComponentVars>;
710
+
711
+ /**
712
+ * @description 容器组件类型
713
+ */
714
+ export declare type ContainerComponent = Component<PathProps> | DefineComponent<PathProps> | VNodeTypes | symbol;
715
+
716
+ export declare const ContainerFragment: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
717
+
718
+ declare type Data = Record<string, any>;
719
+
720
+ declare type DeepPartial<T> = T extends object ? {
721
+ [P in keyof T]?: DeepPartial<T[P]>;
722
+ } : T;
723
+
724
+ declare const _default: {
725
+ install(app: App): void;
726
+ };
727
+ export default _default;
728
+
729
+ export declare type DisplayFormatter = (val: any) => string;
730
+
731
+ export declare const ensureInjectConfig: (key: string) => InjectConfigEntry;
732
+
733
+ declare type ExtendWithAny<D> = {
734
+ [K in keyof D]: IsRecord<D[K]> extends true ? ExtendWithAny<D[K]> : D[K];
735
+ } & Record<string, any>;
736
+
737
+ export declare type Field<C extends ComponentName = ComponentName, D extends Data = Data> = FieldTypeMap<D>[C] | WithFields<D>;
738
+
739
+ declare type FieldFindBy<D extends Data, F extends BaseField_2<D> = BaseField_2<D>> = (field: Readonly<F>) => boolean;
740
+
741
+ export declare type Fields<D extends Data = Data> = Array<Field<ComponentName, D>>;
742
+
743
+ /**
744
+ * @type {FieldTypeMap} 字段类型集合
745
+ */
746
+ export declare type FieldTypeMap<D extends Data = Data> = {
747
+ [K in ComponentName]: K extends 'custom' ? WithCommon<{
748
+ slots?: Slots;
749
+ [x: string]: any;
750
+ }, D> & {
751
+ component?: RenderComponentType | Raw<RenderComponentType>;
752
+ } : WithComponent<GetComponentType<K>, D> & {
753
+ component?: K;
754
+ };
755
+ };
756
+
757
+ export declare type Form<D extends Data = Data, F extends Field<ComponentName, D> = Field<ComponentName, D>> = Form_2<D, F, FormInstance> & {
758
+ formPopup: FormPopup;
759
+ };
760
+
761
+ declare type Form_2<D extends Data = Data, F extends BaseField_2<D> = BaseField_2<D>, I = any> = ReturnType<typeof useFormData<D>> & ReturnType<typeof useFields_2<D, F>> & ReturnType<typeof useFormRef_2<I>>;
762
+
763
+ export { FormInstance }
764
+
765
+ export declare type FormPopup = {
766
+ props: PopupProps;
767
+ open: (path: string) => void;
768
+ close: () => void;
769
+ updateProps: (props: Partial<PopupProps>) => void;
770
+ visible: ComputedRef<boolean>;
771
+ popupFieldPath: Ref<string | undefined>;
772
+ popupFieldValue: Ref<any | undefined>;
773
+ };
774
+
775
+ declare type FP<T extends Record<string, any>> = Partial<T & Pick<Base, 'valueFormatter' | 'displayFormatter' | 'componentContainer' | 'modelProp' | 'popup'> & AllowedComponentProps>;
776
+
777
+ export declare type GetComponentType<K extends ComponentName> = K extends keyof ComponentMap ? ComponentMap[K] : K extends keyof BaseComponentMap ? BaseComponentMap[K] : never;
778
+
779
+ export declare const getInitProps: (field: Field) => Record<string, any>;
780
+
781
+ export declare const getInjectConfig: (key: string) => InjectConfigEntry | undefined;
782
+
783
+ export declare const GroupedFieldAttrs: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
784
+
785
+ export declare const INJECT_COMPONENTS: InjectionKey<Partial<Record<string, Component>>>;
786
+
787
+ export declare const INJECT_CONFIG: {
788
+ [key in keyof RequiredComponentVars]: {
789
+ injectionKey: InjectionKey<RequiredComponentVars[key]>;
790
+ default: RequiredComponentVars[key];
791
+ };
792
+ };
793
+
794
+ export declare type InjectConfigEntry<T = any> = {
795
+ injectionKey: InjectionKey<T>;
796
+ default: T;
797
+ };
798
+
799
+ export declare const InjectionFormKey: InjectionKey<any>;
800
+
801
+ export declare const InjectionPathKey: InjectionKey<ComputedRef<string | undefined>>;
802
+
803
+ export declare const InjectionPopupKey: unique symbol;
804
+
805
+ declare type IsRecord<T> = T extends object ? T extends ((...args: any[]) => any) | any[] | null ? false : true : false;
806
+
807
+ declare type KeyExpandString<T extends string> = T | (string & {});
808
+
809
+ declare type KeyPathString<D extends Data> = KeyExpandString<AllowStringKey<D>>;
810
+
811
+ declare type MaybeRefOrComputedRef<T = any> = MaybeRef<T> | ComputedRef<T>;
812
+
813
+ declare type NotSupportedRefOrGetterProps = 'component' | 'fieldContainer' | 'componentContainer' | 'valueFormatter' | 'displayFormatter' | 'fields' | 'slots' | 'modelProp' | 'popup';
814
+
815
+ declare type Path<D extends Data = Data> = KeyPathString<D>;
816
+
817
+ export declare type PathProps = {
818
+ path?: string;
819
+ } & Data;
820
+
821
+ export declare const PathProvider: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
822
+
823
+ export declare type PopupProps = ComponentProps<typeof Popup> & {
824
+ container: ContainerComponent;
825
+ };
826
+
827
+ declare type PP<T extends Record<string, any>> = Partial<T & AllowedComponentProps>;
828
+
829
+ export declare const ProComponentProvider: SFCWithInstall<{
830
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
831
+ componentVars?: ComponentVars;
832
+ componentMap?: Partial<Record<ComponentName, any>>;
833
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
834
+ P: {};
835
+ B: {};
836
+ D: {};
837
+ C: {};
838
+ M: {};
839
+ Defaults: {};
840
+ }, Readonly<{
841
+ componentVars?: ComponentVars;
842
+ componentMap?: Partial<Record<ComponentName, any>>;
843
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
844
+ __isFragment?: never;
845
+ __isTeleport?: never;
846
+ __isSuspense?: never;
847
+ } & ComponentOptionsBase<Readonly<{
848
+ componentVars?: ComponentVars;
849
+ componentMap?: Partial<Record<ComponentName, any>>;
850
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
851
+ $slots: {
852
+ default?(_: {}): any;
853
+ };
854
+ })>;
855
+
856
+ export declare const ProForm: SFCWithInstall<(<F extends Form<any> = Form>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
857
+ slots: Readonly<Partial<Record<F extends Form<infer D extends Data> ? Path<D> : string, Slot<VModelProps & {
858
+ path?: string;
859
+ } & Data & {
860
+ [x: string]: any;
861
+ disabled?: boolean;
862
+ }>> & {
863
+ default: Slot;
864
+ }>> & Partial<Record<F extends Form<infer D extends Data> ? Path<D> : string, Slot<VModelProps & {
865
+ path?: string;
866
+ } & Data & {
867
+ [x: string]: any;
868
+ disabled?: boolean;
869
+ }>> & {
870
+ default: Slot;
871
+ }>;
872
+ attrs: any;
873
+ emit: {};
874
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
875
+ props: {
876
+ form?: F | undefined;
877
+ } & PublicProps;
878
+ expose(exposed: ShallowUnwrapRef< {}>): void;
879
+ attrs: any;
880
+ slots: Readonly<Partial<Record<F extends Form<infer D extends Data> ? Path<D> : string, Slot<VModelProps & {
881
+ path?: string;
882
+ } & Data & {
883
+ [x: string]: any;
884
+ disabled?: boolean;
885
+ }>> & {
886
+ default: Slot;
887
+ }>> & Partial<Record<F extends Form<infer D extends Data> ? Path<D> : string, Slot<VModelProps & {
888
+ path?: string;
889
+ } & Data & {
890
+ [x: string]: any;
891
+ disabled?: boolean;
892
+ }>> & {
893
+ default: Slot;
894
+ }>;
895
+ emit: {};
896
+ }>) => VNode & {
897
+ __ctx?: Awaited<typeof __VLS_setup>;
898
+ })>;
899
+
900
+ export declare type ProFormInstance = ComponentExposed<typeof BaseForm>;
901
+
902
+ export declare type ProFormProps = ComponentProps<typeof BaseForm>;
903
+
904
+ declare type Props = {
905
+ component?: string | Component;
906
+ path?: string;
907
+ };
908
+
909
+ declare type Props_2 = {
910
+ component?: ContainerComponent;
911
+ };
912
+
913
+ declare type Props_3 = {
914
+ component?: SlotComponentType;
915
+ };
916
+
917
+ declare type Props_4 = {
918
+ field: Field;
919
+ };
920
+
921
+ declare type Props_5 = {
922
+ fields?: Fields;
923
+ };
924
+
925
+ /**
926
+ * @description 自定义组件
927
+ */
928
+ export declare type RenderComponentType = Component<VModelProps & PathProps>;
929
+
930
+ export declare type RequiredComponentVars = {
931
+ 'pro-form': PP<Omit<ProFormProps & FormProps, 'form'>>;
932
+ } & {
933
+ [K in Exclude<ComponentName, 'custom'>]: FP<ComponentProps<GetComponentType<K>>>;
934
+ };
935
+
936
+ declare type SFCWithInstall<T> = T & Plugin_2;
937
+
938
+ export declare const SlotComponent: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
939
+
940
+ /**
941
+ * @description 插槽组件类型
942
+ */
943
+ export declare type SlotComponentType = Component<PathProps> | VNode | string | number | boolean | null | undefined | ((...args: any[]) => SlotComponentType);
944
+
945
+ /**
946
+ * @description 插槽对象类型
947
+ */
948
+ export declare type Slots = {
949
+ [name: string]: SlotComponentType;
950
+ };
951
+
952
+ export declare const TeleportComponentNamePrefix = "TeleportComponent_";
953
+
954
+ declare type UpdateFieldOptions = {
955
+ all?: boolean;
956
+ };
957
+
958
+ export declare type UseFields<D extends Data = Data> = ReturnType<typeof useFields<D>>;
959
+
960
+ export declare const useFields: {
961
+ <D extends Data = Data>(initFields?: Fields<D>): ReturnType<typeof useFields_2<D, Field<ComponentName, D>, FieldInstance>>;
962
+ };
963
+
964
+ declare const useFields_2: <D extends Data = Data, F extends BaseField_2<D> = BaseField_2<D>, FormInstance = any>(initFields?: F[]) => {
965
+ fields: Ref<F[], F[]>;
966
+ getField: {
967
+ (path: Path<D> | FieldFindBy<D, F>): Readonly<F & AdditionalMethods<FormInstance>> | undefined;
968
+ (path: Path<D> | FieldFindBy<D, F>, options?: {
969
+ all?: false;
970
+ }): Readonly<F & AdditionalMethods<FormInstance>> | undefined;
971
+ (path: Path<D> | FieldFindBy<D, F>, options: {
972
+ all: true;
973
+ }): Readonly<F & AdditionalMethods<FormInstance>>[] | undefined;
974
+ };
975
+ setField: (path: Path<D> | FieldFindBy<D, F>, field: F | ((preField: Readonly<F>) => F), options?: {
976
+ updateType?: "rewrite" | "merge";
977
+ } & UpdateFieldOptions) => void;
978
+ deleteField: (path: Path<D> | FieldFindBy<D, F>, options?: UpdateFieldOptions) => void;
979
+ appendField: (path: Path<D> | FieldFindBy<D, F> | undefined, field: F | F[], options?: UpdateFieldOptions) => void;
980
+ prependField: (path: Path<D> | FieldFindBy<D, F> | undefined, field: F | F[], options?: UpdateFieldOptions) => void;
981
+ getParentField: {
982
+ (path: Path<D> | FieldFindBy<D, F>): Readonly<F & AdditionalMethods<FormInstance>> | undefined;
983
+ (path: Path<D> | FieldFindBy<D, F>, options: {
984
+ all?: false;
985
+ }): Readonly<F & AdditionalMethods<FormInstance>> | undefined;
986
+ (path: Path<D> | FieldFindBy<D, F>, options: {
987
+ all: true;
988
+ }): Readonly<F & AdditionalMethods<FormInstance>>[] | undefined;
989
+ };
990
+ };
991
+
992
+ export declare function useForm<D extends Data = Data>(initFormData?: ExtendWithAny<DeepPartial<D>>, initFields?: Field<ComponentName, D>[], root?: boolean): Form<D, Field<ComponentName, D>>;
993
+
994
+ export declare function useForm<D extends Data = Data>(root?: boolean): Form<D, Field<ComponentName, D>>;
995
+
996
+ /**
997
+ * 表单数据处理hook
998
+ * @param initFormData 初始表单数据
999
+ * @returns {Object} { formData, getFormData, setFormData }
1000
+ */
1001
+ export declare const useFormData: <D extends Data = Data>(initFormData?: ExtendWithAny<DeepPartial<D>>) => {
1002
+ formData: Reactive<ExtendWithAny<D>>;
1003
+ getFormData: {
1004
+ <K extends keyof D>(path: K): D[K];
1005
+ <K extends keyof D & string, K1 extends keyof D[K] & string>(path: `${K}.${K1}`): D[K][K1];
1006
+ <K extends keyof D & string, K1_1 extends keyof D[K] & string, K2 extends keyof D[K][K1_1] & string>(path: `${K}.${K1_1}.${K2}`): D[K][K1_1][K2];
1007
+ (path: Path<D>): any;
1008
+ };
1009
+ setFormData: {
1010
+ (path: Path<D>, value: any): void;
1011
+ (path: Path<D>, value: (v: any) => any): void;
1012
+ (value: ExtendWithAny<DeepPartial<D>>): void;
1013
+ (value: (v: ExtendWithAny<DeepPartial<D>>) => ExtendWithAny<DeepPartial<D>>): void;
1014
+ };
1015
+ };
1016
+
1017
+ export declare function useFormPopup(root?: boolean): FormPopup;
1018
+
1019
+ export declare const useFormRef: {
1020
+ (): ReturnType<typeof useFormRef_2<FormInstance>>;
1021
+ };
1022
+
1023
+ declare const useFormRef_2: <F = any>() => {
1024
+ formRef: Ref<F | undefined, F | undefined>;
1025
+ setFormRef: (inst: F) => void;
1026
+ };
1027
+
1028
+ export declare type ValueFormatter = {
1029
+ (val: any, oldVal: any): any;
1030
+ } | {
1031
+ get?: (val: any) => any;
1032
+ set?: (val: any, oldVal: any) => any;
1033
+ };
1034
+
1035
+ export declare type VModelProps<T = any> = {
1036
+ modelValue?: T;
1037
+ 'onUpdate:modelValue'?: (val: T) => void;
1038
+ };
1039
+
1040
+ declare type WithCommon<T, D extends Data = Data> = WithRef<WithCommonBase<T> & BaseWithoutFields<D>>;
1041
+
1042
+ declare type WithCommonBase<T = unknown> = T & Partial<Omit<FieldProps, 'label' | 'name' | 'type'>>;
1043
+
1044
+ declare type WithComponent<T extends abstract new (...args: any) => any, D extends Data = Data> = WithCommon<{
1045
+ slots?: Partial<ComponentSlots<T>>;
1046
+ } & Partial<Omit<ComponentProps<T>, keyof VNodeProps>>, D>;
1047
+
1048
+ declare type WithFields<D extends Data = Data> = WithRef<WithCommonBase & BaseWithFields<D>>;
1049
+
1050
+ export declare type WithRef<T> = {
1051
+ [P in keyof T]: P extends NotSupportedRefOrGetterProps ? T[P] : T[P] extends (...args: any[]) => any ? T[P] : MaybeRefOrComputedRef<T[P]>;
1052
+ };
1053
+
1054
+ export { }