@schemx/vant 0.1.11-alpha.20260616152026.eac77d3

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.
@@ -0,0 +1,4079 @@
1
+ import { CalendarDayItem } from 'vant';
2
+ import { CalendarProps } from 'vant';
3
+ import { CalendarSwitchMode } from 'vant/lib/calendar/types';
4
+ import { CalendarType } from 'vant';
5
+ import { CascaderFieldNames as CascaderFieldNames_2 } from 'vant';
6
+ import { CascaderOption } from 'vant';
7
+ import { CascaderProps } from 'vant';
8
+ import { CheckboxProps } from 'vant';
9
+ import { ComponentOptionsMixin } from 'vue';
10
+ import { ComponentProvideOptions } from 'vue';
11
+ import { DatePickerColumnType } from 'vant';
12
+ import { DatePickerProps } from 'vant';
13
+ import { default as default_2 } from '@schemx/vue';
14
+ import { DefineComponent } from 'vue';
15
+ import { ExtractPropTypes } from 'vue';
16
+ import { FieldAutosizeConfig } from 'vant';
17
+ import { FieldClearTrigger } from 'vant';
18
+ import { FieldEnterKeyHint } from 'vant';
19
+ import { FieldFormatTrigger } from 'vant';
20
+ import { FieldProps } from 'vant';
21
+ import { FieldTextAlign } from 'vant';
22
+ import { FieldType } from 'vant';
23
+ import { ImagePreviewOptions } from 'vant';
24
+ import { Interceptor } from 'vant/lib/utils';
25
+ import { NamePath } from '@schemx/core';
26
+ import { Numeric } from 'vant/lib/utils';
27
+ import { PickerConfirmEventParams } from 'vant';
28
+ import { PickerFieldNames as PickerFieldNames_2 } from 'vant';
29
+ import { PickerOption } from 'vant';
30
+ import { PickerProps } from 'vant';
31
+ import { PopupPosition } from 'vant';
32
+ import { PopupProps } from 'vant';
33
+ import { PropType } from 'vue';
34
+ import { PublicProps } from 'vue';
35
+ import { RadioProps } from 'vant';
36
+ import { RateProps } from 'vant';
37
+ import { RendererElement } from 'vue';
38
+ import { RendererNode } from 'vue';
39
+ import { rendererRegistry } from '@schemx/vue';
40
+ import { SchemxBaseComponentProps } from '@schemx/vue';
41
+ import { SchemxDictionary } from '@schemx/core';
42
+ import { SchemxFormItemProps } from '@schemx/core';
43
+ import { SchemxFormItemProps as SchemxFormItemProps_2 } from '@schemx/vue';
44
+ import { SliderProps } from 'vant';
45
+ import { StepperProps } from 'vant';
46
+ import { StepperTheme } from 'vant';
47
+ import { SwitchProps } from 'vant';
48
+ import { UploaderAfterRead } from 'vant';
49
+ import { UploaderBeforeRead } from 'vant';
50
+ import { UploaderFileListItem } from 'vant';
51
+ import { UploaderMaxSize } from 'vant/lib/uploader/types';
52
+ import { UploaderProps } from 'vant';
53
+ import { UploaderResultType } from 'vant';
54
+ import { useEffect } from '@schemx/vue';
55
+ import { useField } from '@schemx/vue';
56
+ import { useFieldContext } from '@schemx/vue';
57
+ import { useForm } from '@schemx/vue';
58
+ import { useWatch } from '@schemx/vue';
59
+ import { validatorRegistry } from '@schemx/vue';
60
+ import { Values } from '@schemx/core';
61
+ import { VNode } from 'vue';
62
+ import { WithRemoteOptions } from '@schemx/vue';
63
+
64
+ declare const __VLS_component: DefineComponent<ExtractPropTypes< {
65
+ value: PropType<InputValue>;
66
+ disabled: {
67
+ type: PropType<boolean>;
68
+ default: boolean;
69
+ };
70
+ readonly: {
71
+ type: PropType<boolean>;
72
+ default: boolean;
73
+ };
74
+ placeholder: {
75
+ type: PropType<string>;
76
+ default: string;
77
+ };
78
+ readonlyPlaceholder: {
79
+ type: PropType<string>;
80
+ default: string;
81
+ };
82
+ align: {
83
+ type: PropType<"left" | "right" | "center">;
84
+ default: string;
85
+ };
86
+ className: {
87
+ type: PropType<string>;
88
+ default: string;
89
+ };
90
+ type: {
91
+ type: PropType<FieldType>;
92
+ default: string;
93
+ };
94
+ onFocus: {
95
+ type: PropType<(event: FocusEvent) => void>;
96
+ default: undefined;
97
+ };
98
+ onBlur: {
99
+ type: PropType<(event: FocusEvent) => void>;
100
+ default: undefined;
101
+ };
102
+ onChange: {
103
+ type: PropType<(value: string) => void>;
104
+ default: undefined;
105
+ };
106
+ leftIcon: {
107
+ type: PropType<string>;
108
+ default: string;
109
+ };
110
+ rightIcon: {
111
+ type: PropType<string>;
112
+ default: string;
113
+ };
114
+ autofocus: {
115
+ type: PropType<boolean>;
116
+ default: boolean;
117
+ };
118
+ clearable: {
119
+ type: PropType<boolean>;
120
+ default: boolean;
121
+ };
122
+ maxlength: {
123
+ type: PropType<string | number>;
124
+ default: undefined;
125
+ };
126
+ max: {
127
+ type: PropType<number>;
128
+ default: undefined;
129
+ };
130
+ min: {
131
+ type: PropType<number>;
132
+ default: undefined;
133
+ };
134
+ formatter: {
135
+ type: PropType<(value: string) => string>;
136
+ default: undefined;
137
+ };
138
+ clearIcon: {
139
+ type: PropType<string>;
140
+ default: string;
141
+ };
142
+ autocomplete: {
143
+ type: PropType<string>;
144
+ default: undefined;
145
+ };
146
+ autocapitalize: {
147
+ type: PropType<string>;
148
+ default: undefined;
149
+ };
150
+ autocorrect: {
151
+ type: PropType<string>;
152
+ default: undefined;
153
+ };
154
+ enterkeyhint: {
155
+ type: PropType<FieldEnterKeyHint>;
156
+ default: undefined;
157
+ };
158
+ clearTrigger: {
159
+ type: PropType<FieldClearTrigger>;
160
+ default: string;
161
+ };
162
+ formatTrigger: {
163
+ type: PropType<FieldFormatTrigger>;
164
+ default: string;
165
+ };
166
+ spellcheck: {
167
+ type: PropType<boolean | null>;
168
+ default: null;
169
+ };
170
+ inputmode: {
171
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
172
+ default: undefined;
173
+ };
174
+ rows: {
175
+ type: PropType<string | number>;
176
+ default: undefined;
177
+ };
178
+ autosize: {
179
+ type: PropType<boolean | {
180
+ minRows?: number;
181
+ maxRows?: number;
182
+ }>;
183
+ default: boolean;
184
+ };
185
+ showWordLimit: {
186
+ type: PropType<boolean>;
187
+ default: boolean;
188
+ };
189
+ formItemProps: {
190
+ type: PropType<SchemxFormItemProps>;
191
+ };
192
+ }>, {
193
+ focus: () => void | undefined;
194
+ blur: () => void | undefined;
195
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
196
+ value: PropType<InputValue>;
197
+ disabled: {
198
+ type: PropType<boolean>;
199
+ default: boolean;
200
+ };
201
+ readonly: {
202
+ type: PropType<boolean>;
203
+ default: boolean;
204
+ };
205
+ placeholder: {
206
+ type: PropType<string>;
207
+ default: string;
208
+ };
209
+ readonlyPlaceholder: {
210
+ type: PropType<string>;
211
+ default: string;
212
+ };
213
+ align: {
214
+ type: PropType<"left" | "right" | "center">;
215
+ default: string;
216
+ };
217
+ className: {
218
+ type: PropType<string>;
219
+ default: string;
220
+ };
221
+ type: {
222
+ type: PropType<FieldType>;
223
+ default: string;
224
+ };
225
+ onFocus: {
226
+ type: PropType<(event: FocusEvent) => void>;
227
+ default: undefined;
228
+ };
229
+ onBlur: {
230
+ type: PropType<(event: FocusEvent) => void>;
231
+ default: undefined;
232
+ };
233
+ onChange: {
234
+ type: PropType<(value: string) => void>;
235
+ default: undefined;
236
+ };
237
+ leftIcon: {
238
+ type: PropType<string>;
239
+ default: string;
240
+ };
241
+ rightIcon: {
242
+ type: PropType<string>;
243
+ default: string;
244
+ };
245
+ autofocus: {
246
+ type: PropType<boolean>;
247
+ default: boolean;
248
+ };
249
+ clearable: {
250
+ type: PropType<boolean>;
251
+ default: boolean;
252
+ };
253
+ maxlength: {
254
+ type: PropType<string | number>;
255
+ default: undefined;
256
+ };
257
+ max: {
258
+ type: PropType<number>;
259
+ default: undefined;
260
+ };
261
+ min: {
262
+ type: PropType<number>;
263
+ default: undefined;
264
+ };
265
+ formatter: {
266
+ type: PropType<(value: string) => string>;
267
+ default: undefined;
268
+ };
269
+ clearIcon: {
270
+ type: PropType<string>;
271
+ default: string;
272
+ };
273
+ autocomplete: {
274
+ type: PropType<string>;
275
+ default: undefined;
276
+ };
277
+ autocapitalize: {
278
+ type: PropType<string>;
279
+ default: undefined;
280
+ };
281
+ autocorrect: {
282
+ type: PropType<string>;
283
+ default: undefined;
284
+ };
285
+ enterkeyhint: {
286
+ type: PropType<FieldEnterKeyHint>;
287
+ default: undefined;
288
+ };
289
+ clearTrigger: {
290
+ type: PropType<FieldClearTrigger>;
291
+ default: string;
292
+ };
293
+ formatTrigger: {
294
+ type: PropType<FieldFormatTrigger>;
295
+ default: string;
296
+ };
297
+ spellcheck: {
298
+ type: PropType<boolean | null>;
299
+ default: null;
300
+ };
301
+ inputmode: {
302
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
303
+ default: undefined;
304
+ };
305
+ rows: {
306
+ type: PropType<string | number>;
307
+ default: undefined;
308
+ };
309
+ autosize: {
310
+ type: PropType<boolean | {
311
+ minRows?: number;
312
+ maxRows?: number;
313
+ }>;
314
+ default: boolean;
315
+ };
316
+ showWordLimit: {
317
+ type: PropType<boolean>;
318
+ default: boolean;
319
+ };
320
+ formItemProps: {
321
+ type: PropType<SchemxFormItemProps>;
322
+ };
323
+ }>> & Readonly<{}>, {
324
+ disabled: boolean;
325
+ readonly: boolean;
326
+ placeholder: string;
327
+ readonlyPlaceholder: string;
328
+ align: "left" | "right" | "center";
329
+ className: string;
330
+ type: FieldProps["type"];
331
+ onFocus: (event: FocusEvent) => void;
332
+ onBlur: (event: FocusEvent) => void;
333
+ onChange: (value: string) => void;
334
+ leftIcon: string;
335
+ rightIcon: string;
336
+ autofocus: boolean;
337
+ clearable: FieldProps["clearable"];
338
+ maxlength: number | string;
339
+ max: number;
340
+ min: number;
341
+ formatter: (value: string) => string;
342
+ clearIcon: FieldProps["clearIcon"];
343
+ autocomplete: string;
344
+ autocapitalize: string;
345
+ autocorrect: string;
346
+ enterkeyhint: FieldEnterKeyHint;
347
+ clearTrigger: FieldProps["clearTrigger"];
348
+ formatTrigger: FieldProps["formatTrigger"];
349
+ spellcheck: boolean | null;
350
+ inputmode: "search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal";
351
+ rows: number | string;
352
+ autosize: boolean | {
353
+ minRows?: number;
354
+ maxRows?: number;
355
+ };
356
+ showWordLimit: FieldProps["showWordLimit"];
357
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
358
+
359
+ declare const __VLS_component_2: DefineComponent<ExtractPropTypes< {
360
+ value: PropType<string>;
361
+ disabled: {
362
+ type: PropType<boolean>;
363
+ default: boolean;
364
+ };
365
+ readonly: {
366
+ type: PropType<boolean>;
367
+ default: boolean;
368
+ };
369
+ placeholder: {
370
+ type: PropType<string>;
371
+ default: undefined;
372
+ };
373
+ readonlyPlaceholder: {
374
+ type: PropType<string>;
375
+ default: string;
376
+ };
377
+ align: {
378
+ type: PropType<"left" | "right" | "center">;
379
+ default: string;
380
+ };
381
+ className: {
382
+ type: PropType<string>;
383
+ default: string;
384
+ };
385
+ type: {
386
+ type: PropType<FieldType>;
387
+ };
388
+ onFocus: {
389
+ type: PropType<(event: FocusEvent) => void>;
390
+ };
391
+ onBlur: {
392
+ type: PropType<(event: FocusEvent) => void>;
393
+ };
394
+ onChange: {
395
+ type: PropType<(value: string) => void>;
396
+ };
397
+ leftIcon: {
398
+ type: PropType<string>;
399
+ default: string;
400
+ };
401
+ rightIcon: {
402
+ type: PropType<string>;
403
+ default: string;
404
+ };
405
+ autofocus: {
406
+ type: PropType<boolean>;
407
+ };
408
+ clearable: {
409
+ type: PropType<boolean>;
410
+ default: boolean;
411
+ };
412
+ maxlength: {
413
+ type: PropType<string | number>;
414
+ };
415
+ max: {
416
+ type: PropType<number>;
417
+ };
418
+ min: {
419
+ type: PropType<number>;
420
+ };
421
+ formatter: {
422
+ type: PropType<(value: TextValue) => string>;
423
+ };
424
+ clearIcon: {
425
+ type: PropType<string>;
426
+ default: string;
427
+ };
428
+ autocomplete: {
429
+ type: PropType<string>;
430
+ };
431
+ autocapitalize: {
432
+ type: PropType<string>;
433
+ };
434
+ autocorrect: {
435
+ type: PropType<string>;
436
+ };
437
+ enterkeyhint: {
438
+ type: PropType<FieldEnterKeyHint>;
439
+ };
440
+ clearTrigger: {
441
+ type: PropType<"always" | "focus">;
442
+ default: string;
443
+ };
444
+ formatTrigger: {
445
+ type: PropType<"onBlur" | "onChange">;
446
+ };
447
+ spellcheck: {
448
+ type: PropType<boolean | null>;
449
+ };
450
+ inputmode: {
451
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
452
+ };
453
+ rows: {
454
+ type: PropType<string | number>;
455
+ };
456
+ autosize: {
457
+ type: PropType<boolean | FieldAutosizeConfig>;
458
+ };
459
+ showWordLimit: {
460
+ type: PropType<boolean>;
461
+ default: boolean;
462
+ };
463
+ formItemProps: {
464
+ type: PropType<SchemxFormItemProps<Values>>;
465
+ };
466
+ }>, {
467
+ focus: () => void | undefined;
468
+ blur: () => void | undefined;
469
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
470
+ value: PropType<string>;
471
+ disabled: {
472
+ type: PropType<boolean>;
473
+ default: boolean;
474
+ };
475
+ readonly: {
476
+ type: PropType<boolean>;
477
+ default: boolean;
478
+ };
479
+ placeholder: {
480
+ type: PropType<string>;
481
+ default: undefined;
482
+ };
483
+ readonlyPlaceholder: {
484
+ type: PropType<string>;
485
+ default: string;
486
+ };
487
+ align: {
488
+ type: PropType<"left" | "right" | "center">;
489
+ default: string;
490
+ };
491
+ className: {
492
+ type: PropType<string>;
493
+ default: string;
494
+ };
495
+ type: {
496
+ type: PropType<FieldType>;
497
+ };
498
+ onFocus: {
499
+ type: PropType<(event: FocusEvent) => void>;
500
+ };
501
+ onBlur: {
502
+ type: PropType<(event: FocusEvent) => void>;
503
+ };
504
+ onChange: {
505
+ type: PropType<(value: string) => void>;
506
+ };
507
+ leftIcon: {
508
+ type: PropType<string>;
509
+ default: string;
510
+ };
511
+ rightIcon: {
512
+ type: PropType<string>;
513
+ default: string;
514
+ };
515
+ autofocus: {
516
+ type: PropType<boolean>;
517
+ };
518
+ clearable: {
519
+ type: PropType<boolean>;
520
+ default: boolean;
521
+ };
522
+ maxlength: {
523
+ type: PropType<string | number>;
524
+ };
525
+ max: {
526
+ type: PropType<number>;
527
+ };
528
+ min: {
529
+ type: PropType<number>;
530
+ };
531
+ formatter: {
532
+ type: PropType<(value: TextValue) => string>;
533
+ };
534
+ clearIcon: {
535
+ type: PropType<string>;
536
+ default: string;
537
+ };
538
+ autocomplete: {
539
+ type: PropType<string>;
540
+ };
541
+ autocapitalize: {
542
+ type: PropType<string>;
543
+ };
544
+ autocorrect: {
545
+ type: PropType<string>;
546
+ };
547
+ enterkeyhint: {
548
+ type: PropType<FieldEnterKeyHint>;
549
+ };
550
+ clearTrigger: {
551
+ type: PropType<"always" | "focus">;
552
+ default: string;
553
+ };
554
+ formatTrigger: {
555
+ type: PropType<"onBlur" | "onChange">;
556
+ };
557
+ spellcheck: {
558
+ type: PropType<boolean | null>;
559
+ };
560
+ inputmode: {
561
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
562
+ };
563
+ rows: {
564
+ type: PropType<string | number>;
565
+ };
566
+ autosize: {
567
+ type: PropType<boolean | FieldAutosizeConfig>;
568
+ };
569
+ showWordLimit: {
570
+ type: PropType<boolean>;
571
+ default: boolean;
572
+ };
573
+ formItemProps: {
574
+ type: PropType<SchemxFormItemProps<Values>>;
575
+ };
576
+ }>> & Readonly<{}>, {
577
+ disabled: boolean;
578
+ readonly: boolean;
579
+ placeholder: string;
580
+ readonlyPlaceholder: string;
581
+ align: "left" | "center" | "right";
582
+ className: string;
583
+ leftIcon: string;
584
+ rightIcon: string;
585
+ clearable: boolean;
586
+ clearIcon: string;
587
+ clearTrigger: "focus" | "always";
588
+ showWordLimit: boolean;
589
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
590
+
591
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes< {
592
+ value: PropType<string>;
593
+ disabled: {
594
+ type: PropType<boolean>;
595
+ default: boolean;
596
+ };
597
+ readonly: {
598
+ type: PropType<boolean>;
599
+ default: boolean;
600
+ };
601
+ placeholder: {
602
+ type: PropType<string>;
603
+ default: undefined;
604
+ };
605
+ readonlyPlaceholder: {
606
+ type: PropType<string>;
607
+ default: string;
608
+ };
609
+ align: {
610
+ type: PropType<"left" | "right" | "center">;
611
+ default: string;
612
+ };
613
+ className: {
614
+ type: PropType<string>;
615
+ default: string;
616
+ };
617
+ onFocus: {
618
+ type: PropType<(event: FocusEvent) => void>;
619
+ default: undefined;
620
+ };
621
+ onBlur: {
622
+ type: PropType<(event: FocusEvent) => void>;
623
+ };
624
+ onChange: {
625
+ type: PropType<(value: string) => void>;
626
+ };
627
+ leftIcon: {
628
+ type: PropType<string>;
629
+ };
630
+ rightIcon: {
631
+ type: PropType<string>;
632
+ };
633
+ autofocus: {
634
+ type: PropType<boolean>;
635
+ };
636
+ clearable: {
637
+ type: PropType<boolean>;
638
+ };
639
+ maxlength: {
640
+ type: PropType<string | number>;
641
+ };
642
+ max: {
643
+ type: PropType<number>;
644
+ };
645
+ min: {
646
+ type: PropType<number>;
647
+ };
648
+ formatter: {
649
+ type: PropType<(value: string) => string>;
650
+ };
651
+ clearIcon: {
652
+ type: PropType<string>;
653
+ };
654
+ autocomplete: {
655
+ type: PropType<string>;
656
+ };
657
+ autocapitalize: {
658
+ type: PropType<string>;
659
+ };
660
+ autocorrect: {
661
+ type: PropType<string>;
662
+ };
663
+ enterkeyhint: {
664
+ type: PropType<FieldEnterKeyHint>;
665
+ };
666
+ clearTrigger: {
667
+ type: PropType<FieldClearTrigger>;
668
+ };
669
+ formatTrigger: {
670
+ type: PropType<FieldFormatTrigger>;
671
+ };
672
+ spellcheck: {
673
+ type: PropType<boolean | null>;
674
+ };
675
+ inputmode: {
676
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
677
+ };
678
+ rows: {
679
+ type: PropType<string | number>;
680
+ default: undefined;
681
+ };
682
+ autosize: {
683
+ type: PropType<boolean | TextAreaAutosize>;
684
+ default: () => {
685
+ minRows: number;
686
+ maxRows: number;
687
+ };
688
+ };
689
+ showWordLimit: {
690
+ type: PropType<boolean>;
691
+ default: boolean;
692
+ };
693
+ formItemProps: {
694
+ type: PropType<SchemxFormItemProps<Values>>;
695
+ };
696
+ autoSize: {
697
+ type: PropType<boolean | TextAreaAutosize>;
698
+ default: undefined;
699
+ };
700
+ }>, {
701
+ focus: () => void | undefined;
702
+ blur: () => void | undefined;
703
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
704
+ value: PropType<string>;
705
+ disabled: {
706
+ type: PropType<boolean>;
707
+ default: boolean;
708
+ };
709
+ readonly: {
710
+ type: PropType<boolean>;
711
+ default: boolean;
712
+ };
713
+ placeholder: {
714
+ type: PropType<string>;
715
+ default: undefined;
716
+ };
717
+ readonlyPlaceholder: {
718
+ type: PropType<string>;
719
+ default: string;
720
+ };
721
+ align: {
722
+ type: PropType<"left" | "right" | "center">;
723
+ default: string;
724
+ };
725
+ className: {
726
+ type: PropType<string>;
727
+ default: string;
728
+ };
729
+ onFocus: {
730
+ type: PropType<(event: FocusEvent) => void>;
731
+ default: undefined;
732
+ };
733
+ onBlur: {
734
+ type: PropType<(event: FocusEvent) => void>;
735
+ };
736
+ onChange: {
737
+ type: PropType<(value: string) => void>;
738
+ };
739
+ leftIcon: {
740
+ type: PropType<string>;
741
+ };
742
+ rightIcon: {
743
+ type: PropType<string>;
744
+ };
745
+ autofocus: {
746
+ type: PropType<boolean>;
747
+ };
748
+ clearable: {
749
+ type: PropType<boolean>;
750
+ };
751
+ maxlength: {
752
+ type: PropType<string | number>;
753
+ };
754
+ max: {
755
+ type: PropType<number>;
756
+ };
757
+ min: {
758
+ type: PropType<number>;
759
+ };
760
+ formatter: {
761
+ type: PropType<(value: string) => string>;
762
+ };
763
+ clearIcon: {
764
+ type: PropType<string>;
765
+ };
766
+ autocomplete: {
767
+ type: PropType<string>;
768
+ };
769
+ autocapitalize: {
770
+ type: PropType<string>;
771
+ };
772
+ autocorrect: {
773
+ type: PropType<string>;
774
+ };
775
+ enterkeyhint: {
776
+ type: PropType<FieldEnterKeyHint>;
777
+ };
778
+ clearTrigger: {
779
+ type: PropType<FieldClearTrigger>;
780
+ };
781
+ formatTrigger: {
782
+ type: PropType<FieldFormatTrigger>;
783
+ };
784
+ spellcheck: {
785
+ type: PropType<boolean | null>;
786
+ };
787
+ inputmode: {
788
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
789
+ };
790
+ rows: {
791
+ type: PropType<string | number>;
792
+ default: undefined;
793
+ };
794
+ autosize: {
795
+ type: PropType<boolean | TextAreaAutosize>;
796
+ default: () => {
797
+ minRows: number;
798
+ maxRows: number;
799
+ };
800
+ };
801
+ showWordLimit: {
802
+ type: PropType<boolean>;
803
+ default: boolean;
804
+ };
805
+ formItemProps: {
806
+ type: PropType<SchemxFormItemProps<Values>>;
807
+ };
808
+ autoSize: {
809
+ type: PropType<boolean | TextAreaAutosize>;
810
+ default: undefined;
811
+ };
812
+ }>> & Readonly<{}>, {
813
+ disabled: boolean;
814
+ readonly: boolean;
815
+ placeholder: string;
816
+ readonlyPlaceholder: string;
817
+ align: "left" | "center" | "right";
818
+ className: string;
819
+ onFocus: (event: FocusEvent) => void;
820
+ rows: number | string;
821
+ autosize: boolean | TextAreaAutosize;
822
+ showWordLimit: boolean;
823
+ autoSize: boolean | TextAreaAutosize;
824
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
825
+
826
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes< {
827
+ value: PropType<NumberValue>;
828
+ disabled: {
829
+ type: PropType<boolean>;
830
+ default: boolean;
831
+ };
832
+ readonly: {
833
+ type: PropType<boolean>;
834
+ default: boolean;
835
+ };
836
+ placeholder: {
837
+ type: PropType<string>;
838
+ default: undefined;
839
+ };
840
+ readonlyPlaceholder: {
841
+ type: PropType<string>;
842
+ default: string;
843
+ };
844
+ align: {
845
+ type: PropType<"left" | "right" | "center">;
846
+ default: string;
847
+ };
848
+ className: {
849
+ type: PropType<string>;
850
+ default: string;
851
+ };
852
+ type: {
853
+ type: PropType<"number" | "digit">;
854
+ default: string;
855
+ };
856
+ onFocus: {
857
+ type: PropType<(event: FocusEvent) => void>;
858
+ };
859
+ onBlur: {
860
+ type: PropType<(event: FocusEvent) => void>;
861
+ };
862
+ onChange: {
863
+ type: PropType<(value: string) => void>;
864
+ };
865
+ leftIcon: {
866
+ type: PropType<string>;
867
+ };
868
+ rightIcon: {
869
+ type: PropType<string>;
870
+ };
871
+ autofocus: {
872
+ type: PropType<boolean>;
873
+ };
874
+ clearable: {
875
+ type: PropType<boolean>;
876
+ default: boolean;
877
+ };
878
+ maxlength: {
879
+ type: PropType<string | number>;
880
+ };
881
+ max: {
882
+ type: PropType<number>;
883
+ default: undefined;
884
+ };
885
+ min: {
886
+ type: PropType<number>;
887
+ default: undefined;
888
+ };
889
+ formatter: {
890
+ type: PropType<(value: string) => string>;
891
+ };
892
+ clearIcon: {
893
+ type: PropType<string>;
894
+ };
895
+ autocomplete: {
896
+ type: PropType<string>;
897
+ };
898
+ autocapitalize: {
899
+ type: PropType<string>;
900
+ };
901
+ autocorrect: {
902
+ type: PropType<string>;
903
+ };
904
+ enterkeyhint: {
905
+ type: PropType<FieldEnterKeyHint>;
906
+ };
907
+ clearTrigger: {
908
+ type: PropType<FieldClearTrigger>;
909
+ };
910
+ formatTrigger: {
911
+ type: PropType<FieldFormatTrigger>;
912
+ };
913
+ spellcheck: {
914
+ type: PropType<boolean | null>;
915
+ };
916
+ inputmode: {
917
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
918
+ };
919
+ rows: {
920
+ type: PropType<string | number>;
921
+ };
922
+ autosize: {
923
+ type: PropType<boolean | FieldAutosizeConfig>;
924
+ };
925
+ showWordLimit: {
926
+ type: PropType<boolean>;
927
+ };
928
+ formItemProps: {
929
+ type: PropType<SchemxFormItemProps<Values>>;
930
+ };
931
+ }>, {
932
+ focus: () => any;
933
+ blur: () => any;
934
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
935
+ value: PropType<NumberValue>;
936
+ disabled: {
937
+ type: PropType<boolean>;
938
+ default: boolean;
939
+ };
940
+ readonly: {
941
+ type: PropType<boolean>;
942
+ default: boolean;
943
+ };
944
+ placeholder: {
945
+ type: PropType<string>;
946
+ default: undefined;
947
+ };
948
+ readonlyPlaceholder: {
949
+ type: PropType<string>;
950
+ default: string;
951
+ };
952
+ align: {
953
+ type: PropType<"left" | "right" | "center">;
954
+ default: string;
955
+ };
956
+ className: {
957
+ type: PropType<string>;
958
+ default: string;
959
+ };
960
+ type: {
961
+ type: PropType<"number" | "digit">;
962
+ default: string;
963
+ };
964
+ onFocus: {
965
+ type: PropType<(event: FocusEvent) => void>;
966
+ };
967
+ onBlur: {
968
+ type: PropType<(event: FocusEvent) => void>;
969
+ };
970
+ onChange: {
971
+ type: PropType<(value: string) => void>;
972
+ };
973
+ leftIcon: {
974
+ type: PropType<string>;
975
+ };
976
+ rightIcon: {
977
+ type: PropType<string>;
978
+ };
979
+ autofocus: {
980
+ type: PropType<boolean>;
981
+ };
982
+ clearable: {
983
+ type: PropType<boolean>;
984
+ default: boolean;
985
+ };
986
+ maxlength: {
987
+ type: PropType<string | number>;
988
+ };
989
+ max: {
990
+ type: PropType<number>;
991
+ default: undefined;
992
+ };
993
+ min: {
994
+ type: PropType<number>;
995
+ default: undefined;
996
+ };
997
+ formatter: {
998
+ type: PropType<(value: string) => string>;
999
+ };
1000
+ clearIcon: {
1001
+ type: PropType<string>;
1002
+ };
1003
+ autocomplete: {
1004
+ type: PropType<string>;
1005
+ };
1006
+ autocapitalize: {
1007
+ type: PropType<string>;
1008
+ };
1009
+ autocorrect: {
1010
+ type: PropType<string>;
1011
+ };
1012
+ enterkeyhint: {
1013
+ type: PropType<FieldEnterKeyHint>;
1014
+ };
1015
+ clearTrigger: {
1016
+ type: PropType<FieldClearTrigger>;
1017
+ };
1018
+ formatTrigger: {
1019
+ type: PropType<FieldFormatTrigger>;
1020
+ };
1021
+ spellcheck: {
1022
+ type: PropType<boolean | null>;
1023
+ };
1024
+ inputmode: {
1025
+ type: PropType<"search" | "text" | "tel" | "url" | "email" | "none" | "numeric" | "decimal">;
1026
+ };
1027
+ rows: {
1028
+ type: PropType<string | number>;
1029
+ };
1030
+ autosize: {
1031
+ type: PropType<boolean | FieldAutosizeConfig>;
1032
+ };
1033
+ showWordLimit: {
1034
+ type: PropType<boolean>;
1035
+ };
1036
+ formItemProps: {
1037
+ type: PropType<SchemxFormItemProps<Values>>;
1038
+ };
1039
+ }>> & Readonly<{}>, {
1040
+ disabled: boolean;
1041
+ readonly: boolean;
1042
+ placeholder: string;
1043
+ readonlyPlaceholder: string;
1044
+ align: "left" | "center" | "right";
1045
+ className: string;
1046
+ type: "number" | "digit";
1047
+ clearable: boolean;
1048
+ max: number;
1049
+ min: number;
1050
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1051
+
1052
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
1053
+
1054
+ declare type __VLS_Prettify<T> = {
1055
+ [K in keyof T]: T[K];
1056
+ } & {};
1057
+
1058
+ declare function __VLS_template(): {
1059
+ "left-icon"?(_: {}): any;
1060
+ "right-icon"?(_: {}): any;
1061
+ button?(_: {}): any;
1062
+ extra?(_: {}): any;
1063
+ };
1064
+
1065
+ declare function __VLS_template_2(): {
1066
+ "left-icon"?(_: {}): any;
1067
+ "right-icon"?(_: {}): any;
1068
+ button?(_: {}): any;
1069
+ extra?(_: {}): any;
1070
+ };
1071
+
1072
+ declare function __VLS_template_3(): {
1073
+ "left-icon"?(_: {}): any;
1074
+ "right-icon"?(_: {}): any;
1075
+ button?(_: {}): any;
1076
+ extra?(_: {}): any;
1077
+ };
1078
+
1079
+ declare function __VLS_template_4(): {
1080
+ "left-icon"?(_: {}): any;
1081
+ "right-icon"?(_: {}): any;
1082
+ button?(_: {}): any;
1083
+ extra?(_: {}): any;
1084
+ };
1085
+
1086
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
1087
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
1088
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
1089
+ } : {
1090
+ type: PropType<T[K]>;
1091
+ required: true;
1092
+ };
1093
+ };
1094
+
1095
+ declare type __VLS_WithDefaults<P, D> = {
1096
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
1097
+ default: D[K];
1098
+ }> : P[K];
1099
+ };
1100
+
1101
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
1102
+ new (): {
1103
+ $slots: S;
1104
+ };
1105
+ };
1106
+
1107
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1108
+ new (): {
1109
+ $slots: S;
1110
+ };
1111
+ };
1112
+
1113
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
1114
+ new (): {
1115
+ $slots: S;
1116
+ };
1117
+ };
1118
+
1119
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
1120
+ new (): {
1121
+ $slots: S;
1122
+ };
1123
+ };
1124
+
1125
+ declare type CalendarFormattedValue = string | string[];
1126
+
1127
+ export declare const CalendarRenderer: DefineComponent<ExtractPropTypes< {
1128
+ value: PropType<CalendarValue>;
1129
+ disabled: {
1130
+ type: PropType<boolean>;
1131
+ default: boolean;
1132
+ };
1133
+ readonly: {
1134
+ type: PropType<boolean>;
1135
+ default: boolean;
1136
+ };
1137
+ placeholder: {
1138
+ type: PropType<string>;
1139
+ default: string;
1140
+ };
1141
+ readonlyPlaceholder: {
1142
+ type: PropType<string>;
1143
+ default: string;
1144
+ };
1145
+ align: {
1146
+ type: PropType<"left" | "right" | "center">;
1147
+ };
1148
+ className: {
1149
+ type: PropType<string>;
1150
+ default: string;
1151
+ };
1152
+ type: {
1153
+ type: PropType<CalendarType>;
1154
+ default: string;
1155
+ };
1156
+ title: {
1157
+ type: PropType<string>;
1158
+ };
1159
+ view: {
1160
+ type: PropType<boolean>;
1161
+ };
1162
+ onChange: {
1163
+ type: PropType<(value: CalendarFormattedValue) => void>;
1164
+ default: () => void;
1165
+ };
1166
+ formatter: {
1167
+ type: PropType<(item: CalendarDayItem) => CalendarDayItem>;
1168
+ };
1169
+ color: {
1170
+ type: PropType<string>;
1171
+ };
1172
+ formItemProps: {
1173
+ type: PropType<SchemxFormItemProps<Values>>;
1174
+ };
1175
+ contentAlign: {
1176
+ type: PropType<FieldTextAlign>;
1177
+ };
1178
+ switchMode: {
1179
+ type: PropType<CalendarSwitchMode>;
1180
+ };
1181
+ round: {
1182
+ type: PropType<boolean>;
1183
+ };
1184
+ poppable: {
1185
+ type: PropType<boolean>;
1186
+ };
1187
+ maxRange: {
1188
+ type: PropType<string | number>;
1189
+ };
1190
+ position: {
1191
+ type: PropType<PopupPosition>;
1192
+ };
1193
+ teleport: {
1194
+ type: PropType<string | RendererElement | null>;
1195
+ };
1196
+ showMark: {
1197
+ type: PropType<boolean>;
1198
+ };
1199
+ showTitle: {
1200
+ type: PropType<boolean>;
1201
+ };
1202
+ rowHeight: {
1203
+ type: PropType<string | number>;
1204
+ };
1205
+ confirmText: {
1206
+ type: PropType<string>;
1207
+ };
1208
+ rangePrompt: {
1209
+ type: PropType<string>;
1210
+ };
1211
+ lazyRender: {
1212
+ type: PropType<boolean>;
1213
+ };
1214
+ showConfirm: {
1215
+ type: PropType<boolean>;
1216
+ };
1217
+ defaultDate: {
1218
+ type: PropType<Date | Date[] | null>;
1219
+ };
1220
+ allowSameDay: {
1221
+ type: PropType<boolean>;
1222
+ };
1223
+ showSubtitle: {
1224
+ type: PropType<boolean>;
1225
+ };
1226
+ closeOnPopstate: {
1227
+ type: PropType<boolean>;
1228
+ };
1229
+ showRangePrompt: {
1230
+ type: PropType<boolean>;
1231
+ };
1232
+ confirmDisabledText: {
1233
+ type: PropType<string>;
1234
+ };
1235
+ closeOnClickOverlay: {
1236
+ type: PropType<boolean>;
1237
+ };
1238
+ safeAreaInsetTop: {
1239
+ type: PropType<boolean>;
1240
+ };
1241
+ safeAreaInsetBottom: {
1242
+ type: PropType<boolean>;
1243
+ default: boolean;
1244
+ };
1245
+ minDate: {
1246
+ type: PropType<Date>;
1247
+ };
1248
+ maxDate: {
1249
+ type: PropType<Date>;
1250
+ };
1251
+ firstDayOfWeek: {
1252
+ type: PropType<string | number>;
1253
+ };
1254
+ onConfirm: {
1255
+ type: PropType<(value: CalendarFormattedValue) => void>;
1256
+ default: () => void;
1257
+ };
1258
+ popupClassName: {
1259
+ type: PropType<string>;
1260
+ };
1261
+ format: {
1262
+ type: PropType<string>;
1263
+ default: string;
1264
+ };
1265
+ separator: {
1266
+ type: PropType<string>;
1267
+ default: string;
1268
+ };
1269
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1270
+ value: PropType<CalendarValue>;
1271
+ disabled: {
1272
+ type: PropType<boolean>;
1273
+ default: boolean;
1274
+ };
1275
+ readonly: {
1276
+ type: PropType<boolean>;
1277
+ default: boolean;
1278
+ };
1279
+ placeholder: {
1280
+ type: PropType<string>;
1281
+ default: string;
1282
+ };
1283
+ readonlyPlaceholder: {
1284
+ type: PropType<string>;
1285
+ default: string;
1286
+ };
1287
+ align: {
1288
+ type: PropType<"left" | "right" | "center">;
1289
+ };
1290
+ className: {
1291
+ type: PropType<string>;
1292
+ default: string;
1293
+ };
1294
+ type: {
1295
+ type: PropType<CalendarType>;
1296
+ default: string;
1297
+ };
1298
+ title: {
1299
+ type: PropType<string>;
1300
+ };
1301
+ view: {
1302
+ type: PropType<boolean>;
1303
+ };
1304
+ onChange: {
1305
+ type: PropType<(value: CalendarFormattedValue) => void>;
1306
+ default: () => void;
1307
+ };
1308
+ formatter: {
1309
+ type: PropType<(item: CalendarDayItem) => CalendarDayItem>;
1310
+ };
1311
+ color: {
1312
+ type: PropType<string>;
1313
+ };
1314
+ formItemProps: {
1315
+ type: PropType<SchemxFormItemProps<Values>>;
1316
+ };
1317
+ contentAlign: {
1318
+ type: PropType<FieldTextAlign>;
1319
+ };
1320
+ switchMode: {
1321
+ type: PropType<CalendarSwitchMode>;
1322
+ };
1323
+ round: {
1324
+ type: PropType<boolean>;
1325
+ };
1326
+ poppable: {
1327
+ type: PropType<boolean>;
1328
+ };
1329
+ maxRange: {
1330
+ type: PropType<string | number>;
1331
+ };
1332
+ position: {
1333
+ type: PropType<PopupPosition>;
1334
+ };
1335
+ teleport: {
1336
+ type: PropType<string | RendererElement | null>;
1337
+ };
1338
+ showMark: {
1339
+ type: PropType<boolean>;
1340
+ };
1341
+ showTitle: {
1342
+ type: PropType<boolean>;
1343
+ };
1344
+ rowHeight: {
1345
+ type: PropType<string | number>;
1346
+ };
1347
+ confirmText: {
1348
+ type: PropType<string>;
1349
+ };
1350
+ rangePrompt: {
1351
+ type: PropType<string>;
1352
+ };
1353
+ lazyRender: {
1354
+ type: PropType<boolean>;
1355
+ };
1356
+ showConfirm: {
1357
+ type: PropType<boolean>;
1358
+ };
1359
+ defaultDate: {
1360
+ type: PropType<Date | Date[] | null>;
1361
+ };
1362
+ allowSameDay: {
1363
+ type: PropType<boolean>;
1364
+ };
1365
+ showSubtitle: {
1366
+ type: PropType<boolean>;
1367
+ };
1368
+ closeOnPopstate: {
1369
+ type: PropType<boolean>;
1370
+ };
1371
+ showRangePrompt: {
1372
+ type: PropType<boolean>;
1373
+ };
1374
+ confirmDisabledText: {
1375
+ type: PropType<string>;
1376
+ };
1377
+ closeOnClickOverlay: {
1378
+ type: PropType<boolean>;
1379
+ };
1380
+ safeAreaInsetTop: {
1381
+ type: PropType<boolean>;
1382
+ };
1383
+ safeAreaInsetBottom: {
1384
+ type: PropType<boolean>;
1385
+ default: boolean;
1386
+ };
1387
+ minDate: {
1388
+ type: PropType<Date>;
1389
+ };
1390
+ maxDate: {
1391
+ type: PropType<Date>;
1392
+ };
1393
+ firstDayOfWeek: {
1394
+ type: PropType<string | number>;
1395
+ };
1396
+ onConfirm: {
1397
+ type: PropType<(value: CalendarFormattedValue) => void>;
1398
+ default: () => void;
1399
+ };
1400
+ popupClassName: {
1401
+ type: PropType<string>;
1402
+ };
1403
+ format: {
1404
+ type: PropType<string>;
1405
+ default: string;
1406
+ };
1407
+ separator: {
1408
+ type: PropType<string>;
1409
+ default: string;
1410
+ };
1411
+ }>> & Readonly<{}>, {
1412
+ disabled: boolean;
1413
+ readonly: boolean;
1414
+ placeholder: string;
1415
+ readonlyPlaceholder: string;
1416
+ className: string;
1417
+ type: CalendarProps["type"];
1418
+ onChange: (value: CalendarFormattedValue) => void;
1419
+ safeAreaInsetBottom: boolean;
1420
+ onConfirm: (value: CalendarFormattedValue) => void;
1421
+ format: string;
1422
+ separator: string;
1423
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1424
+
1425
+ /**
1426
+ * 日历选择器渲染器 Props
1427
+ *
1428
+ * 定义日历选择组件的所有可配置属性。
1429
+ */
1430
+ export declare interface CalendarRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<CalendarProps, "show" | "onUpdate:show">> {
1431
+ /** 当前值,支持字符串、字符串数组或 Date 对象 */
1432
+ value?: CalendarValue;
1433
+ /** 确认回调,用户点击确定按钮时触发 */
1434
+ onConfirm?: (value: CalendarFormattedValue) => void;
1435
+ /** 值变化回调,选中日期时触发 */
1436
+ onChange?: (value: CalendarFormattedValue) => void;
1437
+ /** 自定义 CSS 类名 */
1438
+ className?: string;
1439
+ /** 弹层 CSS 类名 */
1440
+ popupClassName?: string;
1441
+ /** 详情展示模式 */
1442
+ view?: boolean;
1443
+ /** 是否只读 */
1444
+ readonly?: boolean;
1445
+ /** 只读时的占位文本 */
1446
+ readonlyPlaceholder?: string;
1447
+ /** 是否禁用 */
1448
+ disabled?: boolean;
1449
+ /** 日历类型:single 单选、range 范围选择、multiple 多选 */
1450
+ type?: CalendarProps["type"];
1451
+ /** 日历标题 */
1452
+ title?: CalendarProps["title"];
1453
+ /** 日期格式化字符串,如 "yyyy-MM-dd" */
1454
+ format?: string;
1455
+ /** 范围选择时的分隔符 */
1456
+ separator?: string;
1457
+ /**
1458
+ * 内容区域对齐方式
1459
+ */
1460
+ contentAlign?: FieldProps["inputAlign"];
1461
+ }
1462
+
1463
+ export declare type CalendarValue = string | string[] | Date | Date[];
1464
+
1465
+ /**
1466
+ * 级联选择器字段名配置
1467
+ *
1468
+ * 自定义选项数据中各字段对应的键名。
1469
+ */
1470
+ export declare type CascaderFieldNames = CascaderFieldNames_2;
1471
+
1472
+ export declare const CascaderRenderer: DefineComponent<ExtractPropTypes< {
1473
+ value: PropType<CascaderValue>;
1474
+ disabled: {
1475
+ type: PropType<boolean>;
1476
+ default: boolean;
1477
+ };
1478
+ readonly: {
1479
+ type: PropType<boolean>;
1480
+ default: boolean;
1481
+ };
1482
+ placeholder: {
1483
+ type: PropType<string>;
1484
+ default: undefined;
1485
+ };
1486
+ readonlyPlaceholder: {
1487
+ type: PropType<string>;
1488
+ default: string;
1489
+ };
1490
+ align: {
1491
+ type: PropType<"left" | "right" | "center">;
1492
+ };
1493
+ className: {
1494
+ type: PropType<string>;
1495
+ default: string;
1496
+ };
1497
+ title: {
1498
+ type: PropType<string>;
1499
+ default: undefined;
1500
+ };
1501
+ onChange: {
1502
+ type: PropType<(value: CascaderValue) => void>;
1503
+ default: undefined;
1504
+ };
1505
+ formItemProps: {
1506
+ type: PropType<SchemxFormItemProps<Values>>;
1507
+ };
1508
+ contentAlign: {
1509
+ type: PropType<FieldTextAlign>;
1510
+ };
1511
+ onConfirm: {
1512
+ type: PropType<(value: CascaderValue) => void>;
1513
+ default: undefined;
1514
+ };
1515
+ popupClassName: {
1516
+ type: PropType<string>;
1517
+ default: string;
1518
+ };
1519
+ separator: {
1520
+ type: PropType<string>;
1521
+ default: string;
1522
+ };
1523
+ options: {
1524
+ type: PropType<CascaderOption[]>;
1525
+ default: () => never[];
1526
+ };
1527
+ closeable: {
1528
+ type: PropType<boolean>;
1529
+ };
1530
+ swipeable: {
1531
+ type: PropType<boolean>;
1532
+ };
1533
+ closeIcon: {
1534
+ type: PropType<string>;
1535
+ };
1536
+ showHeader: {
1537
+ type: PropType<boolean>;
1538
+ };
1539
+ fieldNames: {
1540
+ type: PropType<CascaderFieldNames_2>;
1541
+ default: () => {
1542
+ text: string;
1543
+ value: string;
1544
+ children: string;
1545
+ };
1546
+ };
1547
+ activeColor: {
1548
+ type: PropType<string>;
1549
+ };
1550
+ showAllLevels: {
1551
+ type: PropType<boolean>;
1552
+ default: boolean;
1553
+ };
1554
+ emitPath: {
1555
+ type: PropType<boolean>;
1556
+ default: boolean;
1557
+ };
1558
+ popupProps: {
1559
+ type: PropType<Partial<Omit<PopupProps, "show">>>;
1560
+ default: () => PopupProps;
1561
+ };
1562
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1563
+ value: PropType<CascaderValue>;
1564
+ disabled: {
1565
+ type: PropType<boolean>;
1566
+ default: boolean;
1567
+ };
1568
+ readonly: {
1569
+ type: PropType<boolean>;
1570
+ default: boolean;
1571
+ };
1572
+ placeholder: {
1573
+ type: PropType<string>;
1574
+ default: undefined;
1575
+ };
1576
+ readonlyPlaceholder: {
1577
+ type: PropType<string>;
1578
+ default: string;
1579
+ };
1580
+ align: {
1581
+ type: PropType<"left" | "right" | "center">;
1582
+ };
1583
+ className: {
1584
+ type: PropType<string>;
1585
+ default: string;
1586
+ };
1587
+ title: {
1588
+ type: PropType<string>;
1589
+ default: undefined;
1590
+ };
1591
+ onChange: {
1592
+ type: PropType<(value: CascaderValue) => void>;
1593
+ default: undefined;
1594
+ };
1595
+ formItemProps: {
1596
+ type: PropType<SchemxFormItemProps<Values>>;
1597
+ };
1598
+ contentAlign: {
1599
+ type: PropType<FieldTextAlign>;
1600
+ };
1601
+ onConfirm: {
1602
+ type: PropType<(value: CascaderValue) => void>;
1603
+ default: undefined;
1604
+ };
1605
+ popupClassName: {
1606
+ type: PropType<string>;
1607
+ default: string;
1608
+ };
1609
+ separator: {
1610
+ type: PropType<string>;
1611
+ default: string;
1612
+ };
1613
+ options: {
1614
+ type: PropType<CascaderOption[]>;
1615
+ default: () => never[];
1616
+ };
1617
+ closeable: {
1618
+ type: PropType<boolean>;
1619
+ };
1620
+ swipeable: {
1621
+ type: PropType<boolean>;
1622
+ };
1623
+ closeIcon: {
1624
+ type: PropType<string>;
1625
+ };
1626
+ showHeader: {
1627
+ type: PropType<boolean>;
1628
+ };
1629
+ fieldNames: {
1630
+ type: PropType<CascaderFieldNames_2>;
1631
+ default: () => {
1632
+ text: string;
1633
+ value: string;
1634
+ children: string;
1635
+ };
1636
+ };
1637
+ activeColor: {
1638
+ type: PropType<string>;
1639
+ };
1640
+ showAllLevels: {
1641
+ type: PropType<boolean>;
1642
+ default: boolean;
1643
+ };
1644
+ emitPath: {
1645
+ type: PropType<boolean>;
1646
+ default: boolean;
1647
+ };
1648
+ popupProps: {
1649
+ type: PropType<Partial<Omit<PopupProps, "show">>>;
1650
+ default: () => PopupProps;
1651
+ };
1652
+ }>> & Readonly<{}>, {
1653
+ disabled: boolean;
1654
+ readonly: boolean;
1655
+ placeholder: string;
1656
+ readonlyPlaceholder: string;
1657
+ className: string;
1658
+ title: string;
1659
+ onChange: (value: CascaderValue) => void;
1660
+ onConfirm: (value: CascaderValue) => void;
1661
+ popupClassName: string;
1662
+ separator: string;
1663
+ options: CascaderProps["options"];
1664
+ fieldNames: CascaderFieldNames;
1665
+ showAllLevels: boolean;
1666
+ emitPath: boolean;
1667
+ popupProps: Partial<Omit<PopupProps, "show">>;
1668
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1669
+
1670
+ /**
1671
+ * 级联选择器渲染器 Props
1672
+ *
1673
+ * 定义级联选择组件的所有可配置属性。
1674
+ */
1675
+ export declare interface CascaderRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<CascaderProps, "modelValue" | "onUpdate:modelValue">> {
1676
+ /** 当前值 */
1677
+ value?: CascaderValue;
1678
+ /** 确认回调,用户选择完成时触发 */
1679
+ onConfirm?: (value: CascaderValue) => void;
1680
+ /** 值变化回调,选中项变化时触发 */
1681
+ onChange?: (value: CascaderValue) => void;
1682
+ /** 自定义 CSS 类名 */
1683
+ className?: string;
1684
+ /** 是否显示所有层级 */
1685
+ showAllLevels?: boolean;
1686
+ /** 是否返回完整路径 */
1687
+ emitPath?: boolean;
1688
+ /** 字段名配置 */
1689
+ fieldNames?: CascaderFieldNames;
1690
+ /** 分隔符 */
1691
+ separator?: string;
1692
+ /** 是否只读 */
1693
+ readonly?: boolean;
1694
+ /** 只读时的占位文本 */
1695
+ readonlyPlaceholder?: string;
1696
+ /** 是否禁用 */
1697
+ disabled?: boolean;
1698
+ /** 选项数据 */
1699
+ options?: CascaderProps["options"];
1700
+ /**
1701
+ * 内容区域对齐方式
1702
+ */
1703
+ contentAlign?: FieldProps["inputAlign"];
1704
+ /** 弹窗标题 */
1705
+ title?: string;
1706
+ /**
1707
+ * Popup 组件 Props 与事件透传
1708
+ *
1709
+ * 默认值:{ round: true, position: "bottom", safeAreaInsetBottom: true, teleport: "body" }
1710
+ *
1711
+ * 通过此属性可覆盖默认 Popup 配置或传入额外事件回调,
1712
+ * 避免组件顶层 Props 与 Popup 原生属性产生命名冲突。
1713
+ *
1714
+ * @example
1715
+ * ```ts
1716
+ * popupProps={{
1717
+ * round: false,
1718
+ * zIndex: 2000,
1719
+ * closeOnClickOverlay: false,
1720
+ * onOpened: () => console.log('popup opened'),
1721
+ * onClickOverlay: () => console.log('overlay clicked'),
1722
+ * }}
1723
+ * ```
1724
+ */
1725
+ popupProps?: Partial<Omit<PopupProps, "show">>;
1726
+ /** 弹窗 CSS 类名 */
1727
+ popupClassName?: string;
1728
+ }
1729
+
1730
+ export declare type CascaderValue = Array<NonNullable<CascaderProps["modelValue"]>>;
1731
+
1732
+ /**
1733
+ * 复选选项
1734
+ *
1735
+ * 描述单个复选项的配置信息。
1736
+ */
1737
+ export declare interface CheckboxOption extends Partial<Omit<CheckboxProps, "modelValue" | "onUpdate:modelValue" | "onChange" | "name">> {
1738
+ /** 选项标签 */
1739
+ label?: string;
1740
+ /** 选项值 */
1741
+ value?: CheckboxOptionValue;
1742
+ /** 扩展字段 */
1743
+ [key: string]: any;
1744
+ }
1745
+
1746
+ declare type CheckboxOptionValue = CheckboxProps["name"];
1747
+
1748
+ export declare const CheckboxRenderer: DefineComponent<ExtractPropTypes< {
1749
+ dict: {
1750
+ type: PropType<SchemxDictionary>;
1751
+ default: undefined;
1752
+ };
1753
+ fieldName: {
1754
+ type: PropType<NamePath>;
1755
+ default: undefined;
1756
+ };
1757
+ }>, () => VNode<RendererNode, RendererElement, {
1758
+ [key: string]: any;
1759
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1760
+ dict: {
1761
+ type: PropType<SchemxDictionary>;
1762
+ default: undefined;
1763
+ };
1764
+ fieldName: {
1765
+ type: PropType<NamePath>;
1766
+ default: undefined;
1767
+ };
1768
+ }>> & Readonly<{}>, {
1769
+ dict: SchemxDictionary<Values, any>;
1770
+ fieldName: string;
1771
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1772
+
1773
+ /**
1774
+ * 复选框渲染器 Props
1775
+ *
1776
+ * 定义复选框组件的所有可配置属性。
1777
+ */
1778
+ export declare interface CheckboxRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<CheckboxProps, "modelValue" | "onUpdate:modelValue" | "onChange" | "name">> {
1779
+ /** 当前值(数组形式) */
1780
+ value?: CheckboxValue;
1781
+ /** 值变化回调 */
1782
+ onChange?: (value: CheckboxValue) => void;
1783
+ /** 选项列表 */
1784
+ options?: CheckboxOption[];
1785
+ /** 字段名映射 */
1786
+ fieldNames?: {
1787
+ /** 标签字段名 */
1788
+ label?: string;
1789
+ /** 值字段名 */
1790
+ value?: string;
1791
+ /** 禁用字段名 */
1792
+ disabled?: string;
1793
+ };
1794
+ /** 自定义 CSS 类名 */
1795
+ className?: string;
1796
+ /** 是否只读 */
1797
+ readonly?: boolean;
1798
+ /** 是否详情展示 */
1799
+ view?: boolean;
1800
+ /** 只读时的占位文本 */
1801
+ readonlyPlaceholder?: string;
1802
+ /** 是否禁用 */
1803
+ disabled?: boolean;
1804
+ }
1805
+
1806
+ export declare type CheckboxValue = CheckboxOptionValue[] | string;
1807
+
1808
+ export declare const DateRenderer: DefineComponent<ExtractPropTypes< {
1809
+ value: PropType<DateValue>;
1810
+ disabled: {
1811
+ type: PropType<boolean>;
1812
+ default: boolean;
1813
+ };
1814
+ readonly: {
1815
+ type: PropType<boolean>;
1816
+ default: boolean;
1817
+ };
1818
+ filter: {
1819
+ type: PropType<(columnType: string, options: PickerOption[], values: string[]) => PickerOption[]>;
1820
+ };
1821
+ placeholder: {
1822
+ type: PropType<string>;
1823
+ default: undefined;
1824
+ };
1825
+ readonlyPlaceholder: {
1826
+ type: PropType<string>;
1827
+ default: string;
1828
+ };
1829
+ align: {
1830
+ type: PropType<"left" | "right" | "center">;
1831
+ };
1832
+ className: {
1833
+ type: PropType<string>;
1834
+ default: string;
1835
+ };
1836
+ title: {
1837
+ type: PropType<string>;
1838
+ };
1839
+ onChange: {
1840
+ type: PropType<(value: string) => void>;
1841
+ default: () => void;
1842
+ };
1843
+ formatter: {
1844
+ type: PropType<(type: string, option: PickerOption) => PickerOption>;
1845
+ };
1846
+ formItemProps: {
1847
+ type: PropType<SchemxFormItemProps<Values>>;
1848
+ };
1849
+ contentAlign: {
1850
+ type: PropType<FieldTextAlign>;
1851
+ };
1852
+ minDate: {
1853
+ type: PropType<Date>;
1854
+ };
1855
+ maxDate: {
1856
+ type: PropType<Date>;
1857
+ };
1858
+ onConfirm: {
1859
+ type: PropType<(value: string) => void>;
1860
+ default: () => void;
1861
+ };
1862
+ popupClassName: {
1863
+ type: PropType<string>;
1864
+ default: string;
1865
+ };
1866
+ format: {
1867
+ type: PropType<string | ((value: any) => string)>;
1868
+ default: string;
1869
+ };
1870
+ popupProps: {
1871
+ type: PropType<Partial<Omit<PopupProps, "show">>>;
1872
+ };
1873
+ onClose: {
1874
+ type: PropType<() => void>;
1875
+ };
1876
+ loading: {
1877
+ type: PropType<boolean>;
1878
+ };
1879
+ allowHtml: {
1880
+ type: PropType<boolean>;
1881
+ };
1882
+ optionHeight: {
1883
+ type: PropType<string | number>;
1884
+ };
1885
+ showToolbar: {
1886
+ type: PropType<boolean>;
1887
+ };
1888
+ swipeDuration: {
1889
+ type: PropType<string | number>;
1890
+ };
1891
+ visibleOptionNum: {
1892
+ type: PropType<string | number>;
1893
+ };
1894
+ cancelButtonText: {
1895
+ type: PropType<string>;
1896
+ };
1897
+ confirmButtonText: {
1898
+ type: PropType<string>;
1899
+ };
1900
+ columnsType: {
1901
+ type: PropType<DatePickerColumnType[]>;
1902
+ };
1903
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1904
+ value: PropType<DateValue>;
1905
+ disabled: {
1906
+ type: PropType<boolean>;
1907
+ default: boolean;
1908
+ };
1909
+ readonly: {
1910
+ type: PropType<boolean>;
1911
+ default: boolean;
1912
+ };
1913
+ filter: {
1914
+ type: PropType<(columnType: string, options: PickerOption[], values: string[]) => PickerOption[]>;
1915
+ };
1916
+ placeholder: {
1917
+ type: PropType<string>;
1918
+ default: undefined;
1919
+ };
1920
+ readonlyPlaceholder: {
1921
+ type: PropType<string>;
1922
+ default: string;
1923
+ };
1924
+ align: {
1925
+ type: PropType<"left" | "right" | "center">;
1926
+ };
1927
+ className: {
1928
+ type: PropType<string>;
1929
+ default: string;
1930
+ };
1931
+ title: {
1932
+ type: PropType<string>;
1933
+ };
1934
+ onChange: {
1935
+ type: PropType<(value: string) => void>;
1936
+ default: () => void;
1937
+ };
1938
+ formatter: {
1939
+ type: PropType<(type: string, option: PickerOption) => PickerOption>;
1940
+ };
1941
+ formItemProps: {
1942
+ type: PropType<SchemxFormItemProps<Values>>;
1943
+ };
1944
+ contentAlign: {
1945
+ type: PropType<FieldTextAlign>;
1946
+ };
1947
+ minDate: {
1948
+ type: PropType<Date>;
1949
+ };
1950
+ maxDate: {
1951
+ type: PropType<Date>;
1952
+ };
1953
+ onConfirm: {
1954
+ type: PropType<(value: string) => void>;
1955
+ default: () => void;
1956
+ };
1957
+ popupClassName: {
1958
+ type: PropType<string>;
1959
+ default: string;
1960
+ };
1961
+ format: {
1962
+ type: PropType<string | ((value: any) => string)>;
1963
+ default: string;
1964
+ };
1965
+ popupProps: {
1966
+ type: PropType<Partial<Omit<PopupProps, "show">>>;
1967
+ };
1968
+ onClose: {
1969
+ type: PropType<() => void>;
1970
+ };
1971
+ loading: {
1972
+ type: PropType<boolean>;
1973
+ };
1974
+ allowHtml: {
1975
+ type: PropType<boolean>;
1976
+ };
1977
+ optionHeight: {
1978
+ type: PropType<string | number>;
1979
+ };
1980
+ showToolbar: {
1981
+ type: PropType<boolean>;
1982
+ };
1983
+ swipeDuration: {
1984
+ type: PropType<string | number>;
1985
+ };
1986
+ visibleOptionNum: {
1987
+ type: PropType<string | number>;
1988
+ };
1989
+ cancelButtonText: {
1990
+ type: PropType<string>;
1991
+ };
1992
+ confirmButtonText: {
1993
+ type: PropType<string>;
1994
+ };
1995
+ columnsType: {
1996
+ type: PropType<DatePickerColumnType[]>;
1997
+ };
1998
+ }>> & Readonly<{}>, {
1999
+ disabled: boolean;
2000
+ readonly: boolean;
2001
+ placeholder: string;
2002
+ readonlyPlaceholder: string;
2003
+ className: string;
2004
+ onChange: (value: string) => void;
2005
+ onConfirm: (value: string) => void;
2006
+ popupClassName: string;
2007
+ format: string | ((value: any) => string);
2008
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2009
+
2010
+ /**
2011
+ * 日期选择渲染器 Props
2012
+ *
2013
+ * 定义日期选择组件的所有可配置属性。
2014
+ */
2015
+ export declare interface DateRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<DatePickerProps, "modelValue" | "onUpdate:modelValue">> {
2016
+ /** 当前值,支持字符串、字符串数组或 Date 对象 */
2017
+ value?: DateValue;
2018
+ /** 确认回调,用户点击确定按钮时触发 */
2019
+ onConfirm?: (value: string) => void;
2020
+ /** 值变化回调,选中日期时触发 */
2021
+ onChange?: (value: string) => void;
2022
+ /** 日期格式化字符串或格式化函数 */
2023
+ format?: string | ((value: any) => string);
2024
+ /** 自定义 CSS 类名 */
2025
+ className?: string;
2026
+ /** 是否只读 */
2027
+ readonly?: boolean;
2028
+ /** 只读时的占位文本 */
2029
+ readonlyPlaceholder?: string;
2030
+ /** 是否禁用 */
2031
+ disabled?: boolean;
2032
+ /**
2033
+ * 内容区域对齐方式
2034
+ */
2035
+ contentAlign?: FieldProps["inputAlign"];
2036
+ /**
2037
+ * Popup 组件 Props 与事件透传
2038
+ *
2039
+ * 默认值:{ round: true, position: "bottom", safeAreaInsetBottom: true, teleport: "body" }
2040
+ *
2041
+ * 通过此属性可覆盖默认 Popup 配置或传入额外事件回调,
2042
+ * 避免组件顶层 Props 与 Popup 原生属性产生命名冲突。
2043
+ *
2044
+ * @example
2045
+ * ```ts
2046
+ * popupProps={{
2047
+ * round: false,
2048
+ * zIndex: 2000,
2049
+ * closeOnClickOverlay: false,
2050
+ * onOpened: () => console.log('popup opened'),
2051
+ * onClickOverlay: () => console.log('overlay clicked'),
2052
+ * }}
2053
+ * ```
2054
+ */
2055
+ popupProps?: Partial<Omit<PopupProps, "show">>;
2056
+ /** 弹窗 CSS 类名 */
2057
+ popupClassName?: string;
2058
+ /**
2059
+ * 关闭回调
2060
+ *
2061
+ * 用户点击遮罩层或 Cascader 关闭按钮时触发,
2062
+ * 区别于 onConfirm(仅在选择完成时触发)。
2063
+ */
2064
+ onClose?: () => void;
2065
+ }
2066
+
2067
+ export declare type DateValue = string | string[] | Date;
2068
+
2069
+ export { default_2 as SchemxForm }
2070
+ export default default_2;
2071
+
2072
+ /**
2073
+ * 默认渲染器类型列表
2074
+ */
2075
+ export declare const DEFAULT_RENDERER_TYPES: readonly ["input", "text", "textarea", "number", "switch", "radio", "checkbox", "date", "calendar", "picker", "selectPicker", "selector", "sensitiveInput", "rate", "slider", "stepper", "upload", "cascader"];
2076
+
2077
+ declare function defaultMaskFormatter(value: string): string;
2078
+
2079
+ /**
2080
+ * 在树形数据中查找指定值的节点,返回匹配节点及其路径信息。
2081
+ *
2082
+ * 支持自定义字段名映射,适用于 Cascader、Picker 等树形选择组件。
2083
+ *
2084
+ * @param tree - 树形数据数组
2085
+ * @param targetValue - 要查找的目标值
2086
+ * @param options - 字段名配置
2087
+ * @param options.labelKey - label 字段名,默认 `"label"`
2088
+ * @param options.valueKey - value 字段名,默认 `"value"`
2089
+ * @param options.childrenKey - children 字段名,默认 `"children"`
2090
+ *
2091
+ * @returns 查找结果,包含匹配节点、label 路径和 value 路径
2092
+ *
2093
+ * @example
2094
+ * const result = findTreeItem(options, "guangzhou", {
2095
+ * labelKey: "text",
2096
+ * valueKey: "value",
2097
+ * childrenKey: "children",
2098
+ * })
2099
+ * // result.labels => ["广东", "广州"]
2100
+ * // result.values => ["guangdong", "guangzhou"]
2101
+ */
2102
+ export declare function findTreeItem(tree: any[], targetValue: any, options?: {
2103
+ labelKey?: string;
2104
+ valueKey?: string;
2105
+ childrenKey?: string;
2106
+ }): FindTreeItemResult;
2107
+
2108
+ /**
2109
+ * 树形查找结果
2110
+ */
2111
+ export declare interface FindTreeItemResult {
2112
+ /** 匹配节点 */
2113
+ node: Record<string, any> | null;
2114
+ /** 从根到匹配节点的 label 路径 */
2115
+ labels: string[];
2116
+ /** 从根到匹配节点的 value 路径 */
2117
+ values: any[];
2118
+ }
2119
+
2120
+ /**
2121
+ * Vant 渲染器工具函数
2122
+ *
2123
+ * 提供渲染器组件中常用的属性提取、树形数据查找、文件名解析等工具。
2124
+ *
2125
+ * @module utils
2126
+ */
2127
+ /**
2128
+ * 从 attrs 对象中获取指定属性值,不存在时返回默认值。
2129
+ *
2130
+ * 用于从 Vue 组件的 `attrs` 中安全地提取透传属性,
2131
+ * 常见场景如获取 `align`、`rightIcon` 等 Vant Field 的配置。
2132
+ *
2133
+ * @param attrs - Vue 组件的 attrs 对象
2134
+ * @param key - 属性名
2135
+ * @param defaultValue - 默认值
2136
+ *
2137
+ * @returns 属性值或默认值
2138
+ *
2139
+ * @example
2140
+ * getFieldProps(attrs, "align", "right")
2141
+ * getFieldProps(attrs, "rightIcon", "arrow")
2142
+ */
2143
+ export declare function getFieldProps<T extends Record<string, any>>(attrs: T, key: keyof T, defaultValue?: T[typeof key]): T[typeof key];
2144
+
2145
+ /**
2146
+ * 从 URL 或文件路径中提取文件名。
2147
+ *
2148
+ * 去除查询参数和 hash 后,取最后一段路径作为文件名。
2149
+ * 用于上传组件中生成文件的唯一标识。
2150
+ *
2151
+ * @param url - 文件 URL 或路径
2152
+ *
2153
+ * @returns 文件名字符串,无法解析时返回原始输入或时间戳
2154
+ *
2155
+ * @example
2156
+ * getFileName("https://cdn.example.com/uploads/photo.jpg?t=123")
2157
+ * // => "photo.jpg"
2158
+ *
2159
+ * getFileName("blob:http://localhost:3000/abc-def")
2160
+ * // => "abc-def"
2161
+ */
2162
+ export declare function getFileName(url: string | undefined | null): string;
2163
+
2164
+ export declare const InputRenderer: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
2165
+
2166
+ /**
2167
+ * 输入渲染器 Props
2168
+ *
2169
+ * 这里保持为显式接口,避免 Vue SFC 编译器解析跨文件 extends 时失败。
2170
+ */
2171
+ export declare interface InputRendererProps {
2172
+ /** 当前值 */
2173
+ value?: InputValue;
2174
+ /** 值变化回调 */
2175
+ onChange?: (value: string) => void;
2176
+ /** 失焦回调 */
2177
+ onBlur?: (event: FocusEvent) => void;
2178
+ /** 聚焦回调 */
2179
+ onFocus?: (event: FocusEvent) => void;
2180
+ /** 输入类型 */
2181
+ type?: FieldProps["type"];
2182
+ /** 是否只读 */
2183
+ readonly?: boolean;
2184
+ /** 是否禁用 */
2185
+ disabled?: boolean;
2186
+ /** 占位提示文本 */
2187
+ placeholder?: string;
2188
+ /** 是否自动聚焦 */
2189
+ autofocus?: boolean;
2190
+ /** 最大输入长度 */
2191
+ maxlength?: number | string;
2192
+ /** 最小值(数字类型) */
2193
+ min?: number;
2194
+ /** 最大值(数字类型) */
2195
+ max?: number;
2196
+ /** 文本域默认行数 */
2197
+ rows?: number | string;
2198
+ /** 文本域自适应高度配置 */
2199
+ autosize?: boolean | {
2200
+ minRows?: number;
2201
+ maxRows?: number;
2202
+ };
2203
+ /** 自定义格式化函数 */
2204
+ formatter?: FieldProps["formatter"];
2205
+ /** 格式化触发时机 */
2206
+ formatTrigger?: FieldProps["formatTrigger"];
2207
+ /** 是否可清除 */
2208
+ clearable?: FieldProps["clearable"];
2209
+ /** 清除图标名称 */
2210
+ clearIcon?: FieldProps["clearIcon"];
2211
+ /** 清除按钮触发方式 */
2212
+ clearTrigger?: FieldProps["clearTrigger"];
2213
+ /** 左侧图标名称 */
2214
+ leftIcon?: FieldProps["leftIcon"];
2215
+ /** 右侧图标名称 */
2216
+ rightIcon?: FieldProps["rightIcon"];
2217
+ /** 是否显示字数统计 */
2218
+ showWordLimit?: FieldProps["showWordLimit"];
2219
+ /** 自定义 CSS 类名 */
2220
+ className?: string;
2221
+ /** 只读时的占位文本 */
2222
+ readonlyPlaceholder?: string;
2223
+ /** FormItem 组件 Props */
2224
+ formItemProps?: SchemxFormItemProps_2;
2225
+ /** 自动完成属性 */
2226
+ autocomplete?: string;
2227
+ /** 自动大写属性 */
2228
+ autocapitalize?: string;
2229
+ /** 自动纠正属性 */
2230
+ autocorrect?: string;
2231
+ /** 回车键类型提示 */
2232
+ enterkeyhint?: FieldProps["enterkeyhint"];
2233
+ /** 拼写检查 */
2234
+ spellcheck?: boolean | null;
2235
+ /** 输入模式 */
2236
+ inputmode?: FieldProps["inputmode"];
2237
+ /** 文本对齐方式 */
2238
+ align?: "left" | "right" | "center";
2239
+ }
2240
+
2241
+ export declare type InputValue = FieldProps["modelValue"];
2242
+
2243
+ export declare const NumberRenderer: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, ReturnType<typeof __VLS_template_4>>;
2244
+
2245
+ /**
2246
+ * 数字输入渲染器 Props
2247
+ *
2248
+ * 定义数字输入组件的所有可配置属性。
2249
+ */
2250
+ export declare interface NumberRendererProps extends Omit<SchemxInputProps, "value" | "type" | "onChange"> {
2251
+ /** 当前值 */
2252
+ value?: NumberValue;
2253
+ /** 值变化回调 */
2254
+ onChange?: (value: string) => void;
2255
+ /** 失焦回调 */
2256
+ onBlur?: (event: FocusEvent) => void;
2257
+ /** 聚焦回调 */
2258
+ onFocus?: (event: FocusEvent) => void;
2259
+ /** 自定义 CSS 类名 */
2260
+ className?: string;
2261
+ /** 输入类型:number 支持小数,digit 仅支持整数 */
2262
+ type?: "number" | "digit";
2263
+ /** 是否只读 */
2264
+ readonly?: boolean;
2265
+ /** 只读时的占位文本 */
2266
+ readonlyPlaceholder?: string;
2267
+ /** 是否禁用 */
2268
+ disabled?: boolean;
2269
+ /** 文本对齐方式 */
2270
+ align?: "left" | "center" | "right";
2271
+ /** 是否可清除 */
2272
+ clearable?: boolean;
2273
+ /** 最小值 */
2274
+ min?: number;
2275
+ /** 最大值 */
2276
+ max?: number;
2277
+ /** 最大输入长度 */
2278
+ maxlength?: number | string;
2279
+ }
2280
+
2281
+ export declare type NumberValue = InputValue;
2282
+
2283
+ /**
2284
+ * 选择渲染器字段名配置
2285
+ *
2286
+ * 自定义选项数据中各字段对应的键名。
2287
+ */
2288
+ export declare type PickerFieldNames = PickerFieldNames_2;
2289
+
2290
+ export declare const PickerRenderer: DefineComponent<ExtractPropTypes< {
2291
+ dict: {
2292
+ type: PropType<SchemxDictionary>;
2293
+ default: undefined;
2294
+ };
2295
+ fieldName: {
2296
+ type: PropType<NamePath>;
2297
+ default: undefined;
2298
+ };
2299
+ }>, () => VNode<RendererNode, RendererElement, {
2300
+ [key: string]: any;
2301
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2302
+ dict: {
2303
+ type: PropType<SchemxDictionary>;
2304
+ default: undefined;
2305
+ };
2306
+ fieldName: {
2307
+ type: PropType<NamePath>;
2308
+ default: undefined;
2309
+ };
2310
+ }>> & Readonly<{}>, {
2311
+ dict: SchemxDictionary<Values, any>;
2312
+ fieldName: string;
2313
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2314
+
2315
+ /**
2316
+ * 选择渲染器 Props
2317
+ *
2318
+ * 定义选择组件的所有可配置属性。
2319
+ */
2320
+ export declare interface PickerRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<PickerProps, "modelValue" | "onUpdate:modelValue">> {
2321
+ /** 当前值 */
2322
+ value?: PickerValue;
2323
+ /** 确认回调,用户点击确定按钮时触发 */
2324
+ onConfirm?: (value: PickerValue, detail: PickerConfirmEventParams) => void;
2325
+ /** 值变化回调,选中项变化时触发 */
2326
+ onChange?: (value: PickerValue, detail: PickerConfirmEventParams) => void;
2327
+ /** 自定义 CSS 类名 */
2328
+ className?: string;
2329
+ /** 是否返回完整路径 */
2330
+ emitPath?: boolean;
2331
+ /** 是否显示所有层级 */
2332
+ showAllLevels?: boolean;
2333
+ /** 分隔符 */
2334
+ separator?: string;
2335
+ /** 是否只读 */
2336
+ readonly?: boolean;
2337
+ /** 只读时的占位文本 */
2338
+ readonlyPlaceholder?: string;
2339
+ /** 是否禁用 */
2340
+ disabled?: boolean;
2341
+ /** 弹窗标题 */
2342
+ title?: string;
2343
+ /** 选项数据 */
2344
+ options?: PickerOption[];
2345
+ /** Picker 原生列数据 */
2346
+ columns?: PickerProps["columns"];
2347
+ /** Picker 原生字段名配置 */
2348
+ columnsFieldNames?: PickerProps["columnsFieldNames"];
2349
+ /** 字段名配置 */
2350
+ fieldNames?: PickerFieldNames;
2351
+ /**
2352
+ * 内容区域对齐方式
2353
+ */
2354
+ contentAlign?: FieldProps["inputAlign"];
2355
+ /**
2356
+ * Popup 组件 Props 与事件透传
2357
+ *
2358
+ * 默认值:{ round: true, position: "bottom", safeAreaInsetBottom: true, teleport: "body" }
2359
+ *
2360
+ * 通过此属性可覆盖默认 Popup 配置或传入额外事件回调,
2361
+ * 避免组件顶层 Props 与 Popup 原生属性产生命名冲突。
2362
+ *
2363
+ * @example
2364
+ * ```ts
2365
+ * popupProps={{
2366
+ * round: false,
2367
+ * zIndex: 2000,
2368
+ * closeOnClickOverlay: false,
2369
+ * onOpened: () => console.log('popup opened'),
2370
+ * onClickOverlay: () => console.log('overlay clicked'),
2371
+ * }}
2372
+ * ```
2373
+ */
2374
+ popupProps?: Partial<Omit<PopupProps, "show">>;
2375
+ /** 弹窗 CSS 类名 */
2376
+ popupClassName?: string;
2377
+ }
2378
+
2379
+ export declare type PickerValue = PickerProps["modelValue"][number] | PickerProps["modelValue"];
2380
+
2381
+ /**
2382
+ * 单选选项
2383
+ *
2384
+ * 描述单个单选项的配置信息。
2385
+ */
2386
+ export declare interface RadioOption extends Partial<Omit<RadioProps, "modelValue" | "onUpdate:modelValue" | "name">> {
2387
+ /** 选项标签 */
2388
+ label?: string;
2389
+ /** 选项值 */
2390
+ value?: RadioValue;
2391
+ /** 扩展字段 */
2392
+ [key: string]: any;
2393
+ }
2394
+
2395
+ export declare const RadioRenderer: DefineComponent<ExtractPropTypes< {
2396
+ dict: {
2397
+ type: PropType<SchemxDictionary>;
2398
+ default: undefined;
2399
+ };
2400
+ fieldName: {
2401
+ type: PropType<NamePath>;
2402
+ default: undefined;
2403
+ };
2404
+ }>, () => VNode<RendererNode, RendererElement, {
2405
+ [key: string]: any;
2406
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2407
+ dict: {
2408
+ type: PropType<SchemxDictionary>;
2409
+ default: undefined;
2410
+ };
2411
+ fieldName: {
2412
+ type: PropType<NamePath>;
2413
+ default: undefined;
2414
+ };
2415
+ }>> & Readonly<{}>, {
2416
+ dict: SchemxDictionary<Values, any>;
2417
+ fieldName: string;
2418
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2419
+
2420
+ /**
2421
+ * 单选框渲染器 Props
2422
+ *
2423
+ * 定义单选框组件的所有可配置属性。
2424
+ */
2425
+ export declare interface RadioRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<RadioProps, "modelValue" | "onUpdate:modelValue" | "name">> {
2426
+ /** 当前值 */
2427
+ value?: RadioValue;
2428
+ /** 值变化回调 */
2429
+ onChange?: (value: RadioValue) => void;
2430
+ /** 选项列表 */
2431
+ options?: RadioOption[];
2432
+ /** 自定义 CSS 类名 */
2433
+ className?: string;
2434
+ /** 字段名映射 */
2435
+ fieldNames?: {
2436
+ /** 标签字段名 */
2437
+ label?: string;
2438
+ /** 值字段名 */
2439
+ value?: string;
2440
+ /** 禁用字段名 */
2441
+ disabled?: string;
2442
+ };
2443
+ /** 是否只读 */
2444
+ readonly?: boolean;
2445
+ /** 是否详情展示 */
2446
+ view?: boolean;
2447
+ /** 只读时的占位文本 */
2448
+ readonlyPlaceholder?: string;
2449
+ /** 是否禁用 */
2450
+ disabled?: boolean;
2451
+ }
2452
+
2453
+ export declare type RadioValue = RadioProps["name"];
2454
+
2455
+ export declare const RateRenderer: DefineComponent<ExtractPropTypes< {
2456
+ value: PropType<RateValue>;
2457
+ disabled: {
2458
+ type: PropType<boolean>;
2459
+ default: boolean;
2460
+ };
2461
+ readonly: {
2462
+ type: PropType<boolean>;
2463
+ default: boolean;
2464
+ };
2465
+ placeholder: {
2466
+ type: PropType<string>;
2467
+ };
2468
+ readonlyPlaceholder: {
2469
+ type: PropType<string>;
2470
+ default: string;
2471
+ };
2472
+ align: {
2473
+ type: PropType<"left" | "right" | "center">;
2474
+ };
2475
+ className: {
2476
+ type: PropType<string>;
2477
+ default: string;
2478
+ };
2479
+ onChange: {
2480
+ type: PropType<(value: RateValue) => void>;
2481
+ default: () => void;
2482
+ };
2483
+ icon: {
2484
+ type: PropType<string>;
2485
+ };
2486
+ size: {
2487
+ type: PropType<string | number>;
2488
+ };
2489
+ iconPrefix: {
2490
+ type: PropType<string>;
2491
+ };
2492
+ clearable: {
2493
+ type: PropType<boolean>;
2494
+ };
2495
+ color: {
2496
+ type: PropType<string>;
2497
+ };
2498
+ formItemProps: {
2499
+ type: PropType<SchemxFormItemProps<Values>>;
2500
+ };
2501
+ count: {
2502
+ type: PropType<string | number>;
2503
+ default: number;
2504
+ };
2505
+ gutter: {
2506
+ type: PropType<string | number>;
2507
+ };
2508
+ voidIcon: {
2509
+ type: PropType<string>;
2510
+ };
2511
+ allowHalf: {
2512
+ type: PropType<boolean>;
2513
+ default: boolean;
2514
+ };
2515
+ voidColor: {
2516
+ type: PropType<string>;
2517
+ };
2518
+ touchable: {
2519
+ type: PropType<boolean>;
2520
+ };
2521
+ disabledColor: {
2522
+ type: PropType<string>;
2523
+ };
2524
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2525
+ value: PropType<RateValue>;
2526
+ disabled: {
2527
+ type: PropType<boolean>;
2528
+ default: boolean;
2529
+ };
2530
+ readonly: {
2531
+ type: PropType<boolean>;
2532
+ default: boolean;
2533
+ };
2534
+ placeholder: {
2535
+ type: PropType<string>;
2536
+ };
2537
+ readonlyPlaceholder: {
2538
+ type: PropType<string>;
2539
+ default: string;
2540
+ };
2541
+ align: {
2542
+ type: PropType<"left" | "right" | "center">;
2543
+ };
2544
+ className: {
2545
+ type: PropType<string>;
2546
+ default: string;
2547
+ };
2548
+ onChange: {
2549
+ type: PropType<(value: RateValue) => void>;
2550
+ default: () => void;
2551
+ };
2552
+ icon: {
2553
+ type: PropType<string>;
2554
+ };
2555
+ size: {
2556
+ type: PropType<string | number>;
2557
+ };
2558
+ iconPrefix: {
2559
+ type: PropType<string>;
2560
+ };
2561
+ clearable: {
2562
+ type: PropType<boolean>;
2563
+ };
2564
+ color: {
2565
+ type: PropType<string>;
2566
+ };
2567
+ formItemProps: {
2568
+ type: PropType<SchemxFormItemProps<Values>>;
2569
+ };
2570
+ count: {
2571
+ type: PropType<string | number>;
2572
+ default: number;
2573
+ };
2574
+ gutter: {
2575
+ type: PropType<string | number>;
2576
+ };
2577
+ voidIcon: {
2578
+ type: PropType<string>;
2579
+ };
2580
+ allowHalf: {
2581
+ type: PropType<boolean>;
2582
+ default: boolean;
2583
+ };
2584
+ voidColor: {
2585
+ type: PropType<string>;
2586
+ };
2587
+ touchable: {
2588
+ type: PropType<boolean>;
2589
+ };
2590
+ disabledColor: {
2591
+ type: PropType<string>;
2592
+ };
2593
+ }>> & Readonly<{}>, {
2594
+ disabled: RateProps["disabled"];
2595
+ readonly: RateProps["readonly"];
2596
+ readonlyPlaceholder: string;
2597
+ className: string;
2598
+ onChange: (value: RateValue) => void;
2599
+ count: RateProps["count"];
2600
+ allowHalf: RateProps["allowHalf"];
2601
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2602
+
2603
+ /**
2604
+ * 评分渲染器 Props
2605
+ *
2606
+ * 定义评分组件的所有可配置属性。
2607
+ */
2608
+ export declare interface RateRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<RateProps, "modelValue" | "onUpdate:modelValue" | "onChange">> {
2609
+ /** 当前评分值 */
2610
+ value?: RateValue;
2611
+ /** 值变化回调 */
2612
+ onChange?: (value: RateValue) => void;
2613
+ /** 星星总数 */
2614
+ count?: RateProps["count"];
2615
+ /** 是否允许半星 */
2616
+ allowHalf?: RateProps["allowHalf"];
2617
+ /** 自定义 CSS 类名 */
2618
+ className?: string;
2619
+ /** 是否只读 */
2620
+ readonly?: RateProps["readonly"];
2621
+ /** 只读时的占位文本 */
2622
+ readonlyPlaceholder?: string;
2623
+ /** 是否禁用 */
2624
+ disabled?: RateProps["disabled"];
2625
+ }
2626
+
2627
+ export declare type RateValue = RateProps["modelValue"];
2628
+
2629
+ export { rendererRegistry }
2630
+
2631
+ /**
2632
+ * 输入组件 Props
2633
+ *
2634
+ * 定义输入组件的所有可配置属性。
2635
+ */
2636
+ declare interface SchemxInputProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value"> {
2637
+ /** 当前值 */
2638
+ value?: InputValue;
2639
+ /** 值变化回调 */
2640
+ onChange?: (value: string) => void;
2641
+ /** 失焦回调 */
2642
+ onBlur?: (event: FocusEvent) => void;
2643
+ /** 聚焦回调 */
2644
+ onFocus?: (event: FocusEvent) => void;
2645
+ /** 输入类型 */
2646
+ type?: FieldProps["type"];
2647
+ /** 是否只读 */
2648
+ readonly?: boolean;
2649
+ /** 是否禁用 */
2650
+ disabled?: boolean;
2651
+ /** 是否自动聚焦 */
2652
+ autofocus?: boolean;
2653
+ /** 最大输入长度 */
2654
+ maxlength?: number | string;
2655
+ /** 最小值(数字类型) */
2656
+ min?: number;
2657
+ /** 最大值(数字类型) */
2658
+ max?: number;
2659
+ /** 文本域默认行数 */
2660
+ rows?: number | string;
2661
+ /** 文本域自适应高度配置 */
2662
+ autosize?: boolean | FieldAutosizeConfig;
2663
+ /** 自定义格式化函数 */
2664
+ formatter?: FieldProps["formatter"];
2665
+ /** 格式化触发时机 */
2666
+ formatTrigger?: FieldProps["formatTrigger"];
2667
+ /** 是否可清除 */
2668
+ clearable?: FieldProps["clearable"];
2669
+ /** 清除图标名称 */
2670
+ clearIcon?: FieldProps["clearIcon"];
2671
+ /** 清除按钮触发方式 */
2672
+ clearTrigger?: FieldProps["clearTrigger"];
2673
+ /** 左侧图标名称 */
2674
+ leftIcon?: FieldProps["leftIcon"];
2675
+ /** 右侧图标名称 */
2676
+ rightIcon?: FieldProps["rightIcon"];
2677
+ /** 是否显示字数统计 */
2678
+ showWordLimit?: FieldProps["showWordLimit"];
2679
+ /** 自定义 CSS 类名 */
2680
+ className?: string;
2681
+ /** 只读时的占位文本 */
2682
+ readonlyPlaceholder?: string;
2683
+ /** 自动完成属性 */
2684
+ autocomplete?: string;
2685
+ /** 自动大写属性 */
2686
+ autocapitalize?: string;
2687
+ /** 自动纠正属性 */
2688
+ autocorrect?: string;
2689
+ /** 回车键类型提示 */
2690
+ enterkeyhint?: FieldProps["enterkeyhint"];
2691
+ /** 拼写检查 */
2692
+ spellcheck?: boolean | null;
2693
+ /** 输入模式 */
2694
+ inputmode?: FieldProps["inputmode"];
2695
+ /** 文本对齐方式 */
2696
+ align?: "left" | "right" | "center";
2697
+ }
2698
+
2699
+ /**
2700
+ * 选择器选项
2701
+ *
2702
+ * 描述单个选择器选项的配置信息。
2703
+ */
2704
+ export declare interface SelectorOption {
2705
+ /** 选项标签 */
2706
+ label?: string;
2707
+ /** 选项值 */
2708
+ value?: SelectValue;
2709
+ /** 是否禁用 */
2710
+ disabled?: boolean;
2711
+ /** 扩展字段 */
2712
+ [key: string]: any;
2713
+ }
2714
+
2715
+ /**
2716
+ * 选择器子组件 Props
2717
+ *
2718
+ * 定义选择器子组件的属性。
2719
+ */
2720
+ export declare interface SelectorProps {
2721
+ /** 当前值 */
2722
+ modelValue?: SelectValue;
2723
+ /** 选项列表 */
2724
+ options?: SelectorOption[];
2725
+ /** 是否多选 */
2726
+ multiple?: boolean;
2727
+ /** 字段名映射 */
2728
+ fieldNames?: {
2729
+ /** 标签字段名 */
2730
+ label?: string;
2731
+ /** 值字段名 */
2732
+ value?: string;
2733
+ /** 禁用字段名 */
2734
+ disabled?: string;
2735
+ };
2736
+ /** 是否禁用 */
2737
+ disabled?: boolean;
2738
+ }
2739
+
2740
+ export declare const SelectorRenderer: DefineComponent<ExtractPropTypes< {
2741
+ dict: {
2742
+ type: PropType<SchemxDictionary>;
2743
+ default: undefined;
2744
+ };
2745
+ fieldName: {
2746
+ type: PropType<NamePath>;
2747
+ default: undefined;
2748
+ };
2749
+ }>, () => VNode<RendererNode, RendererElement, {
2750
+ [key: string]: any;
2751
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2752
+ dict: {
2753
+ type: PropType<SchemxDictionary>;
2754
+ default: undefined;
2755
+ };
2756
+ fieldName: {
2757
+ type: PropType<NamePath>;
2758
+ default: undefined;
2759
+ };
2760
+ }>> & Readonly<{}>, {
2761
+ dict: SchemxDictionary<Values, any>;
2762
+ fieldName: string;
2763
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2764
+
2765
+ /**
2766
+ * 选择组渲染器 Props
2767
+ *
2768
+ * 定义选择组组件的所有可配置属性。
2769
+ */
2770
+ export declare interface SelectorRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value"> {
2771
+ /** 当前值 */
2772
+ value?: SelectValue;
2773
+ /** 值变化回调 */
2774
+ onChange?: (value: SelectValue) => void;
2775
+ /** 选项列表 */
2776
+ options?: SelectorOption[];
2777
+ /** 自定义 CSS 类名 */
2778
+ className?: string;
2779
+ /** 字段名映射 */
2780
+ fieldNames?: {
2781
+ /** 标签字段名 */
2782
+ label?: string;
2783
+ /** 值字段名 */
2784
+ value?: string;
2785
+ /** 禁用字段名 */
2786
+ disabled?: string;
2787
+ };
2788
+ /** 是否只读 */
2789
+ readonly?: boolean;
2790
+ /** 是否详情展示 */
2791
+ view?: boolean;
2792
+ /** 只读时的占位文本 */
2793
+ readonlyPlaceholder?: string;
2794
+ /** 是否禁用 */
2795
+ disabled?: boolean;
2796
+ }
2797
+
2798
+ declare interface SelectPickerConfirmEventParams {
2799
+ value: SelectPickerValue;
2800
+ selectedItems: SelectPickerOption | SelectPickerOption[];
2801
+ }
2802
+
2803
+ export declare type SelectPickerFieldNames = {
2804
+ label?: string;
2805
+ value?: string;
2806
+ disabled?: string;
2807
+ };
2808
+
2809
+ export declare interface SelectPickerOption {
2810
+ /** 选项标签 */
2811
+ label?: string;
2812
+ /** 选项值 */
2813
+ value?: SelectPickerPrimitiveValue;
2814
+ /** 是否禁用 */
2815
+ disabled?: boolean;
2816
+ /** 扩展字段 */
2817
+ [key: string]: any;
2818
+ }
2819
+
2820
+ declare type SelectPickerPrimitiveValue = RadioProps["name"] | CheckboxProps["name"];
2821
+
2822
+ export declare const SelectPickerRenderer: DefineComponent<ExtractPropTypes< {
2823
+ dict: {
2824
+ type: PropType<SchemxDictionary>;
2825
+ default: undefined;
2826
+ };
2827
+ fieldName: {
2828
+ type: PropType<NamePath>;
2829
+ default: undefined;
2830
+ };
2831
+ }>, () => VNode<RendererNode, RendererElement, {
2832
+ [key: string]: any;
2833
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2834
+ dict: {
2835
+ type: PropType<SchemxDictionary>;
2836
+ default: undefined;
2837
+ };
2838
+ fieldName: {
2839
+ type: PropType<NamePath>;
2840
+ default: undefined;
2841
+ };
2842
+ }>> & Readonly<{}>, {
2843
+ dict: SchemxDictionary<Values, any>;
2844
+ fieldName: string;
2845
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2846
+
2847
+ /**
2848
+ * 弹窗选择渲染器 Props
2849
+ *
2850
+ * 使用 Vant Field + Popup + Checkbox/Radio 组合实现单选/多选弹窗。
2851
+ */
2852
+ export declare interface SelectPickerRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value"> {
2853
+ /** 当前值 */
2854
+ value?: SelectPickerValue;
2855
+ /** 值变化回调,确认选择后触发 */
2856
+ onChange?: (value: SelectPickerValue, detail: SelectPickerConfirmEventParams) => void;
2857
+ /** 确认回调,用户点击确定按钮时触发 */
2858
+ onConfirm?: (value: SelectPickerValue, detail: SelectPickerConfirmEventParams) => void;
2859
+ /** 自定义 CSS 类名 */
2860
+ className?: string;
2861
+ /** 弹窗 CSS 类名 */
2862
+ popupClassName?: string;
2863
+ /** 详情展示模式 */
2864
+ view?: boolean;
2865
+ /** 选项数据 */
2866
+ options?: SelectPickerOption[];
2867
+ /** Picker 原生列数据兼容字段 */
2868
+ columns?: SelectPickerOption[];
2869
+ /** 字段名配置 */
2870
+ fieldNames?: SelectPickerFieldNames;
2871
+ /** 单复选选择器类型 */
2872
+ type?: SelectPickerType;
2873
+ /** 是否只读 */
2874
+ readonly?: boolean;
2875
+ /** 只读时的占位文本 */
2876
+ readonlyPlaceholder?: string;
2877
+ /** 是否禁用 */
2878
+ disabled?: boolean;
2879
+ /** 弹窗标题 */
2880
+ title?: string;
2881
+ /** 内容区域对齐方式 */
2882
+ contentAlign?: FieldProps["inputAlign"];
2883
+ /** Popup 组件 Props 与事件透传 */
2884
+ popupProps?: Partial<Omit<PopupProps, "show">>;
2885
+ }
2886
+
2887
+ declare type SelectPickerType = "radio" | "checkbox";
2888
+
2889
+ export declare type SelectPickerValue = SelectPickerPrimitiveValue | SelectPickerPrimitiveValue[];
2890
+
2891
+ export declare type SelectValue = string | number | (string | number)[];
2892
+
2893
+ export declare const SensitiveInputRenderer: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SensitiveInputRendererProps>, {
2894
+ value: string;
2895
+ onChange: undefined;
2896
+ onBlur: undefined;
2897
+ onFocus: undefined;
2898
+ formatter: undefined;
2899
+ maskFormatter: typeof defaultMaskFormatter;
2900
+ defaultRevealed: boolean;
2901
+ revealed: undefined;
2902
+ onRevealChange: undefined;
2903
+ revealable: boolean;
2904
+ revealText: string;
2905
+ hideText: string;
2906
+ revealIcon: string;
2907
+ hideIcon: string;
2908
+ focusOnReveal: boolean;
2909
+ hideOnBlur: boolean;
2910
+ revealWhenReadonly: boolean;
2911
+ placeholder: string;
2912
+ readonlyPlaceholder: string;
2913
+ disabled: boolean;
2914
+ readonly: boolean;
2915
+ align: string;
2916
+ className: string;
2917
+ }>>, {
2918
+ focus: () => void | undefined;
2919
+ blur: () => void | undefined;
2920
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2921
+ "update:value": (value: string) => void;
2922
+ change: (value: string) => void;
2923
+ blur: (event: FocusEvent) => void;
2924
+ "update:revealed": (revealed: boolean) => void;
2925
+ "reveal-change": (revealed: boolean) => void;
2926
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SensitiveInputRendererProps>, {
2927
+ value: string;
2928
+ onChange: undefined;
2929
+ onBlur: undefined;
2930
+ onFocus: undefined;
2931
+ formatter: undefined;
2932
+ maskFormatter: typeof defaultMaskFormatter;
2933
+ defaultRevealed: boolean;
2934
+ revealed: undefined;
2935
+ onRevealChange: undefined;
2936
+ revealable: boolean;
2937
+ revealText: string;
2938
+ hideText: string;
2939
+ revealIcon: string;
2940
+ hideIcon: string;
2941
+ focusOnReveal: boolean;
2942
+ hideOnBlur: boolean;
2943
+ revealWhenReadonly: boolean;
2944
+ placeholder: string;
2945
+ readonlyPlaceholder: string;
2946
+ disabled: boolean;
2947
+ readonly: boolean;
2948
+ align: string;
2949
+ className: string;
2950
+ }>>> & Readonly<{
2951
+ "onUpdate:value"?: ((value: string) => any) | undefined;
2952
+ onChange?: ((value: string) => any) | undefined;
2953
+ onBlur?: ((event: FocusEvent) => any) | undefined;
2954
+ "onUpdate:revealed"?: ((revealed: boolean) => any) | undefined;
2955
+ "onReveal-change"?: ((revealed: boolean) => any) | undefined;
2956
+ }>, {
2957
+ disabled: boolean;
2958
+ readonly: boolean;
2959
+ value: SensitiveInputValue;
2960
+ placeholder: string;
2961
+ readonlyPlaceholder: string;
2962
+ align: "left" | "right" | "center";
2963
+ className: string;
2964
+ onFocus: (event: FocusEvent) => void;
2965
+ onBlur: (event: FocusEvent) => void;
2966
+ onChange: (value: string) => void;
2967
+ formatter: (value: string) => string;
2968
+ maskFormatter: SensitiveMaskFormatter;
2969
+ defaultRevealed: boolean;
2970
+ revealed: boolean;
2971
+ onRevealChange: (revealed: boolean) => void;
2972
+ revealable: boolean;
2973
+ revealText: string;
2974
+ hideText: string;
2975
+ revealIcon: string;
2976
+ hideIcon: string;
2977
+ focusOnReveal: boolean;
2978
+ hideOnBlur: boolean;
2979
+ revealWhenReadonly: boolean;
2980
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2981
+
2982
+ export declare interface SensitiveInputRendererProps extends Omit<SchemxInputProps, "type" | "value" | "onChange"> {
2983
+ /** 当前真实值 */
2984
+ value?: SensitiveInputValue;
2985
+ /** 值变化回调,始终回传真实值 */
2986
+ onChange?: (value: string) => void;
2987
+ /** 完整值格式化,展示完整值和输入时使用 */
2988
+ formatter?: (value: string) => string;
2989
+ /** 脱敏值格式化,仅用于默认展示态 */
2990
+ maskFormatter?: SensitiveMaskFormatter;
2991
+ /** 默认是否显示完整值 */
2992
+ defaultRevealed?: boolean;
2993
+ /** 受控显示状态 */
2994
+ revealed?: boolean;
2995
+ /** 显示状态变化回调 */
2996
+ onRevealChange?: (revealed: boolean) => void;
2997
+ /** 是否允许显示完整值 */
2998
+ revealable?: boolean;
2999
+ /** 显示按钮文案 */
3000
+ revealText?: string;
3001
+ /** 隐藏按钮文案 */
3002
+ hideText?: string;
3003
+ /** 显示按钮图标 */
3004
+ revealIcon?: string;
3005
+ /** 隐藏按钮图标 */
3006
+ hideIcon?: string;
3007
+ /** 展开后是否自动聚焦输入框 */
3008
+ focusOnReveal?: boolean;
3009
+ /** 输入框失焦后是否自动恢复脱敏态 */
3010
+ hideOnBlur?: boolean;
3011
+ /** 只读时是否允许查看完整值 */
3012
+ revealWhenReadonly?: boolean;
3013
+ }
3014
+
3015
+ export declare type SensitiveInputValue = string;
3016
+
3017
+ declare type SensitiveMaskFormatter = (value: string, ctx: {
3018
+ placeholder: string;
3019
+ readonlyPlaceholder: string;
3020
+ }) => string;
3021
+
3022
+ export declare const SliderRenderer: DefineComponent<ExtractPropTypes< {
3023
+ value: PropType<SliderValue>;
3024
+ disabled: {
3025
+ type: PropType<boolean>;
3026
+ default: boolean;
3027
+ };
3028
+ readonly: {
3029
+ type: PropType<boolean>;
3030
+ default: boolean;
3031
+ };
3032
+ reverse: {
3033
+ type: PropType<boolean>;
3034
+ };
3035
+ placeholder: {
3036
+ type: PropType<string>;
3037
+ };
3038
+ readonlyPlaceholder: {
3039
+ type: PropType<string>;
3040
+ default: string;
3041
+ };
3042
+ align: {
3043
+ type: PropType<"left" | "right" | "center">;
3044
+ };
3045
+ className: {
3046
+ type: PropType<string>;
3047
+ default: string;
3048
+ };
3049
+ button: {
3050
+ type: PropType<boolean>;
3051
+ default: boolean;
3052
+ };
3053
+ onChange: {
3054
+ type: PropType<(value: SliderValue) => void>;
3055
+ default: () => void;
3056
+ };
3057
+ max: {
3058
+ type: PropType<string | number>;
3059
+ default: number;
3060
+ };
3061
+ min: {
3062
+ type: PropType<string | number>;
3063
+ default: number;
3064
+ };
3065
+ range: {
3066
+ type: PropType<boolean>;
3067
+ default: boolean;
3068
+ };
3069
+ formItemProps: {
3070
+ type: PropType<SchemxFormItemProps<Values>>;
3071
+ };
3072
+ activeColor: {
3073
+ type: PropType<string>;
3074
+ };
3075
+ vertical: {
3076
+ type: PropType<boolean>;
3077
+ };
3078
+ step: {
3079
+ type: PropType<string | number>;
3080
+ default: number;
3081
+ };
3082
+ barHeight: {
3083
+ type: PropType<string | number>;
3084
+ };
3085
+ buttonSize: {
3086
+ type: PropType<string | number>;
3087
+ };
3088
+ inactiveColor: {
3089
+ type: PropType<string>;
3090
+ };
3091
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
3092
+ value: PropType<SliderValue>;
3093
+ disabled: {
3094
+ type: PropType<boolean>;
3095
+ default: boolean;
3096
+ };
3097
+ readonly: {
3098
+ type: PropType<boolean>;
3099
+ default: boolean;
3100
+ };
3101
+ reverse: {
3102
+ type: PropType<boolean>;
3103
+ };
3104
+ placeholder: {
3105
+ type: PropType<string>;
3106
+ };
3107
+ readonlyPlaceholder: {
3108
+ type: PropType<string>;
3109
+ default: string;
3110
+ };
3111
+ align: {
3112
+ type: PropType<"left" | "right" | "center">;
3113
+ };
3114
+ className: {
3115
+ type: PropType<string>;
3116
+ default: string;
3117
+ };
3118
+ button: {
3119
+ type: PropType<boolean>;
3120
+ default: boolean;
3121
+ };
3122
+ onChange: {
3123
+ type: PropType<(value: SliderValue) => void>;
3124
+ default: () => void;
3125
+ };
3126
+ max: {
3127
+ type: PropType<string | number>;
3128
+ default: number;
3129
+ };
3130
+ min: {
3131
+ type: PropType<string | number>;
3132
+ default: number;
3133
+ };
3134
+ range: {
3135
+ type: PropType<boolean>;
3136
+ default: boolean;
3137
+ };
3138
+ formItemProps: {
3139
+ type: PropType<SchemxFormItemProps<Values>>;
3140
+ };
3141
+ activeColor: {
3142
+ type: PropType<string>;
3143
+ };
3144
+ vertical: {
3145
+ type: PropType<boolean>;
3146
+ };
3147
+ step: {
3148
+ type: PropType<string | number>;
3149
+ default: number;
3150
+ };
3151
+ barHeight: {
3152
+ type: PropType<string | number>;
3153
+ };
3154
+ buttonSize: {
3155
+ type: PropType<string | number>;
3156
+ };
3157
+ inactiveColor: {
3158
+ type: PropType<string>;
3159
+ };
3160
+ }>> & Readonly<{}>, {
3161
+ disabled: SliderProps["disabled"];
3162
+ readonly: SliderProps["readonly"];
3163
+ readonlyPlaceholder: string;
3164
+ className: string;
3165
+ button: boolean;
3166
+ onChange: (value: SliderValue) => void;
3167
+ max: SliderProps["max"];
3168
+ min: SliderProps["min"];
3169
+ range: SliderProps["range"];
3170
+ step: SliderProps["step"];
3171
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3172
+
3173
+ /**
3174
+ * 滑块渲染器 Props
3175
+ *
3176
+ * 定义滑块组件的所有可配置属性。
3177
+ */
3178
+ export declare interface SliderRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<SliderProps, "modelValue" | "onUpdate:modelValue" | "onChange">> {
3179
+ /** 当前值,支持单值或范围值 */
3180
+ value?: SliderValue;
3181
+ /** 值变化回调 */
3182
+ onChange?: (value: SliderValue) => void;
3183
+ /** 最小值 */
3184
+ min?: SliderProps["min"];
3185
+ /** 最大值 */
3186
+ max?: SliderProps["max"];
3187
+ /** 步长 */
3188
+ step?: SliderProps["step"];
3189
+ /** 是否开启范围选择 */
3190
+ range?: SliderProps["range"];
3191
+ /** 自定义 CSS 类名 */
3192
+ className?: string;
3193
+ /** 是否只读 */
3194
+ readonly?: SliderProps["readonly"];
3195
+ /** 只读时的占位文本 */
3196
+ readonlyPlaceholder?: string;
3197
+ /** 是否禁用 */
3198
+ disabled?: SliderProps["disabled"];
3199
+ /** 是否显示按钮 */
3200
+ button?: boolean;
3201
+ }
3202
+
3203
+ export declare type SliderValue = SliderProps["modelValue"];
3204
+
3205
+ export declare const StepperRenderer: DefineComponent<ExtractPropTypes< {
3206
+ value: PropType<StepperValue>;
3207
+ disabled: {
3208
+ type: PropType<boolean>;
3209
+ default: boolean;
3210
+ };
3211
+ readonly: {
3212
+ type: PropType<boolean>;
3213
+ default: boolean;
3214
+ };
3215
+ name: {
3216
+ type: PropType<string | number>;
3217
+ };
3218
+ placeholder: {
3219
+ type: PropType<string>;
3220
+ };
3221
+ readonlyPlaceholder: {
3222
+ type: PropType<string>;
3223
+ default: string;
3224
+ };
3225
+ align: {
3226
+ type: PropType<"left" | "right" | "center">;
3227
+ };
3228
+ className: {
3229
+ type: PropType<string>;
3230
+ default: string;
3231
+ };
3232
+ onChange: {
3233
+ type: PropType<(value: StepperValue) => void>;
3234
+ default: () => void;
3235
+ };
3236
+ max: {
3237
+ type: PropType<string | number>;
3238
+ default: undefined;
3239
+ };
3240
+ min: {
3241
+ type: PropType<string | number>;
3242
+ default: undefined;
3243
+ };
3244
+ formItemProps: {
3245
+ type: PropType<SchemxFormItemProps<Values>>;
3246
+ };
3247
+ showInput: {
3248
+ type: PropType<boolean>;
3249
+ };
3250
+ step: {
3251
+ type: PropType<string | number>;
3252
+ default: number;
3253
+ };
3254
+ buttonSize: {
3255
+ type: PropType<string | number>;
3256
+ };
3257
+ theme: {
3258
+ type: PropType<StepperTheme>;
3259
+ };
3260
+ integer: {
3261
+ type: PropType<boolean>;
3262
+ default: boolean;
3263
+ };
3264
+ showPlus: {
3265
+ type: PropType<boolean>;
3266
+ };
3267
+ showMinus: {
3268
+ type: PropType<boolean>;
3269
+ };
3270
+ longPress: {
3271
+ type: PropType<boolean>;
3272
+ };
3273
+ autoFixed: {
3274
+ type: PropType<boolean>;
3275
+ };
3276
+ allowEmpty: {
3277
+ type: PropType<boolean>;
3278
+ default: boolean;
3279
+ };
3280
+ inputWidth: {
3281
+ type: PropType<string | number>;
3282
+ };
3283
+ disablePlus: {
3284
+ type: PropType<boolean>;
3285
+ };
3286
+ disableMinus: {
3287
+ type: PropType<boolean>;
3288
+ };
3289
+ disableInput: {
3290
+ type: PropType<boolean>;
3291
+ };
3292
+ beforeChange: {
3293
+ type: PropType<Interceptor>;
3294
+ };
3295
+ defaultValue: {
3296
+ type: PropType<string | number>;
3297
+ };
3298
+ decimalLength: {
3299
+ type: PropType<string | number>;
3300
+ default: undefined;
3301
+ };
3302
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
3303
+ value: PropType<StepperValue>;
3304
+ disabled: {
3305
+ type: PropType<boolean>;
3306
+ default: boolean;
3307
+ };
3308
+ readonly: {
3309
+ type: PropType<boolean>;
3310
+ default: boolean;
3311
+ };
3312
+ name: {
3313
+ type: PropType<string | number>;
3314
+ };
3315
+ placeholder: {
3316
+ type: PropType<string>;
3317
+ };
3318
+ readonlyPlaceholder: {
3319
+ type: PropType<string>;
3320
+ default: string;
3321
+ };
3322
+ align: {
3323
+ type: PropType<"left" | "right" | "center">;
3324
+ };
3325
+ className: {
3326
+ type: PropType<string>;
3327
+ default: string;
3328
+ };
3329
+ onChange: {
3330
+ type: PropType<(value: StepperValue) => void>;
3331
+ default: () => void;
3332
+ };
3333
+ max: {
3334
+ type: PropType<string | number>;
3335
+ default: undefined;
3336
+ };
3337
+ min: {
3338
+ type: PropType<string | number>;
3339
+ default: undefined;
3340
+ };
3341
+ formItemProps: {
3342
+ type: PropType<SchemxFormItemProps<Values>>;
3343
+ };
3344
+ showInput: {
3345
+ type: PropType<boolean>;
3346
+ };
3347
+ step: {
3348
+ type: PropType<string | number>;
3349
+ default: number;
3350
+ };
3351
+ buttonSize: {
3352
+ type: PropType<string | number>;
3353
+ };
3354
+ theme: {
3355
+ type: PropType<StepperTheme>;
3356
+ };
3357
+ integer: {
3358
+ type: PropType<boolean>;
3359
+ default: boolean;
3360
+ };
3361
+ showPlus: {
3362
+ type: PropType<boolean>;
3363
+ };
3364
+ showMinus: {
3365
+ type: PropType<boolean>;
3366
+ };
3367
+ longPress: {
3368
+ type: PropType<boolean>;
3369
+ };
3370
+ autoFixed: {
3371
+ type: PropType<boolean>;
3372
+ };
3373
+ allowEmpty: {
3374
+ type: PropType<boolean>;
3375
+ default: boolean;
3376
+ };
3377
+ inputWidth: {
3378
+ type: PropType<string | number>;
3379
+ };
3380
+ disablePlus: {
3381
+ type: PropType<boolean>;
3382
+ };
3383
+ disableMinus: {
3384
+ type: PropType<boolean>;
3385
+ };
3386
+ disableInput: {
3387
+ type: PropType<boolean>;
3388
+ };
3389
+ beforeChange: {
3390
+ type: PropType<Interceptor>;
3391
+ };
3392
+ defaultValue: {
3393
+ type: PropType<string | number>;
3394
+ };
3395
+ decimalLength: {
3396
+ type: PropType<string | number>;
3397
+ default: undefined;
3398
+ };
3399
+ }>> & Readonly<{}>, {
3400
+ disabled: StepperProps["disabled"];
3401
+ readonly: boolean;
3402
+ readonlyPlaceholder: string;
3403
+ className: string;
3404
+ onChange: (value: StepperValue) => void;
3405
+ max: StepperProps["max"];
3406
+ min: StepperProps["min"];
3407
+ step: StepperProps["step"];
3408
+ integer: StepperProps["integer"];
3409
+ allowEmpty: StepperProps["allowEmpty"];
3410
+ decimalLength: string | number;
3411
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3412
+
3413
+ /**
3414
+ * 步进器渲染器 Props
3415
+ *
3416
+ * 定义步进器组件的所有可配置属性。
3417
+ */
3418
+ export declare interface StepperRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<StepperProps, "modelValue" | "onUpdate:modelValue" | "onChange">> {
3419
+ /** 当前值 */
3420
+ value?: StepperValue;
3421
+ /** 值变化回调 */
3422
+ onChange?: (value: StepperValue) => void;
3423
+ /** 最小值 */
3424
+ min?: StepperProps["min"];
3425
+ /** 最大值 */
3426
+ max?: StepperProps["max"];
3427
+ /** 步长 */
3428
+ step?: StepperProps["step"];
3429
+ /** 是否只允许整数 */
3430
+ integer?: StepperProps["integer"];
3431
+ /** 小数位数 */
3432
+ decimalLength?: StepperProps["decimalLength"];
3433
+ /** 自定义 CSS 类名 */
3434
+ className?: string;
3435
+ /** 是否只读 */
3436
+ readonly?: boolean;
3437
+ /** 只读时的占位文本 */
3438
+ readonlyPlaceholder?: string;
3439
+ /** 是否禁用 */
3440
+ disabled?: StepperProps["disabled"];
3441
+ /** 是否允许空值 */
3442
+ allowEmpty?: StepperProps["allowEmpty"];
3443
+ }
3444
+
3445
+ export declare type StepperValue = StepperProps["modelValue"];
3446
+
3447
+ export declare const SwitchRenderer: DefineComponent<ExtractPropTypes< {
3448
+ value: PropType<SwitchValue>;
3449
+ disabled: {
3450
+ type: PropType<boolean>;
3451
+ default: boolean;
3452
+ };
3453
+ readonly: {
3454
+ type: PropType<boolean>;
3455
+ default: boolean;
3456
+ };
3457
+ placeholder: {
3458
+ type: PropType<string>;
3459
+ };
3460
+ readonlyPlaceholder: {
3461
+ type: PropType<string>;
3462
+ default: string;
3463
+ };
3464
+ align: {
3465
+ type: PropType<"left" | "right" | "center">;
3466
+ };
3467
+ className: {
3468
+ type: PropType<string>;
3469
+ default: string;
3470
+ };
3471
+ onChange: {
3472
+ type: PropType<(value: SwitchValue) => void | Promise<SwitchValue | void>>;
3473
+ default: () => void;
3474
+ };
3475
+ size: {
3476
+ type: PropType<string | number>;
3477
+ };
3478
+ formItemProps: {
3479
+ type: PropType<SchemxFormItemProps<Values>>;
3480
+ };
3481
+ activeColor: {
3482
+ type: PropType<string>;
3483
+ };
3484
+ inactiveColor: {
3485
+ type: PropType<string>;
3486
+ };
3487
+ activeValue: {
3488
+ type: PropType<SwitchValue>;
3489
+ default: boolean;
3490
+ };
3491
+ inactiveValue: {
3492
+ type: PropType<SwitchValue>;
3493
+ default: boolean;
3494
+ };
3495
+ activeText: {
3496
+ type: PropType<string>;
3497
+ default: undefined;
3498
+ };
3499
+ inactiveText: {
3500
+ type: PropType<string>;
3501
+ default: undefined;
3502
+ };
3503
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
3504
+ value: PropType<SwitchValue>;
3505
+ disabled: {
3506
+ type: PropType<boolean>;
3507
+ default: boolean;
3508
+ };
3509
+ readonly: {
3510
+ type: PropType<boolean>;
3511
+ default: boolean;
3512
+ };
3513
+ placeholder: {
3514
+ type: PropType<string>;
3515
+ };
3516
+ readonlyPlaceholder: {
3517
+ type: PropType<string>;
3518
+ default: string;
3519
+ };
3520
+ align: {
3521
+ type: PropType<"left" | "right" | "center">;
3522
+ };
3523
+ className: {
3524
+ type: PropType<string>;
3525
+ default: string;
3526
+ };
3527
+ onChange: {
3528
+ type: PropType<(value: SwitchValue) => void | Promise<SwitchValue | void>>;
3529
+ default: () => void;
3530
+ };
3531
+ size: {
3532
+ type: PropType<string | number>;
3533
+ };
3534
+ formItemProps: {
3535
+ type: PropType<SchemxFormItemProps<Values>>;
3536
+ };
3537
+ activeColor: {
3538
+ type: PropType<string>;
3539
+ };
3540
+ inactiveColor: {
3541
+ type: PropType<string>;
3542
+ };
3543
+ activeValue: {
3544
+ type: PropType<SwitchValue>;
3545
+ default: boolean;
3546
+ };
3547
+ inactiveValue: {
3548
+ type: PropType<SwitchValue>;
3549
+ default: boolean;
3550
+ };
3551
+ activeText: {
3552
+ type: PropType<string>;
3553
+ default: undefined;
3554
+ };
3555
+ inactiveText: {
3556
+ type: PropType<string>;
3557
+ default: undefined;
3558
+ };
3559
+ }>> & Readonly<{}>, {
3560
+ disabled: boolean;
3561
+ readonly: boolean;
3562
+ readonlyPlaceholder: string;
3563
+ className: string;
3564
+ onChange: (value: SwitchValue) => void | Promise<SwitchValue | void>;
3565
+ activeValue: SwitchValue;
3566
+ inactiveValue: SwitchValue;
3567
+ activeText: string;
3568
+ inactiveText: string;
3569
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3570
+
3571
+ /**
3572
+ * 开关渲染器 Props
3573
+ *
3574
+ * 定义开关组件的所有可配置属性。
3575
+ */
3576
+ export declare interface SwitchRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<SwitchProps, "modelValue" | "onUpdate:modelValue" | "onChange" | "activeValue" | "inactiveValue" | "loading" | "disabled">> {
3577
+ /** 当前值 */
3578
+ value?: SwitchValue;
3579
+ /** 值变化回调,支持异步返回值以更新表单字段 */
3580
+ onChange?: (value: SwitchValue) => void | Promise<SwitchValue | void>;
3581
+ /** 自定义 CSS 类名 */
3582
+ className?: string;
3583
+ /** 激活状态的文本 */
3584
+ activeText?: string;
3585
+ /** 激活状态对应的值 */
3586
+ activeValue?: SwitchValue;
3587
+ /** 非激活状态对应的值 */
3588
+ inactiveValue?: SwitchValue;
3589
+ /** 非激活状态的文本 */
3590
+ inactiveText?: string;
3591
+ /** 是否只读 */
3592
+ readonly?: boolean;
3593
+ /** 只读时的占位文本 */
3594
+ readonlyPlaceholder?: string;
3595
+ /** 是否禁用 */
3596
+ disabled?: boolean;
3597
+ }
3598
+
3599
+ export declare type SwitchValue = boolean | string | number;
3600
+
3601
+ /**
3602
+ * 文本域自适应高度配置
3603
+ *
3604
+ * 配置文本域根据内容自动调整高度的行为。
3605
+ */
3606
+ export declare interface TextAreaAutosize {
3607
+ /** 最小行数 */
3608
+ minRows?: number;
3609
+ /** 最大行数 */
3610
+ maxRows?: number;
3611
+ }
3612
+
3613
+ export declare const TextAreaRenderer: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, ReturnType<typeof __VLS_template_3>>;
3614
+
3615
+ /**
3616
+ * 文本域输入渲染器 Props
3617
+ *
3618
+ * 定义文本域输入组件的所有可配置属性。
3619
+ */
3620
+ export declare interface TextAreaRendererProps extends Omit<SchemxInputProps, "value" | "type" | "onChange"> {
3621
+ /** 当前值 */
3622
+ value?: TextAreaValue;
3623
+ /** 值变化回调 */
3624
+ onChange?: (value: string) => void;
3625
+ /** 失焦回调 */
3626
+ onBlur?: (event: FocusEvent) => void;
3627
+ /** 聚焦回调 */
3628
+ onFocus?: (event: FocusEvent) => void;
3629
+ /** 自定义 CSS 类名 */
3630
+ className?: string;
3631
+ /** 自适应高度配置 */
3632
+ autosize?: boolean | TextAreaAutosize;
3633
+ /** 自适应高度配置(兼容旧属性名) */
3634
+ autoSize?: boolean | TextAreaAutosize;
3635
+ /** 默认行数 */
3636
+ rows?: number | string;
3637
+ /** 最大输入长度 */
3638
+ maxlength?: number | string;
3639
+ /** 是否只读 */
3640
+ readonly?: boolean;
3641
+ /** 只读时的占位文本 */
3642
+ readonlyPlaceholder?: string;
3643
+ /** 是否禁用 */
3644
+ disabled?: boolean;
3645
+ /** 文本对齐方式 */
3646
+ align?: "left" | "center" | "right";
3647
+ /** 是否显示字数统计 */
3648
+ showWordLimit?: boolean;
3649
+ }
3650
+
3651
+ export declare type TextAreaValue = InputValue;
3652
+
3653
+ export declare const TextRenderer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
3654
+
3655
+ /**
3656
+ * 文本输入渲染器 Props
3657
+ *
3658
+ * 定义文本输入组件的所有可配置属性。
3659
+ */
3660
+ export declare interface TextRendererProps extends Omit<SchemxInputProps, "value" | "onChange"> {
3661
+ /** 自定义 CSS 类名 */
3662
+ className?: string;
3663
+ /** 占位提示文本 */
3664
+ placeholder?: string;
3665
+ /** 只读时的占位文本 */
3666
+ readonlyPlaceholder?: string;
3667
+ /** 是否只读 */
3668
+ readonly?: boolean;
3669
+ /** 是否禁用 */
3670
+ disabled?: boolean;
3671
+ /** 当前值 */
3672
+ value?: TextValue;
3673
+ /** 值变化回调 */
3674
+ onChange?: (value: string) => void;
3675
+ /** 失焦回调 */
3676
+ onBlur?: (event: FocusEvent) => void;
3677
+ /** 聚焦回调 */
3678
+ onFocus?: (event: FocusEvent) => void;
3679
+ /** 文本对齐方式 */
3680
+ align?: "left" | "center" | "right";
3681
+ /** 是否可清除 */
3682
+ clearable?: boolean;
3683
+ /** 清除图标名称 */
3684
+ clearIcon?: string;
3685
+ /** 清除按钮触发方式 */
3686
+ clearTrigger?: "focus" | "always";
3687
+ /** 左侧图标名称 */
3688
+ leftIcon?: string;
3689
+ /** 右侧图标名称 */
3690
+ rightIcon?: string;
3691
+ /** 是否显示字数统计 */
3692
+ showWordLimit?: boolean;
3693
+ /** 最大输入长度 */
3694
+ maxlength?: number | string;
3695
+ /** 最小值(数字类型) */
3696
+ min?: number;
3697
+ /** 最大值(数字类型) */
3698
+ max?: number;
3699
+ /** 自定义格式化函数 */
3700
+ formatter?: (value: TextValue) => string;
3701
+ /** 格式化触发时机 */
3702
+ formatTrigger?: "onChange" | "onBlur";
3703
+ /** 自动完成属性 */
3704
+ autocomplete?: string;
3705
+ /** 自动大写属性 */
3706
+ autocapitalize?: string;
3707
+ /** 是否自动聚焦 */
3708
+ autofocus?: boolean;
3709
+ }
3710
+
3711
+ export declare type TextValue = Extract<InputValue, string>;
3712
+
3713
+ /**
3714
+ * 上传文件对象
3715
+ *
3716
+ * 描述单个上传文件的状态信息,兼容 Vant Uploader 的文件格式。
3717
+ */
3718
+ export declare interface UploadFile {
3719
+ /** 文件 URL */
3720
+ url?: string;
3721
+ /** 原始 File 对象 */
3722
+ file?: File;
3723
+ /** 文件临时对象 URL */
3724
+ objectUrl?: string;
3725
+ /** 文件内容 */
3726
+ content?: string;
3727
+ /** 是否图片 */
3728
+ isImage?: boolean;
3729
+ /** 上传状态 */
3730
+ status?: UploaderFileListItem["status"];
3731
+ /** 状态描述信息 */
3732
+ message?: string;
3733
+ /** 文件唯一标识 */
3734
+ uid?: string;
3735
+ /** 扩展字段 */
3736
+ [key: string]: any;
3737
+ }
3738
+
3739
+ export declare const UploadRenderer: DefineComponent<ExtractPropTypes< {
3740
+ value: PropType<UploadValue>;
3741
+ disabled: {
3742
+ type: PropType<boolean>;
3743
+ default: boolean;
3744
+ };
3745
+ readonly: {
3746
+ type: PropType<boolean>;
3747
+ default: boolean;
3748
+ };
3749
+ name: {
3750
+ type: PropType<string | number>;
3751
+ };
3752
+ placeholder: {
3753
+ type: PropType<string>;
3754
+ };
3755
+ readonlyPlaceholder: {
3756
+ type: PropType<string>;
3757
+ default: string;
3758
+ };
3759
+ align: {
3760
+ type: PropType<"left" | "right" | "center">;
3761
+ };
3762
+ className: {
3763
+ type: PropType<string>;
3764
+ default: string;
3765
+ };
3766
+ view: {
3767
+ type: PropType<boolean>;
3768
+ default: boolean;
3769
+ };
3770
+ onChange: {
3771
+ type: PropType<(files: UploadFile[]) => void>;
3772
+ default: () => void;
3773
+ };
3774
+ formItemProps: {
3775
+ type: PropType<SchemxFormItemProps<Values>>;
3776
+ };
3777
+ multiple: {
3778
+ type: PropType<boolean>;
3779
+ };
3780
+ accept: {
3781
+ type: PropType<string>;
3782
+ default: string;
3783
+ };
3784
+ capture: {
3785
+ type: PropType<string>;
3786
+ };
3787
+ lazyLoad: {
3788
+ type: PropType<boolean>;
3789
+ };
3790
+ maxCount: {
3791
+ type: PropType<string | number>;
3792
+ };
3793
+ resultType: {
3794
+ type: PropType<UploaderResultType>;
3795
+ };
3796
+ uploadIcon: {
3797
+ type: PropType<string>;
3798
+ };
3799
+ uploadText: {
3800
+ type: PropType<string>;
3801
+ };
3802
+ deletable: {
3803
+ type: PropType<boolean>;
3804
+ default: boolean;
3805
+ };
3806
+ reupload: {
3807
+ type: PropType<boolean>;
3808
+ };
3809
+ afterRead: {
3810
+ type: PropType<UploaderAfterRead>;
3811
+ };
3812
+ showUpload: {
3813
+ type: PropType<boolean>;
3814
+ default: boolean;
3815
+ };
3816
+ beforeRead: {
3817
+ type: PropType<UploaderBeforeRead>;
3818
+ };
3819
+ beforeDelete: {
3820
+ type: PropType<Interceptor>;
3821
+ };
3822
+ previewSize: {
3823
+ type: PropType<Numeric | [Numeric, Numeric]>;
3824
+ };
3825
+ previewImage: {
3826
+ type: PropType<boolean>;
3827
+ };
3828
+ previewOptions: {
3829
+ type: PropType<Partial<ImagePreviewOptions>>;
3830
+ };
3831
+ previewFullImage: {
3832
+ type: PropType<boolean>;
3833
+ };
3834
+ maxSize: {
3835
+ type: PropType<UploaderMaxSize>;
3836
+ };
3837
+ disableUpload: {
3838
+ type: PropType<boolean>;
3839
+ default: boolean;
3840
+ };
3841
+ uploader: {
3842
+ type: PropType<(file: File) => Promise<any>>;
3843
+ default: () => Promise<{}>;
3844
+ };
3845
+ propsHttp: {
3846
+ type: PropType< {
3847
+ res?: string;
3848
+ url?: string;
3849
+ name?: string;
3850
+ }>;
3851
+ default: () => {
3852
+ res: string;
3853
+ url: string;
3854
+ name: string;
3855
+ };
3856
+ };
3857
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
3858
+ value: PropType<UploadValue>;
3859
+ disabled: {
3860
+ type: PropType<boolean>;
3861
+ default: boolean;
3862
+ };
3863
+ readonly: {
3864
+ type: PropType<boolean>;
3865
+ default: boolean;
3866
+ };
3867
+ name: {
3868
+ type: PropType<string | number>;
3869
+ };
3870
+ placeholder: {
3871
+ type: PropType<string>;
3872
+ };
3873
+ readonlyPlaceholder: {
3874
+ type: PropType<string>;
3875
+ default: string;
3876
+ };
3877
+ align: {
3878
+ type: PropType<"left" | "right" | "center">;
3879
+ };
3880
+ className: {
3881
+ type: PropType<string>;
3882
+ default: string;
3883
+ };
3884
+ view: {
3885
+ type: PropType<boolean>;
3886
+ default: boolean;
3887
+ };
3888
+ onChange: {
3889
+ type: PropType<(files: UploadFile[]) => void>;
3890
+ default: () => void;
3891
+ };
3892
+ formItemProps: {
3893
+ type: PropType<SchemxFormItemProps<Values>>;
3894
+ };
3895
+ multiple: {
3896
+ type: PropType<boolean>;
3897
+ };
3898
+ accept: {
3899
+ type: PropType<string>;
3900
+ default: string;
3901
+ };
3902
+ capture: {
3903
+ type: PropType<string>;
3904
+ };
3905
+ lazyLoad: {
3906
+ type: PropType<boolean>;
3907
+ };
3908
+ maxCount: {
3909
+ type: PropType<string | number>;
3910
+ };
3911
+ resultType: {
3912
+ type: PropType<UploaderResultType>;
3913
+ };
3914
+ uploadIcon: {
3915
+ type: PropType<string>;
3916
+ };
3917
+ uploadText: {
3918
+ type: PropType<string>;
3919
+ };
3920
+ deletable: {
3921
+ type: PropType<boolean>;
3922
+ default: boolean;
3923
+ };
3924
+ reupload: {
3925
+ type: PropType<boolean>;
3926
+ };
3927
+ afterRead: {
3928
+ type: PropType<UploaderAfterRead>;
3929
+ };
3930
+ showUpload: {
3931
+ type: PropType<boolean>;
3932
+ default: boolean;
3933
+ };
3934
+ beforeRead: {
3935
+ type: PropType<UploaderBeforeRead>;
3936
+ };
3937
+ beforeDelete: {
3938
+ type: PropType<Interceptor>;
3939
+ };
3940
+ previewSize: {
3941
+ type: PropType<Numeric | [Numeric, Numeric]>;
3942
+ };
3943
+ previewImage: {
3944
+ type: PropType<boolean>;
3945
+ };
3946
+ previewOptions: {
3947
+ type: PropType<Partial<ImagePreviewOptions>>;
3948
+ };
3949
+ previewFullImage: {
3950
+ type: PropType<boolean>;
3951
+ };
3952
+ maxSize: {
3953
+ type: PropType<UploaderMaxSize>;
3954
+ };
3955
+ disableUpload: {
3956
+ type: PropType<boolean>;
3957
+ default: boolean;
3958
+ };
3959
+ uploader: {
3960
+ type: PropType<(file: File) => Promise<any>>;
3961
+ default: () => Promise<{}>;
3962
+ };
3963
+ propsHttp: {
3964
+ type: PropType< {
3965
+ res?: string;
3966
+ url?: string;
3967
+ name?: string;
3968
+ }>;
3969
+ default: () => {
3970
+ res: string;
3971
+ url: string;
3972
+ name: string;
3973
+ };
3974
+ };
3975
+ }>> & Readonly<{}>, {
3976
+ disabled: UploaderProps["disabled"];
3977
+ readonly: UploaderProps["readonly"];
3978
+ readonlyPlaceholder: string;
3979
+ className: string;
3980
+ view: boolean;
3981
+ onChange: (files: UploadFile[]) => void;
3982
+ accept: UploaderProps["accept"];
3983
+ deletable: UploaderProps["deletable"];
3984
+ showUpload: UploaderProps["showUpload"];
3985
+ disableUpload: boolean;
3986
+ uploader: (file: File) => Promise<any>;
3987
+ propsHttp: {
3988
+ res?: string;
3989
+ url?: string;
3990
+ name?: string;
3991
+ };
3992
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3993
+
3994
+ /**
3995
+ * 上传渲染器 Props
3996
+ *
3997
+ * 定义上传组件的所有可配置属性。
3998
+ */
3999
+ export declare interface UploadRendererProps extends Omit<SchemxBaseComponentProps, "onChange" | "onBlur" | "value" | "onUpdate:value">, Partial<Omit<UploaderProps, "modelValue" | "onUpdate:modelValue" | "imageFit">> {
4000
+ /** 已上传的文件列表 */
4001
+ value?: UploadValue;
4002
+ /** 文件列表变化回调 */
4003
+ onChange?: (files: UploadFile[]) => void;
4004
+ /** 接受的文件类型 */
4005
+ accept?: UploaderProps["accept"];
4006
+ /** 自定义 CSS 类名 */
4007
+ className?: string;
4008
+ /** 是否显示上传按钮 */
4009
+ showUpload?: UploaderProps["showUpload"];
4010
+ /** 是否禁用上传 */
4011
+ disableUpload?: boolean;
4012
+ /** 是否可删除 */
4013
+ deletable?: UploaderProps["deletable"];
4014
+ /** 是否只读 */
4015
+ readonly?: UploaderProps["readonly"];
4016
+ /** 是否详情展示 */
4017
+ view?: boolean;
4018
+ /** 只读时的占位文本 */
4019
+ readonlyPlaceholder?: string;
4020
+ /** 是否禁用 */
4021
+ disabled?: UploaderProps["disabled"];
4022
+ /** 自定义上传函数 */
4023
+ uploader?: (file: File) => Promise<any>;
4024
+ /** HTTP 响应字段映射 */
4025
+ propsHttp?: {
4026
+ /** 响应数据字段名 */
4027
+ res?: string;
4028
+ /** URL 字段名 */
4029
+ url?: string;
4030
+ /** 文件名字段名 */
4031
+ name?: string;
4032
+ };
4033
+ }
4034
+
4035
+ export declare type UploadValue = UploadFile[];
4036
+
4037
+ export { useEffect }
4038
+
4039
+ export { useField }
4040
+
4041
+ export { useFieldContext }
4042
+
4043
+ export { useForm }
4044
+
4045
+ export { useWatch }
4046
+
4047
+ export { validatorRegistry }
4048
+
4049
+ export { WithRemoteOptions }
4050
+
4051
+
4052
+ export * from "@schemx/core";
4053
+
4054
+ export { }
4055
+
4056
+
4057
+ declare module "@schemx/core" {
4058
+ interface SchemxRendererDefinition<T extends Values> {
4059
+ input: InputRendererProps;
4060
+ text: TextRendererProps;
4061
+ textarea: TextAreaRendererProps;
4062
+ number: NumberRendererProps;
4063
+ switch: SwitchRendererProps;
4064
+ radio: SchemxWithDictionary<RadioRendererProps, T>;
4065
+ checkbox: SchemxWithDictionary<CheckboxRendererProps, T>;
4066
+ date: DateRendererProps;
4067
+ calendar: CalendarRendererProps;
4068
+ picker: SchemxWithDictionary<PickerRendererProps, T>;
4069
+ selectPicker: SchemxWithDictionary<SelectPickerRendererProps, T>;
4070
+ selector: SchemxWithDictionary<SelectorRendererProps, T>;
4071
+ sensitiveInput: SensitiveInputRendererProps;
4072
+ rate: RateRendererProps;
4073
+ slider: SliderRendererProps;
4074
+ stepper: StepperRendererProps;
4075
+ upload: UploadRendererProps;
4076
+ cascader: CascaderRendererProps;
4077
+ }
4078
+ }
4079
+