view-ui-plus-derive 0.0.1

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,2546 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { ComponentCustomProperties } from 'vue';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentInternalInstance } from 'vue';
6
+ import { ComponentOptionsBase } from 'vue';
7
+ import { ComponentOptionsMixin } from 'vue';
8
+ import { ComponentProvideOptions } from 'vue';
9
+ import { ComponentPublicInstance } from 'vue';
10
+ import { DebuggerEvent } from 'vue';
11
+ import { DefineComponent } from 'vue';
12
+ import { Directive } from 'vue';
13
+ import { ExtractPropTypes } from 'vue';
14
+ import { GlobalComponents } from 'vue';
15
+ import { GlobalDirectives } from 'vue';
16
+ import { JSX } from 'vue/jsx-runtime';
17
+ import { nextTick } from 'vue';
18
+ import { OnCleanup } from '@vue/reactivity';
19
+ import { PropType } from 'vue';
20
+ import { PublicProps } from 'vue';
21
+ import { Ref } from 'vue';
22
+ import { ShallowUnwrapRef } from 'vue';
23
+ import { Slot } from 'vue';
24
+ import { VNodeProps } from 'vue';
25
+ import { WatchOptions } from 'vue';
26
+ import { WatchStopHandle } from 'vue';
27
+
28
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
33
+
34
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
39
+
40
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
45
+
46
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
51
+
52
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
57
+
58
+ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
63
+
64
+ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
69
+
70
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
75
+
76
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
81
+
82
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
83
+ new (): {
84
+ $slots: S;
85
+ };
86
+ };
87
+
88
+ export declare const AllCheckbox: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes< {
89
+ modelValue: PropType<CheckValue>;
90
+ /**
91
+ * 全选框显示文本,默认“全选”
92
+ */
93
+ title: {
94
+ type: StringConstructor;
95
+ default(): string;
96
+ };
97
+ /**
98
+ * 选项数组,数组成员可以是数组或对象
99
+ */
100
+ list: {
101
+ type: PropType<Obj[]>;
102
+ default: () => never[];
103
+ };
104
+ /**
105
+ * 各选项值对应list中的value键。如list是[{v:1,k:2}],valueKey为 v 且 labelKey为 k, 则选项绑定值为 1,显示文本是 2
106
+ */
107
+ valueKey: {
108
+ type: (NumberConstructor | StringConstructor)[];
109
+ default: number;
110
+ };
111
+ /**
112
+ * 各选项值对应list中的label键。如list是[{v:1,k:2}],valueKey为 v 且 labelKey为 k, 则选项绑定值为 1,显示文本是 2
113
+ */
114
+ labelKey: {
115
+ type: (NumberConstructor | StringConstructor)[];
116
+ default: number;
117
+ };
118
+ /**
119
+ * 同时设置valueKey & labelKey,优先级相对更高
120
+ */
121
+ keyMap: {
122
+ type: ObjectConstructor;
123
+ default(props: Obj): {
124
+ value: any;
125
+ label: any;
126
+ };
127
+ };
128
+ /**
129
+ * 是否隐藏全选框
130
+ */
131
+ hideAll: BooleanConstructor;
132
+ /**
133
+ * 双向绑定全选框的值,若全选中应为 true,否则 false
134
+ */
135
+ all: BooleanConstructor;
136
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
137
+ [x: string]: any;
138
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
139
+ modelValue: PropType<CheckValue>;
140
+ /**
141
+ * 全选框显示文本,默认“全选”
142
+ */
143
+ title: {
144
+ type: StringConstructor;
145
+ default(): string;
146
+ };
147
+ /**
148
+ * 选项数组,数组成员可以是数组或对象
149
+ */
150
+ list: {
151
+ type: PropType<Obj[]>;
152
+ default: () => never[];
153
+ };
154
+ /**
155
+ * 各选项值对应list中的value键。如list是[{v:1,k:2}],valueKey为 v 且 labelKey为 k, 则选项绑定值为 1,显示文本是 2
156
+ */
157
+ valueKey: {
158
+ type: (NumberConstructor | StringConstructor)[];
159
+ default: number;
160
+ };
161
+ /**
162
+ * 各选项值对应list中的label键。如list是[{v:1,k:2}],valueKey为 v 且 labelKey为 k, 则选项绑定值为 1,显示文本是 2
163
+ */
164
+ labelKey: {
165
+ type: (NumberConstructor | StringConstructor)[];
166
+ default: number;
167
+ };
168
+ /**
169
+ * 同时设置valueKey & labelKey,优先级相对更高
170
+ */
171
+ keyMap: {
172
+ type: ObjectConstructor;
173
+ default(props: Obj): {
174
+ value: any;
175
+ label: any;
176
+ };
177
+ };
178
+ /**
179
+ * 是否隐藏全选框
180
+ */
181
+ hideAll: BooleanConstructor;
182
+ /**
183
+ * 双向绑定全选框的值,若全选中应为 true,否则 false
184
+ */
185
+ all: BooleanConstructor;
186
+ }>> & Readonly<{
187
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
188
+ }>, {
189
+ all: boolean;
190
+ title: string;
191
+ hideAll: boolean;
192
+ list: Obj[];
193
+ valueKey: string | number;
194
+ labelKey: string | number;
195
+ keyMap: Record<string, any>;
196
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, Readonly<{
197
+ /**
198
+ * checkbox整体选项区域
199
+ */
200
+ /**
201
+ * checkbox选项内容
202
+ * @param item list子项
203
+ */
204
+ default(_: {
205
+ item: Obj;
206
+ }): any;
207
+ }> & {
208
+ /**
209
+ * checkbox整体选项区域
210
+ */
211
+ /**
212
+ * checkbox选项内容
213
+ * @param item list子项
214
+ */
215
+ default(_: {
216
+ item: Obj;
217
+ }): any;
218
+ }>;
219
+
220
+ export declare const BaseSwitch: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes< {
221
+ modelValue: (BooleanConstructor | NumberConstructor | StringConstructor)[];
222
+ /**
223
+ * 打开状态对应值,默认 'T'
224
+ */
225
+ trueValue: {
226
+ type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
227
+ default: string;
228
+ };
229
+ /**
230
+ * 关闭状态对应值,默认 'F'
231
+ */
232
+ falseValue: {
233
+ type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
234
+ default: string;
235
+ };
236
+ /**
237
+ * 打开状态对应文本
238
+ */
239
+ trueLabel: StringConstructor;
240
+ /**
241
+ * 关闭状态对应文本
242
+ */
243
+ falseLabel: StringConstructor;
244
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
245
+ [x: string]: any;
246
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
247
+ modelValue: (BooleanConstructor | NumberConstructor | StringConstructor)[];
248
+ /**
249
+ * 打开状态对应值,默认 'T'
250
+ */
251
+ trueValue: {
252
+ type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
253
+ default: string;
254
+ };
255
+ /**
256
+ * 关闭状态对应值,默认 'F'
257
+ */
258
+ falseValue: {
259
+ type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
260
+ default: string;
261
+ };
262
+ /**
263
+ * 打开状态对应文本
264
+ */
265
+ trueLabel: StringConstructor;
266
+ /**
267
+ * 关闭状态对应文本
268
+ */
269
+ falseLabel: StringConstructor;
270
+ }>> & Readonly<{
271
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
272
+ }>, {
273
+ trueValue: string | number | boolean;
274
+ falseValue: string | number | boolean;
275
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
276
+ /**
277
+ * 打开状态对应文本
278
+ */
279
+ open(): any;
280
+ /**
281
+ * 关闭状态对应文本
282
+ */
283
+ close(): any;
284
+ }> & {
285
+ /**
286
+ * 打开状态对应文本
287
+ */
288
+ open(): any;
289
+ /**
290
+ * 关闭状态对应文本
291
+ */
292
+ close(): any;
293
+ }>;
294
+
295
+ export declare const CacheSelect: __VLS_WithTemplateSlots_4<DefineComponent<ExtractPropTypes< {
296
+ modelValue: PropType<SelectValue>;
297
+ /**
298
+ * 缓存的唯一键,当页面上同时用到多个不同数据源的CacheSelect时需传入不同值
299
+ */
300
+ cacheId: {
301
+ type: StringConstructor;
302
+ default: string;
303
+ };
304
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
305
+ [x: string]: any;
306
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
307
+ modelValue: PropType<SelectValue>;
308
+ /**
309
+ * 缓存的唯一键,当页面上同时用到多个不同数据源的CacheSelect时需传入不同值
310
+ */
311
+ cacheId: {
312
+ type: StringConstructor;
313
+ default: string;
314
+ };
315
+ }>> & Readonly<{
316
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
317
+ }>, {
318
+ cacheId: string;
319
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
320
+ sel: ({
321
+ $: ComponentInternalInstance;
322
+ $data: {};
323
+ $props: Partial<{
324
+ all: boolean;
325
+ multiple: boolean;
326
+ valueKey: string;
327
+ labelKey: string;
328
+ keyMap: Record<string, any>;
329
+ valueAsKey: boolean;
330
+ autoGet: boolean;
331
+ textMode: boolean;
332
+ cache: boolean;
333
+ strict: boolean;
334
+ check: Function;
335
+ getSelected: Function;
336
+ }> & Omit<{
337
+ readonly all: boolean;
338
+ readonly multiple: boolean;
339
+ readonly valueKey: string;
340
+ readonly labelKey: string;
341
+ readonly keyMap: Record<string, any>;
342
+ readonly valueAsKey: boolean;
343
+ readonly autoGet: boolean;
344
+ readonly textMode: boolean;
345
+ readonly cache: boolean;
346
+ readonly strict: boolean;
347
+ readonly check: Function;
348
+ readonly getSelected: Function;
349
+ readonly list?: Obj[] | undefined;
350
+ readonly modelValue?: SelectValue | undefined;
351
+ readonly param?: string | Function | Record<string, any> | undefined;
352
+ readonly method?: Function | undefined;
353
+ readonly refresh?: Function | undefined;
354
+ readonly process?: Function | undefined;
355
+ readonly textFormat?: Function | undefined;
356
+ readonly optionDisabled?: Function | undefined;
357
+ readonly optionTag?: Function | undefined;
358
+ readonly loader?: Function | undefined;
359
+ readonly chosen?: Record<string, any> | unknown[] | undefined;
360
+ readonly formatLabel?: Function | undefined;
361
+ readonly parentCode?: string | number | unknown[] | undefined;
362
+ readonly "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
363
+ readonly "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
364
+ readonly "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
365
+ readonly "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
366
+ readonly onLoad?: ((val: any) => any) | undefined;
367
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "all" | "multiple" | "valueKey" | "labelKey" | "keyMap" | "valueAsKey" | "autoGet" | "textMode" | "cache" | "strict" | "check" | "getSelected">;
368
+ $attrs: {
369
+ [x: string]: unknown;
370
+ };
371
+ $refs: {
372
+ [x: string]: unknown;
373
+ };
374
+ $slots: Readonly<{
375
+ [name: string]: Slot<any> | undefined;
376
+ }>;
377
+ $root: ComponentPublicInstance | null;
378
+ $parent: ComponentPublicInstance | null;
379
+ $host: Element | null;
380
+ $emit: ((event: "update:modelValue", val: SelectValue) => void) & ((event: "update:chosen", item: Obj) => void) & ((event: "update:list", list: Obj[]) => void) & ((event: "update:refresh", handle: () => Promise<void>) => void) & ((event: "load", val: any) => void);
381
+ $el: any;
382
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
383
+ modelValue: PropType<SelectValue>;
384
+ list: PropType<Obj[]>;
385
+ multiple: BooleanConstructor;
386
+ valueAsKey: BooleanConstructor;
387
+ valueKey: {
388
+ type: StringConstructor;
389
+ default: string;
390
+ };
391
+ labelKey: {
392
+ type: StringConstructor;
393
+ default: string;
394
+ };
395
+ keyMap: {
396
+ type: ObjectConstructor;
397
+ default(props: Obj): {
398
+ value: any;
399
+ label: any;
400
+ };
401
+ };
402
+ method: FunctionConstructor;
403
+ refresh: FunctionConstructor;
404
+ process: FunctionConstructor;
405
+ param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
406
+ chosen: (ArrayConstructor | ObjectConstructor)[];
407
+ autoGet: BooleanConstructor;
408
+ formatLabel: {
409
+ type: FunctionConstructor;
410
+ };
411
+ check: {
412
+ type: FunctionConstructor;
413
+ default: () => boolean;
414
+ };
415
+ textMode: BooleanConstructor;
416
+ textFormat: FunctionConstructor;
417
+ parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
418
+ optionDisabled: FunctionConstructor;
419
+ optionTag: FunctionConstructor;
420
+ getSelected: {
421
+ type: FunctionConstructor;
422
+ default({ multiple, keyMap, list, value }: {
423
+ multiple: boolean;
424
+ keyMap: {
425
+ value: string;
426
+ };
427
+ list: Obj[];
428
+ value: SelectValue;
429
+ }): Obj | Obj[];
430
+ };
431
+ cache: BooleanConstructor;
432
+ loader: FunctionConstructor;
433
+ strict: BooleanConstructor;
434
+ all: {
435
+ type: BooleanConstructor;
436
+ default: boolean;
437
+ };
438
+ }>> & Readonly<{
439
+ "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
440
+ "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
441
+ "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
442
+ "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
443
+ onLoad?: ((val: any) => any) | undefined;
444
+ }>, {
445
+ code: Ref<SelectValue, SelectValue>;
446
+ changeCode: (val: SelectValue) => void;
447
+ loaded: Ref<boolean, boolean>;
448
+ codes: Ref<Obj[], Obj[]>;
449
+ search: () => Promise<void>;
450
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
451
+ "update:modelValue": (val: SelectValue) => any;
452
+ "update:chosen": (item: Obj) => any;
453
+ "update:list": (list: Obj[]) => any;
454
+ "update:refresh": (handle: () => Promise<void>) => any;
455
+ load: (val: any) => any;
456
+ }, string, {
457
+ all: boolean;
458
+ multiple: boolean;
459
+ valueKey: string;
460
+ labelKey: string;
461
+ keyMap: Record<string, any>;
462
+ valueAsKey: boolean;
463
+ autoGet: boolean;
464
+ textMode: boolean;
465
+ cache: boolean;
466
+ strict: boolean;
467
+ check: Function;
468
+ getSelected: Function;
469
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
470
+ beforeCreate?: (() => void) | (() => void)[];
471
+ created?: (() => void) | (() => void)[];
472
+ beforeMount?: (() => void) | (() => void)[];
473
+ mounted?: (() => void) | (() => void)[];
474
+ beforeUpdate?: (() => void) | (() => void)[];
475
+ updated?: (() => void) | (() => void)[];
476
+ activated?: (() => void) | (() => void)[];
477
+ deactivated?: (() => void) | (() => void)[];
478
+ beforeDestroy?: (() => void) | (() => void)[];
479
+ beforeUnmount?: (() => void) | (() => void)[];
480
+ destroyed?: (() => void) | (() => void)[];
481
+ unmounted?: (() => void) | (() => void)[];
482
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
483
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
484
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
485
+ };
486
+ $forceUpdate: () => void;
487
+ $nextTick: typeof nextTick;
488
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
489
+ } & Readonly<{
490
+ all: boolean;
491
+ multiple: boolean;
492
+ valueKey: string;
493
+ labelKey: string;
494
+ keyMap: Record<string, any>;
495
+ valueAsKey: boolean;
496
+ autoGet: boolean;
497
+ textMode: boolean;
498
+ cache: boolean;
499
+ strict: boolean;
500
+ check: Function;
501
+ getSelected: Function;
502
+ }> & Omit<Readonly<ExtractPropTypes< {
503
+ modelValue: PropType<SelectValue>;
504
+ list: PropType<Obj[]>;
505
+ multiple: BooleanConstructor;
506
+ valueAsKey: BooleanConstructor;
507
+ valueKey: {
508
+ type: StringConstructor;
509
+ default: string;
510
+ };
511
+ labelKey: {
512
+ type: StringConstructor;
513
+ default: string;
514
+ };
515
+ keyMap: {
516
+ type: ObjectConstructor;
517
+ default(props: Obj): {
518
+ value: any;
519
+ label: any;
520
+ };
521
+ };
522
+ method: FunctionConstructor;
523
+ refresh: FunctionConstructor;
524
+ process: FunctionConstructor;
525
+ param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
526
+ chosen: (ArrayConstructor | ObjectConstructor)[];
527
+ autoGet: BooleanConstructor;
528
+ formatLabel: {
529
+ type: FunctionConstructor;
530
+ };
531
+ check: {
532
+ type: FunctionConstructor;
533
+ default: () => boolean;
534
+ };
535
+ textMode: BooleanConstructor;
536
+ textFormat: FunctionConstructor;
537
+ parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
538
+ optionDisabled: FunctionConstructor;
539
+ optionTag: FunctionConstructor;
540
+ getSelected: {
541
+ type: FunctionConstructor;
542
+ default({ multiple, keyMap, list, value }: {
543
+ multiple: boolean;
544
+ keyMap: {
545
+ value: string;
546
+ };
547
+ list: Obj[];
548
+ value: SelectValue;
549
+ }): Obj | Obj[];
550
+ };
551
+ cache: BooleanConstructor;
552
+ loader: FunctionConstructor;
553
+ strict: BooleanConstructor;
554
+ all: {
555
+ type: BooleanConstructor;
556
+ default: boolean;
557
+ };
558
+ }>> & Readonly<{
559
+ "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
560
+ "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
561
+ "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
562
+ "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
563
+ onLoad?: ((val: any) => any) | undefined;
564
+ }>, "code" | "search" | "changeCode" | "loaded" | "codes" | ("all" | "multiple" | "valueKey" | "labelKey" | "keyMap" | "valueAsKey" | "autoGet" | "textMode" | "cache" | "strict" | "check" | "getSelected")> & ShallowUnwrapRef< {
565
+ code: Ref<SelectValue, SelectValue>;
566
+ changeCode: (val: SelectValue) => void;
567
+ loaded: Ref<boolean, boolean>;
568
+ codes: Ref<Obj[], Obj[]>;
569
+ search: () => Promise<void>;
570
+ }> & {} & ComponentCustomProperties & {} & {
571
+ $slots: Readonly<{
572
+ default(_: {
573
+ item: Obj;
574
+ index: number;
575
+ }): any;
576
+ dropdown(_: {
577
+ list: Obj[];
578
+ }): any;
579
+ text(_: {
580
+ text: string;
581
+ }): any;
582
+ }> & {
583
+ default(_: {
584
+ item: Obj;
585
+ index: number;
586
+ }): any;
587
+ dropdown(_: {
588
+ list: Obj[];
589
+ }): any;
590
+ text(_: {
591
+ text: string;
592
+ }): any;
593
+ };
594
+ }) | null;
595
+ }, any>, {
596
+ default?(_: {
597
+ item: Obj;
598
+ index: number;
599
+ }): any;
600
+ dropdown?(_: {
601
+ list: Obj[];
602
+ }): any;
603
+ text?(_: {
604
+ text: string;
605
+ }): any;
606
+ }>;
607
+
608
+ export declare type CheckValue = (string | number)[];
609
+
610
+ export declare const Combi: __VLS_WithTemplateSlots_3<DefineComponent<ExtractPropTypes< {
611
+ /**
612
+ * 前置文本
613
+ */
614
+ prepend: StringConstructor;
615
+ /**
616
+ * 后置文本
617
+ */
618
+ append: StringConstructor;
619
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
620
+ /**
621
+ * 前置文本
622
+ */
623
+ prepend: StringConstructor;
624
+ /**
625
+ * 后置文本
626
+ */
627
+ append: StringConstructor;
628
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, Readonly<{
629
+ default(): any;
630
+ /**
631
+ * 前置内容
632
+ */
633
+ prepend?(): any;
634
+ /**
635
+ * 后置内容
636
+ */
637
+ append?(): any;
638
+ }> & {
639
+ default(): any;
640
+ /**
641
+ * 前置内容
642
+ */
643
+ prepend?(): any;
644
+ /**
645
+ * 后置内容
646
+ */
647
+ append?(): any;
648
+ }>;
649
+
650
+ export declare const CountRange: DefineComponent<ExtractPropTypes< {
651
+ /**
652
+ * 双向绑定最小值
653
+ */
654
+ begin: {
655
+ type: PropType<CountValue>;
656
+ default: null;
657
+ };
658
+ /**
659
+ * 双向绑定最大值
660
+ */
661
+ end: {
662
+ type: PropType<CountValue>;
663
+ default: null;
664
+ };
665
+ /**
666
+ * 允许的最小值,默认0
667
+ */
668
+ min: {
669
+ type: NumberConstructor;
670
+ default: number;
671
+ };
672
+ /**
673
+ * 允许的最大值,默认9999999999
674
+ */
675
+ max: {
676
+ type: NumberConstructor;
677
+ default: number;
678
+ };
679
+ /**
680
+ * 禁用整个组件
681
+ */
682
+ disabled: BooleanConstructor;
683
+ /**
684
+ * 禁用最小值
685
+ */
686
+ minDisabled: BooleanConstructor;
687
+ /**
688
+ * 禁用最大值
689
+ */
690
+ maxDisabled: BooleanConstructor;
691
+ /**
692
+ * 最小值组件class
693
+ */
694
+ minClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
695
+ /**
696
+ * 最大值组件class
697
+ */
698
+ maxClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
699
+ /**
700
+ * 最小值占位文本
701
+ */
702
+ minHolder: {
703
+ type: StringConstructor;
704
+ default(): string;
705
+ };
706
+ /**
707
+ * 最大值占位文本
708
+ */
709
+ maxHolder: {
710
+ type: StringConstructor;
711
+ default(): string;
712
+ };
713
+ controlsOutside: BooleanConstructor;
714
+ step: NumberConstructor;
715
+ readonly: BooleanConstructor;
716
+ editable: {
717
+ type: BooleanConstructor;
718
+ default: boolean;
719
+ };
720
+ precision: NumberConstructor;
721
+ formatter: FunctionConstructor;
722
+ parser: FunctionConstructor;
723
+ activeChange: {
724
+ type: BooleanConstructor;
725
+ default: boolean;
726
+ };
727
+ /**
728
+ * 传递给最小值组件的props
729
+ */
730
+ minAttr: ObjectConstructor;
731
+ /**
732
+ * 传递给最大值组件的props
733
+ */
734
+ maxAttr: ObjectConstructor;
735
+ /**
736
+ * 中间连接部分class
737
+ */
738
+ joinerClass: (StringConstructor | ObjectConstructor)[];
739
+ /**
740
+ * 是否隐藏连接部分
741
+ */
742
+ hideJoiner: BooleanConstructor;
743
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
744
+ change: (begin: number, end: number, isMax: boolean) => any;
745
+ "update:begin": (val: number) => any;
746
+ "update:end": (val: number) => any;
747
+ "change-min": (val: number) => any;
748
+ "change-max": (val: number) => any;
749
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
750
+ /**
751
+ * 双向绑定最小值
752
+ */
753
+ begin: {
754
+ type: PropType<CountValue>;
755
+ default: null;
756
+ };
757
+ /**
758
+ * 双向绑定最大值
759
+ */
760
+ end: {
761
+ type: PropType<CountValue>;
762
+ default: null;
763
+ };
764
+ /**
765
+ * 允许的最小值,默认0
766
+ */
767
+ min: {
768
+ type: NumberConstructor;
769
+ default: number;
770
+ };
771
+ /**
772
+ * 允许的最大值,默认9999999999
773
+ */
774
+ max: {
775
+ type: NumberConstructor;
776
+ default: number;
777
+ };
778
+ /**
779
+ * 禁用整个组件
780
+ */
781
+ disabled: BooleanConstructor;
782
+ /**
783
+ * 禁用最小值
784
+ */
785
+ minDisabled: BooleanConstructor;
786
+ /**
787
+ * 禁用最大值
788
+ */
789
+ maxDisabled: BooleanConstructor;
790
+ /**
791
+ * 最小值组件class
792
+ */
793
+ minClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
794
+ /**
795
+ * 最大值组件class
796
+ */
797
+ maxClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
798
+ /**
799
+ * 最小值占位文本
800
+ */
801
+ minHolder: {
802
+ type: StringConstructor;
803
+ default(): string;
804
+ };
805
+ /**
806
+ * 最大值占位文本
807
+ */
808
+ maxHolder: {
809
+ type: StringConstructor;
810
+ default(): string;
811
+ };
812
+ controlsOutside: BooleanConstructor;
813
+ step: NumberConstructor;
814
+ readonly: BooleanConstructor;
815
+ editable: {
816
+ type: BooleanConstructor;
817
+ default: boolean;
818
+ };
819
+ precision: NumberConstructor;
820
+ formatter: FunctionConstructor;
821
+ parser: FunctionConstructor;
822
+ activeChange: {
823
+ type: BooleanConstructor;
824
+ default: boolean;
825
+ };
826
+ /**
827
+ * 传递给最小值组件的props
828
+ */
829
+ minAttr: ObjectConstructor;
830
+ /**
831
+ * 传递给最大值组件的props
832
+ */
833
+ maxAttr: ObjectConstructor;
834
+ /**
835
+ * 中间连接部分class
836
+ */
837
+ joinerClass: (StringConstructor | ObjectConstructor)[];
838
+ /**
839
+ * 是否隐藏连接部分
840
+ */
841
+ hideJoiner: BooleanConstructor;
842
+ }>> & Readonly<{
843
+ onChange?: ((begin: number, end: number, isMax: boolean) => any) | undefined;
844
+ "onUpdate:begin"?: ((val: number) => any) | undefined;
845
+ "onUpdate:end"?: ((val: number) => any) | undefined;
846
+ "onChange-min"?: ((val: number) => any) | undefined;
847
+ "onChange-max"?: ((val: number) => any) | undefined;
848
+ }>, {
849
+ max: number;
850
+ min: number;
851
+ disabled: boolean;
852
+ readonly: boolean;
853
+ editable: boolean;
854
+ activeChange: boolean;
855
+ minDisabled: boolean;
856
+ maxDisabled: boolean;
857
+ controlsOutside: boolean;
858
+ hideJoiner: boolean;
859
+ begin: CountValue;
860
+ end: CountValue;
861
+ minHolder: string;
862
+ maxHolder: string;
863
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
864
+
865
+ export declare type CountValue = number | null | undefined;
866
+
867
+ export declare const CurdTable: __VLS_WithTemplateSlots_6<DefineComponent<ExtractPropTypes< {
868
+ modelValue: {
869
+ type: PropType<Obj[]>;
870
+ default: () => never[];
871
+ };
872
+ /**
873
+ * iview Table columns
874
+ */
875
+ columns: {
876
+ type: PropType<Obj[]>;
877
+ default: () => never[];
878
+ };
879
+ /**
880
+ * 是否隐藏控制列
881
+ */
882
+ disabled: BooleanConstructor;
883
+ /**
884
+ * 可否增加数据,默认true
885
+ */
886
+ addable: {
887
+ type: BooleanConstructor;
888
+ default: boolean;
889
+ };
890
+ /**
891
+ * 控制列宽度,默认90px
892
+ */
893
+ actionWidth: {
894
+ type: NumberConstructor;
895
+ default: number;
896
+ };
897
+ /**
898
+ * 控制列水平对齐,默认居中
899
+ */
900
+ actionAlign: {
901
+ type: StringConstructor;
902
+ default: string;
903
+ };
904
+ /**
905
+ * 控制列是否固定
906
+ */
907
+ actionFixed: StringConstructor;
908
+ /**
909
+ * 控制列表头文本
910
+ */
911
+ actionText: {
912
+ type: StringConstructor;
913
+ default(): string;
914
+ };
915
+ /**
916
+ * 右侧控制列
917
+ */
918
+ actionCol: {
919
+ type: ObjectConstructor;
920
+ default(props: Obj): {
921
+ title: any;
922
+ slot: string;
923
+ width: any;
924
+ align: any;
925
+ fixed: any;
926
+ };
927
+ };
928
+ /**
929
+ * 新增行时需要添加的数据
930
+ */
931
+ addRow: {
932
+ type: FunctionConstructor;
933
+ default: () => never[];
934
+ };
935
+ border: BooleanConstructor;
936
+ size: StringConstructor;
937
+ /**
938
+ * 返回Promise以决定何时新增数据
939
+ */
940
+ beforeAdd: FunctionConstructor;
941
+ /**
942
+ * 返回Promise以决定何时删除数据
943
+ */
944
+ beforeRemove: FunctionConstructor;
945
+ addBtnType: {
946
+ type: StringConstructor;
947
+ default: string;
948
+ };
949
+ addBtnSize: StringConstructor;
950
+ addBtnGhost: {
951
+ type: BooleanConstructor;
952
+ default: boolean;
953
+ };
954
+ addBtnDisabled: {
955
+ type: BooleanConstructor;
956
+ default(props: Obj): boolean;
957
+ };
958
+ addBtn: {
959
+ type: ObjectConstructor;
960
+ default: () => {};
961
+ };
962
+ delBtnType: {
963
+ type: StringConstructor;
964
+ default: string;
965
+ };
966
+ delBtnSize: {
967
+ type: StringConstructor;
968
+ default: string;
969
+ };
970
+ delBtnGhost: {
971
+ type: BooleanConstructor;
972
+ default: boolean;
973
+ };
974
+ delBtn: {
975
+ type: ObjectConstructor;
976
+ default: () => {};
977
+ };
978
+ addText: {
979
+ type: StringConstructor;
980
+ default(): string;
981
+ };
982
+ /**
983
+ * 是否隐藏每行的删除按钮,通过函数返回值决定
984
+ */
985
+ hideDelBtn: FunctionConstructor;
986
+ /**
987
+ * 是否禁用每行删除按钮,通过函数返回值决定
988
+ */
989
+ delBtnDisabled: {
990
+ type: FunctionConstructor;
991
+ default(): boolean;
992
+ };
993
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
994
+ "update:modelValue": (val: Obj[]) => any;
995
+ change: (isAdd: boolean) => any;
996
+ add: (row: Obj) => any;
997
+ remove: (row: Obj) => any;
998
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
999
+ modelValue: {
1000
+ type: PropType<Obj[]>;
1001
+ default: () => never[];
1002
+ };
1003
+ /**
1004
+ * iview Table columns
1005
+ */
1006
+ columns: {
1007
+ type: PropType<Obj[]>;
1008
+ default: () => never[];
1009
+ };
1010
+ /**
1011
+ * 是否隐藏控制列
1012
+ */
1013
+ disabled: BooleanConstructor;
1014
+ /**
1015
+ * 可否增加数据,默认true
1016
+ */
1017
+ addable: {
1018
+ type: BooleanConstructor;
1019
+ default: boolean;
1020
+ };
1021
+ /**
1022
+ * 控制列宽度,默认90px
1023
+ */
1024
+ actionWidth: {
1025
+ type: NumberConstructor;
1026
+ default: number;
1027
+ };
1028
+ /**
1029
+ * 控制列水平对齐,默认居中
1030
+ */
1031
+ actionAlign: {
1032
+ type: StringConstructor;
1033
+ default: string;
1034
+ };
1035
+ /**
1036
+ * 控制列是否固定
1037
+ */
1038
+ actionFixed: StringConstructor;
1039
+ /**
1040
+ * 控制列表头文本
1041
+ */
1042
+ actionText: {
1043
+ type: StringConstructor;
1044
+ default(): string;
1045
+ };
1046
+ /**
1047
+ * 右侧控制列
1048
+ */
1049
+ actionCol: {
1050
+ type: ObjectConstructor;
1051
+ default(props: Obj): {
1052
+ title: any;
1053
+ slot: string;
1054
+ width: any;
1055
+ align: any;
1056
+ fixed: any;
1057
+ };
1058
+ };
1059
+ /**
1060
+ * 新增行时需要添加的数据
1061
+ */
1062
+ addRow: {
1063
+ type: FunctionConstructor;
1064
+ default: () => never[];
1065
+ };
1066
+ border: BooleanConstructor;
1067
+ size: StringConstructor;
1068
+ /**
1069
+ * 返回Promise以决定何时新增数据
1070
+ */
1071
+ beforeAdd: FunctionConstructor;
1072
+ /**
1073
+ * 返回Promise以决定何时删除数据
1074
+ */
1075
+ beforeRemove: FunctionConstructor;
1076
+ addBtnType: {
1077
+ type: StringConstructor;
1078
+ default: string;
1079
+ };
1080
+ addBtnSize: StringConstructor;
1081
+ addBtnGhost: {
1082
+ type: BooleanConstructor;
1083
+ default: boolean;
1084
+ };
1085
+ addBtnDisabled: {
1086
+ type: BooleanConstructor;
1087
+ default(props: Obj): boolean;
1088
+ };
1089
+ addBtn: {
1090
+ type: ObjectConstructor;
1091
+ default: () => {};
1092
+ };
1093
+ delBtnType: {
1094
+ type: StringConstructor;
1095
+ default: string;
1096
+ };
1097
+ delBtnSize: {
1098
+ type: StringConstructor;
1099
+ default: string;
1100
+ };
1101
+ delBtnGhost: {
1102
+ type: BooleanConstructor;
1103
+ default: boolean;
1104
+ };
1105
+ delBtn: {
1106
+ type: ObjectConstructor;
1107
+ default: () => {};
1108
+ };
1109
+ addText: {
1110
+ type: StringConstructor;
1111
+ default(): string;
1112
+ };
1113
+ /**
1114
+ * 是否隐藏每行的删除按钮,通过函数返回值决定
1115
+ */
1116
+ hideDelBtn: FunctionConstructor;
1117
+ /**
1118
+ * 是否禁用每行删除按钮,通过函数返回值决定
1119
+ */
1120
+ delBtnDisabled: {
1121
+ type: FunctionConstructor;
1122
+ default(): boolean;
1123
+ };
1124
+ }>> & Readonly<{
1125
+ "onUpdate:modelValue"?: ((val: Obj[]) => any) | undefined;
1126
+ onChange?: ((isAdd: boolean) => any) | undefined;
1127
+ onAdd?: ((row: Obj) => any) | undefined;
1128
+ onRemove?: ((row: Obj) => any) | undefined;
1129
+ }>, {
1130
+ disabled: boolean;
1131
+ modelValue: Obj[];
1132
+ border: boolean;
1133
+ columns: Obj[];
1134
+ addable: boolean;
1135
+ actionWidth: number;
1136
+ actionAlign: string;
1137
+ actionText: string;
1138
+ actionCol: Record<string, any>;
1139
+ addRow: Function;
1140
+ addBtnType: string;
1141
+ addBtnGhost: boolean;
1142
+ addBtnDisabled: boolean;
1143
+ addBtn: Record<string, any>;
1144
+ delBtnType: string;
1145
+ delBtnSize: string;
1146
+ delBtnGhost: boolean;
1147
+ delBtn: Record<string, any>;
1148
+ addText: string;
1149
+ delBtnDisabled: Function;
1150
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, Partial<Record<any, (_: any) => any>> & {
1151
+ moreAction?(_: {
1152
+ row: any;
1153
+ index: any;
1154
+ }): any;
1155
+ }>;
1156
+
1157
+ export declare const DateRange: DefineComponent<ExtractPropTypes< {
1158
+ /**
1159
+ * 双向绑定开始时间
1160
+ */
1161
+ begin: {
1162
+ type: (StringConstructor | DateConstructor)[];
1163
+ default: string;
1164
+ };
1165
+ /**
1166
+ * 双向绑定结束时间
1167
+ */
1168
+ end: {
1169
+ type: (StringConstructor | DateConstructor)[];
1170
+ default: string;
1171
+ };
1172
+ /**
1173
+ * 可选的日期类型:date | month | year | datetime
1174
+ */
1175
+ type: {
1176
+ type: PropType<"month" | "year" | "date" | "datetime">;
1177
+ default: string;
1178
+ };
1179
+ clearable: BooleanConstructor;
1180
+ disabled: BooleanConstructor;
1181
+ transfer: BooleanConstructor;
1182
+ /**
1183
+ * 禁用开始时间
1184
+ */
1185
+ beginDisabled: BooleanConstructor;
1186
+ /**
1187
+ * 禁用结束时间
1188
+ */
1189
+ endDisabled: BooleanConstructor;
1190
+ /**
1191
+ * 是否当所选开始日期大于结束日期时自动将结束日期置为开始日期后一天
1192
+ */
1193
+ autoNext: {
1194
+ type: BooleanConstructor;
1195
+ default: boolean;
1196
+ };
1197
+ /**
1198
+ * 是否默认限制开始时间
1199
+ */
1200
+ limitBegin: {
1201
+ type: BooleanConstructor;
1202
+ default: boolean;
1203
+ };
1204
+ beginClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
1205
+ endClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
1206
+ /**
1207
+ * 开始时间placeholder
1208
+ */
1209
+ beginHolder: {
1210
+ type: StringConstructor;
1211
+ default(): string;
1212
+ };
1213
+ /**
1214
+ * 结束时间placeholder
1215
+ */
1216
+ endHolder: {
1217
+ type: StringConstructor;
1218
+ default(): string;
1219
+ };
1220
+ /**
1221
+ * 一次性传给开始组件的prop
1222
+ */
1223
+ beginAttr: ObjectConstructor;
1224
+ /**
1225
+ * 一次性传给结束组件的prop
1226
+ */
1227
+ endAttr: ObjectConstructor;
1228
+ /**
1229
+ * 中间连接符的class
1230
+ */
1231
+ joinerClass: (StringConstructor | ObjectConstructor)[];
1232
+ /**
1233
+ * 是否禁止选择今天
1234
+ */
1235
+ disableToday: BooleanConstructor;
1236
+ /**
1237
+ * 是否隐藏连接符
1238
+ */
1239
+ hideJoiner: BooleanConstructor;
1240
+ /**
1241
+ * iview DatePicer的日期格式
1242
+ */
1243
+ format: StringConstructor;
1244
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1245
+ change: (begin: DateValue, end: DateValue, isEnd: boolean) => any;
1246
+ "update:begin": (val: DateValue) => any;
1247
+ "update:end": (val: DateValue) => any;
1248
+ "change-begin": (val: string) => any;
1249
+ "change-end": (val: string) => any;
1250
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
1251
+ /**
1252
+ * 双向绑定开始时间
1253
+ */
1254
+ begin: {
1255
+ type: (StringConstructor | DateConstructor)[];
1256
+ default: string;
1257
+ };
1258
+ /**
1259
+ * 双向绑定结束时间
1260
+ */
1261
+ end: {
1262
+ type: (StringConstructor | DateConstructor)[];
1263
+ default: string;
1264
+ };
1265
+ /**
1266
+ * 可选的日期类型:date | month | year | datetime
1267
+ */
1268
+ type: {
1269
+ type: PropType<"month" | "year" | "date" | "datetime">;
1270
+ default: string;
1271
+ };
1272
+ clearable: BooleanConstructor;
1273
+ disabled: BooleanConstructor;
1274
+ transfer: BooleanConstructor;
1275
+ /**
1276
+ * 禁用开始时间
1277
+ */
1278
+ beginDisabled: BooleanConstructor;
1279
+ /**
1280
+ * 禁用结束时间
1281
+ */
1282
+ endDisabled: BooleanConstructor;
1283
+ /**
1284
+ * 是否当所选开始日期大于结束日期时自动将结束日期置为开始日期后一天
1285
+ */
1286
+ autoNext: {
1287
+ type: BooleanConstructor;
1288
+ default: boolean;
1289
+ };
1290
+ /**
1291
+ * 是否默认限制开始时间
1292
+ */
1293
+ limitBegin: {
1294
+ type: BooleanConstructor;
1295
+ default: boolean;
1296
+ };
1297
+ beginClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
1298
+ endClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
1299
+ /**
1300
+ * 开始时间placeholder
1301
+ */
1302
+ beginHolder: {
1303
+ type: StringConstructor;
1304
+ default(): string;
1305
+ };
1306
+ /**
1307
+ * 结束时间placeholder
1308
+ */
1309
+ endHolder: {
1310
+ type: StringConstructor;
1311
+ default(): string;
1312
+ };
1313
+ /**
1314
+ * 一次性传给开始组件的prop
1315
+ */
1316
+ beginAttr: ObjectConstructor;
1317
+ /**
1318
+ * 一次性传给结束组件的prop
1319
+ */
1320
+ endAttr: ObjectConstructor;
1321
+ /**
1322
+ * 中间连接符的class
1323
+ */
1324
+ joinerClass: (StringConstructor | ObjectConstructor)[];
1325
+ /**
1326
+ * 是否禁止选择今天
1327
+ */
1328
+ disableToday: BooleanConstructor;
1329
+ /**
1330
+ * 是否隐藏连接符
1331
+ */
1332
+ hideJoiner: BooleanConstructor;
1333
+ /**
1334
+ * iview DatePicer的日期格式
1335
+ */
1336
+ format: StringConstructor;
1337
+ }>> & Readonly<{
1338
+ onChange?: ((begin: DateValue, end: DateValue, isEnd: boolean) => any) | undefined;
1339
+ "onUpdate:begin"?: ((val: DateValue) => any) | undefined;
1340
+ "onUpdate:end"?: ((val: DateValue) => any) | undefined;
1341
+ "onChange-begin"?: ((val: string) => any) | undefined;
1342
+ "onChange-end"?: ((val: string) => any) | undefined;
1343
+ }>, {
1344
+ disabled: boolean;
1345
+ clearable: boolean;
1346
+ transfer: boolean;
1347
+ type: "month" | "year" | "date" | "datetime";
1348
+ hideJoiner: boolean;
1349
+ begin: string | Date;
1350
+ end: string | Date;
1351
+ beginDisabled: boolean;
1352
+ endDisabled: boolean;
1353
+ disableToday: boolean;
1354
+ autoNext: boolean;
1355
+ limitBegin: boolean;
1356
+ beginHolder: string;
1357
+ endHolder: string;
1358
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1359
+
1360
+ export declare const DateRangePicker: DefineComponent<ExtractPropTypes< {
1361
+ /**
1362
+ * 双向绑定开始时间
1363
+ */
1364
+ begin: {
1365
+ type: (StringConstructor | DateConstructor)[];
1366
+ default: string;
1367
+ };
1368
+ /**
1369
+ * 双向绑定结束时间
1370
+ */
1371
+ end: {
1372
+ type: (StringConstructor | DateConstructor)[];
1373
+ default: string;
1374
+ };
1375
+ /**
1376
+ * 可选的日期类型:daterange | datetimerange
1377
+ */
1378
+ type: {
1379
+ type: PropType<"daterange" | "datetimerange">;
1380
+ default: string;
1381
+ validator(value: string): boolean;
1382
+ };
1383
+ options: ObjectConstructor;
1384
+ clearable: {
1385
+ type: BooleanConstructor;
1386
+ default: boolean;
1387
+ };
1388
+ splitPanels: BooleanConstructor;
1389
+ /**
1390
+ * 是否默认限制开始时间
1391
+ */
1392
+ limitBegin: {
1393
+ type: BooleanConstructor;
1394
+ default: boolean;
1395
+ };
1396
+ /**
1397
+ * 是否禁止选择今天
1398
+ */
1399
+ disableToday: BooleanConstructor;
1400
+ transfer: BooleanConstructor;
1401
+ placeholder: StringConstructor;
1402
+ disabled: BooleanConstructor;
1403
+ placement: StringConstructor;
1404
+ /**
1405
+ * 用于格式化绑定时间,默认 YYYY-MM-DD
1406
+ */
1407
+ valueFormat: {
1408
+ type: StringConstructor;
1409
+ default: string;
1410
+ };
1411
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1412
+ change: (dates: string[], type: string) => any;
1413
+ "update:begin": (date: string) => any;
1414
+ "update:end": (date: string) => any;
1415
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
1416
+ /**
1417
+ * 双向绑定开始时间
1418
+ */
1419
+ begin: {
1420
+ type: (StringConstructor | DateConstructor)[];
1421
+ default: string;
1422
+ };
1423
+ /**
1424
+ * 双向绑定结束时间
1425
+ */
1426
+ end: {
1427
+ type: (StringConstructor | DateConstructor)[];
1428
+ default: string;
1429
+ };
1430
+ /**
1431
+ * 可选的日期类型:daterange | datetimerange
1432
+ */
1433
+ type: {
1434
+ type: PropType<"daterange" | "datetimerange">;
1435
+ default: string;
1436
+ validator(value: string): boolean;
1437
+ };
1438
+ options: ObjectConstructor;
1439
+ clearable: {
1440
+ type: BooleanConstructor;
1441
+ default: boolean;
1442
+ };
1443
+ splitPanels: BooleanConstructor;
1444
+ /**
1445
+ * 是否默认限制开始时间
1446
+ */
1447
+ limitBegin: {
1448
+ type: BooleanConstructor;
1449
+ default: boolean;
1450
+ };
1451
+ /**
1452
+ * 是否禁止选择今天
1453
+ */
1454
+ disableToday: BooleanConstructor;
1455
+ transfer: BooleanConstructor;
1456
+ placeholder: StringConstructor;
1457
+ disabled: BooleanConstructor;
1458
+ placement: StringConstructor;
1459
+ /**
1460
+ * 用于格式化绑定时间,默认 YYYY-MM-DD
1461
+ */
1462
+ valueFormat: {
1463
+ type: StringConstructor;
1464
+ default: string;
1465
+ };
1466
+ }>> & Readonly<{
1467
+ onChange?: ((dates: string[], type: string) => any) | undefined;
1468
+ "onUpdate:begin"?: ((date: string) => any) | undefined;
1469
+ "onUpdate:end"?: ((date: string) => any) | undefined;
1470
+ }>, {
1471
+ disabled: boolean;
1472
+ clearable: boolean;
1473
+ transfer: boolean;
1474
+ type: "daterange" | "datetimerange";
1475
+ begin: string | Date;
1476
+ end: string | Date;
1477
+ disableToday: boolean;
1478
+ limitBegin: boolean;
1479
+ splitPanels: boolean;
1480
+ valueFormat: string;
1481
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1482
+
1483
+ export declare type DateValue = Date | string;
1484
+
1485
+ declare const _default: {
1486
+ install: typeof install;
1487
+ };
1488
+ export default _default;
1489
+
1490
+ export declare function install(app: App, opt?: {
1491
+ i18n?: any;
1492
+ msg?: Obj;
1493
+ msgPrefix?: string;
1494
+ }): void;
1495
+
1496
+ export declare const iviewSelect: Directive;
1497
+
1498
+ export declare const MCalendar: __VLS_WithTemplateSlots_7<DefineComponent<ExtractPropTypes< {
1499
+ /**
1500
+ * 指定日期,默认显示该日期所在月份
1501
+ */
1502
+ date: DateConstructor;
1503
+ /**
1504
+ * 传入的额外日期数据
1505
+ * 组件始终展示一段日期,但业务上有时需要根据返回的一组日期进行渲染,如 [{date:'2000-01-01',xxx:false},{date:'2000-01-02',xxx:true}]
1506
+ */
1507
+ dates: PropType<Obj[]>;
1508
+ /**
1509
+ * 周起始日,默认星期一
1510
+ */
1511
+ startDay: {
1512
+ type: NumberConstructor;
1513
+ default: number;
1514
+ validator: (val: number) => boolean;
1515
+ };
1516
+ /**
1517
+ * 休息日,默认周六周日
1518
+ *
1519
+ * @example [5,6] 休息日变为周五周六
1520
+ */
1521
+ offDay: {
1522
+ type: ArrayConstructor;
1523
+ default: () => number[];
1524
+ };
1525
+ /**
1526
+ * 传入dates里日期值对应的key,默认“date”
1527
+ */
1528
+ dateKey: {
1529
+ type: StringConstructor;
1530
+ default: string;
1531
+ };
1532
+ /**
1533
+ * 单元格标题class
1534
+ */
1535
+ titleClass: FunctionConstructor;
1536
+ /**
1537
+ * 每一天单元格class
1538
+ */
1539
+ dateClass: FunctionConstructor;
1540
+ /**
1541
+ * 加载状态
1542
+ */
1543
+ loading: BooleanConstructor;
1544
+ /**
1545
+ * 单元格日期[格式](https://day.js.org/docs/en/display/format),默认 YYYY-MM-DD
1546
+ */
1547
+ textFormat: {
1548
+ type: StringConstructor;
1549
+ default: string;
1550
+ };
1551
+ /**
1552
+ * 是否将指定date放在第一行,而不是按传统模式将每月1号放在第一行,此时会限定整个42格为起止范围,故可能不会显示完整的某月上下范围
1553
+ */
1554
+ isOnFirstLine: BooleanConstructor;
1555
+ /**
1556
+ * 是否开启范围选择
1557
+ */
1558
+ hasRange: BooleanConstructor;
1559
+ /**
1560
+ * 非当前有效时间范围内的日期是否可被选入范围
1561
+ */
1562
+ outerInRange: BooleanConstructor;
1563
+ /**
1564
+ * 选择一个范围后,再选择时是否先将已选范围清除,即是否可清除已选范围
1565
+ */
1566
+ clearable: {
1567
+ type: BooleanConstructor;
1568
+ default: boolean;
1569
+ };
1570
+ /**
1571
+ * 已选范围
1572
+ *
1573
+ * @example [{_date: '2020-01-01'}, {_date: new Date('2020-01-10')}]
1574
+ */
1575
+ range: PropType<(Obj & {
1576
+ _date: Date | string | number;
1577
+ })[]>;
1578
+ /**
1579
+ * 周标题内容类型,可选mini、short、long
1580
+ *
1581
+ * @example
1582
+ * weekType=mini 对应显示成 一、二、三。。。
1583
+ * weekType=short对应显示成 周一、周二、周三。。。
1584
+ * weekType=long 对应显示成 星期一、星期二、星期三。。。
1585
+ */
1586
+ weekType: {
1587
+ type: StringConstructor;
1588
+ default: string;
1589
+ };
1590
+ /**
1591
+ * 周一到周日对应的映射,若传入有效对象则以该对象的key显示星期标题
1592
+ *
1593
+ * @example
1594
+ * 周六周日标题会分别显示成 “星期6” 和 “星期天”,忽略对应的翻译文本
1595
+ * :weekMap={0: '星期天', 6: '星期6'} *
1596
+ */
1597
+ weekMap: {
1598
+ type: ObjectConstructor;
1599
+ };
1600
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1601
+ "update:range": (args_0: [MCalendarCell | null, MCalendarCell | null]) => any;
1602
+ "select-range": (args_0: [MCalendarCell | null, MCalendarCell | null], args_1: MCalendarCell[]) => any;
1603
+ "click-day": (args_0: MCalendarCell, args_1: number) => any;
1604
+ "dblclick-day": (args_0: MCalendarCell, args_1: number) => any;
1605
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
1606
+ /**
1607
+ * 指定日期,默认显示该日期所在月份
1608
+ */
1609
+ date: DateConstructor;
1610
+ /**
1611
+ * 传入的额外日期数据
1612
+ * 组件始终展示一段日期,但业务上有时需要根据返回的一组日期进行渲染,如 [{date:'2000-01-01',xxx:false},{date:'2000-01-02',xxx:true}]
1613
+ */
1614
+ dates: PropType<Obj[]>;
1615
+ /**
1616
+ * 周起始日,默认星期一
1617
+ */
1618
+ startDay: {
1619
+ type: NumberConstructor;
1620
+ default: number;
1621
+ validator: (val: number) => boolean;
1622
+ };
1623
+ /**
1624
+ * 休息日,默认周六周日
1625
+ *
1626
+ * @example [5,6] 休息日变为周五周六
1627
+ */
1628
+ offDay: {
1629
+ type: ArrayConstructor;
1630
+ default: () => number[];
1631
+ };
1632
+ /**
1633
+ * 传入dates里日期值对应的key,默认“date”
1634
+ */
1635
+ dateKey: {
1636
+ type: StringConstructor;
1637
+ default: string;
1638
+ };
1639
+ /**
1640
+ * 单元格标题class
1641
+ */
1642
+ titleClass: FunctionConstructor;
1643
+ /**
1644
+ * 每一天单元格class
1645
+ */
1646
+ dateClass: FunctionConstructor;
1647
+ /**
1648
+ * 加载状态
1649
+ */
1650
+ loading: BooleanConstructor;
1651
+ /**
1652
+ * 单元格日期[格式](https://day.js.org/docs/en/display/format),默认 YYYY-MM-DD
1653
+ */
1654
+ textFormat: {
1655
+ type: StringConstructor;
1656
+ default: string;
1657
+ };
1658
+ /**
1659
+ * 是否将指定date放在第一行,而不是按传统模式将每月1号放在第一行,此时会限定整个42格为起止范围,故可能不会显示完整的某月上下范围
1660
+ */
1661
+ isOnFirstLine: BooleanConstructor;
1662
+ /**
1663
+ * 是否开启范围选择
1664
+ */
1665
+ hasRange: BooleanConstructor;
1666
+ /**
1667
+ * 非当前有效时间范围内的日期是否可被选入范围
1668
+ */
1669
+ outerInRange: BooleanConstructor;
1670
+ /**
1671
+ * 选择一个范围后,再选择时是否先将已选范围清除,即是否可清除已选范围
1672
+ */
1673
+ clearable: {
1674
+ type: BooleanConstructor;
1675
+ default: boolean;
1676
+ };
1677
+ /**
1678
+ * 已选范围
1679
+ *
1680
+ * @example [{_date: '2020-01-01'}, {_date: new Date('2020-01-10')}]
1681
+ */
1682
+ range: PropType<(Obj & {
1683
+ _date: Date | string | number;
1684
+ })[]>;
1685
+ /**
1686
+ * 周标题内容类型,可选mini、short、long
1687
+ *
1688
+ * @example
1689
+ * weekType=mini 对应显示成 一、二、三。。。
1690
+ * weekType=short对应显示成 周一、周二、周三。。。
1691
+ * weekType=long 对应显示成 星期一、星期二、星期三。。。
1692
+ */
1693
+ weekType: {
1694
+ type: StringConstructor;
1695
+ default: string;
1696
+ };
1697
+ /**
1698
+ * 周一到周日对应的映射,若传入有效对象则以该对象的key显示星期标题
1699
+ *
1700
+ * @example
1701
+ * 周六周日标题会分别显示成 “星期6” 和 “星期天”,忽略对应的翻译文本
1702
+ * :weekMap={0: '星期天', 6: '星期6'} *
1703
+ */
1704
+ weekMap: {
1705
+ type: ObjectConstructor;
1706
+ };
1707
+ }>> & Readonly<{
1708
+ "onUpdate:range"?: ((args_0: [MCalendarCell | null, MCalendarCell | null]) => any) | undefined;
1709
+ "onSelect-range"?: ((args_0: [MCalendarCell | null, MCalendarCell | null], args_1: MCalendarCell[]) => any) | undefined;
1710
+ "onClick-day"?: ((args_0: MCalendarCell, args_1: number) => any) | undefined;
1711
+ "onDblclick-day"?: ((args_0: MCalendarCell, args_1: number) => any) | undefined;
1712
+ }>, {
1713
+ clearable: boolean;
1714
+ loading: boolean;
1715
+ textFormat: string;
1716
+ isOnFirstLine: boolean;
1717
+ hasRange: boolean;
1718
+ outerInRange: boolean;
1719
+ startDay: number;
1720
+ offDay: unknown[];
1721
+ dateKey: string;
1722
+ weekType: string;
1723
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
1724
+ cell?(_: {
1725
+ day: MCalendarCell;
1726
+ index: number;
1727
+ }): any;
1728
+ }>;
1729
+
1730
+ export declare interface MCalendarCell {
1731
+ _date: Date;
1732
+ _text: string;
1733
+ _isOuter: boolean;
1734
+ _isToday: boolean;
1735
+ _inRange: boolean | void;
1736
+ [x: string]: any;
1737
+ }
1738
+
1739
+ export declare const ModalFooter: __VLS_WithTemplateSlots_8<DefineComponent<ExtractPropTypes< {
1740
+ modelValue: BooleanConstructor;
1741
+ /**
1742
+ * 确定按钮文本
1743
+ */
1744
+ okText: {
1745
+ type: StringConstructor;
1746
+ default(): string;
1747
+ };
1748
+ /**
1749
+ * 取消按钮文本
1750
+ */
1751
+ cancelText: {
1752
+ type: StringConstructor;
1753
+ default(): string;
1754
+ };
1755
+ /**
1756
+ * 传递给确定按钮的props
1757
+ */
1758
+ ok: ObjectConstructor;
1759
+ /**
1760
+ * 确定按钮加载状态
1761
+ */
1762
+ okLoading: BooleanConstructor;
1763
+ /**
1764
+ * 确定按钮禁用状态
1765
+ */
1766
+ okDisabled: BooleanConstructor;
1767
+ /**
1768
+ * 传递给取消按钮的props
1769
+ */
1770
+ cancel: ObjectConstructor;
1771
+ /**
1772
+ * 取消按钮加载状态
1773
+ */
1774
+ cancelLoading: BooleanConstructor;
1775
+ /**
1776
+ * 取消按钮禁用状态
1777
+ */
1778
+ cancelDisabled: BooleanConstructor;
1779
+ /**
1780
+ * 取消按钮type,默认 text
1781
+ */
1782
+ cancelType: {
1783
+ type: StringConstructor;
1784
+ default: string;
1785
+ };
1786
+ /**
1787
+ * 是否把取消按钮放到确定按钮右边
1788
+ */
1789
+ rightCancel: BooleanConstructor;
1790
+ /**
1791
+ * 是否显示确定按钮
1792
+ */
1793
+ hasOk: {
1794
+ type: BooleanConstructor;
1795
+ default: boolean;
1796
+ };
1797
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1798
+ "update:modelValue": (val: boolean) => any;
1799
+ ok: () => any;
1800
+ cancel: () => any;
1801
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
1802
+ modelValue: BooleanConstructor;
1803
+ /**
1804
+ * 确定按钮文本
1805
+ */
1806
+ okText: {
1807
+ type: StringConstructor;
1808
+ default(): string;
1809
+ };
1810
+ /**
1811
+ * 取消按钮文本
1812
+ */
1813
+ cancelText: {
1814
+ type: StringConstructor;
1815
+ default(): string;
1816
+ };
1817
+ /**
1818
+ * 传递给确定按钮的props
1819
+ */
1820
+ ok: ObjectConstructor;
1821
+ /**
1822
+ * 确定按钮加载状态
1823
+ */
1824
+ okLoading: BooleanConstructor;
1825
+ /**
1826
+ * 确定按钮禁用状态
1827
+ */
1828
+ okDisabled: BooleanConstructor;
1829
+ /**
1830
+ * 传递给取消按钮的props
1831
+ */
1832
+ cancel: ObjectConstructor;
1833
+ /**
1834
+ * 取消按钮加载状态
1835
+ */
1836
+ cancelLoading: BooleanConstructor;
1837
+ /**
1838
+ * 取消按钮禁用状态
1839
+ */
1840
+ cancelDisabled: BooleanConstructor;
1841
+ /**
1842
+ * 取消按钮type,默认 text
1843
+ */
1844
+ cancelType: {
1845
+ type: StringConstructor;
1846
+ default: string;
1847
+ };
1848
+ /**
1849
+ * 是否把取消按钮放到确定按钮右边
1850
+ */
1851
+ rightCancel: BooleanConstructor;
1852
+ /**
1853
+ * 是否显示确定按钮
1854
+ */
1855
+ hasOk: {
1856
+ type: BooleanConstructor;
1857
+ default: boolean;
1858
+ };
1859
+ }>> & Readonly<{
1860
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
1861
+ onOk?: (() => any) | undefined;
1862
+ onCancel?: (() => any) | undefined;
1863
+ }>, {
1864
+ modelValue: boolean;
1865
+ okLoading: boolean;
1866
+ okDisabled: boolean;
1867
+ cancelLoading: boolean;
1868
+ cancelDisabled: boolean;
1869
+ rightCancel: boolean;
1870
+ okText: string;
1871
+ cancelText: string;
1872
+ cancelType: string;
1873
+ hasOk: boolean;
1874
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
1875
+ other?(_: {}): any;
1876
+ action?(_: {}): any;
1877
+ }>;
1878
+
1879
+ declare interface Obj {
1880
+ [x: string]: any;
1881
+ }
1882
+
1883
+ export declare const PageTable: __VLS_WithTemplateSlots_9<DefineComponent<ExtractPropTypes< {
1884
+ columns: {
1885
+ type: PropType<Obj[]>;
1886
+ default: () => never[];
1887
+ };
1888
+ modelValue: {
1889
+ type: PropType<Obj[]>;
1890
+ default: () => never[];
1891
+ };
1892
+ /**
1893
+ * 远程请求方法
1894
+ *
1895
+ * @example
1896
+ * const getResult = () => axios.get('').then(res => res.data)
1897
+ * <PageTable :method="getResult" />
1898
+ */
1899
+ method: FunctionConstructor;
1900
+ /**
1901
+ * 调用 method 时传入的参数或者返回参数的函数
1902
+ */
1903
+ param: (ObjectConstructor | FunctionConstructor)[];
1904
+ /**
1905
+ * 返回值中对应的列表数据key
1906
+ *
1907
+ * @example 如返回结构是 { result: [1,2,3], total: 100 },则dataKey='result'
1908
+ */
1909
+ dataKey: StringConstructor;
1910
+ /**
1911
+ * 返回值中对应的分页总条数key
1912
+ *
1913
+ * @example 如返回结构是 { result: [1,2,3], total: 100 },则totalKey='total'
1914
+ */
1915
+ totalKey: StringConstructor;
1916
+ /**
1917
+ * 请求时传递的分页参数中 first 对应 key
1918
+ * 后端分页一般要求指定起始数据索引或者“页码”,以及获取多少条数据
1919
+ *
1920
+ * @example
1921
+ * 如后端接口给定的分页参数是 firstIndex 对应起始索引
1922
+ * pageKey='firstIndex'
1923
+ */
1924
+ pageKey: StringConstructor;
1925
+ /**
1926
+ * 请求时传递的分页参数中 size 对应 key
1927
+ * 后端分页一般要求指定起始数据索引或者“页码”,以及获取多少条数据
1928
+ *
1929
+ * @example
1930
+ * 如后端接口给定的分页参数是 amount 对应需要获取的条数
1931
+ * sizeKey='amount'
1932
+ */
1933
+ sizeKey: StringConstructor;
1934
+ /**
1935
+ * 对象形式传递分页参数映射
1936
+ */
1937
+ pageMap: {
1938
+ type: ObjectConstructor;
1939
+ default(props: Obj): {
1940
+ first: any;
1941
+ pageSize: any;
1942
+ };
1943
+ };
1944
+ border: BooleanConstructor;
1945
+ /**
1946
+ * 处理接口返回列表数据的函数
1947
+ */
1948
+ process: FunctionConstructor;
1949
+ /**
1950
+ * 自动设置Table的maxHeight
1951
+ */
1952
+ autoMaxHeight: {
1953
+ type: BooleanConstructor;
1954
+ default: boolean;
1955
+ };
1956
+ /**
1957
+ * 是否本地分页
1958
+ */
1959
+ isLocal: BooleanConstructor;
1960
+ /**
1961
+ * 分页条数选项
1962
+ */
1963
+ pageSizeOpts: {
1964
+ type: PropType<number[]>;
1965
+ default: () => number[];
1966
+ };
1967
+ /**
1968
+ * 查询失败时不清除之前获取到的结果
1969
+ */
1970
+ autoRemain: BooleanConstructor;
1971
+ /**
1972
+ * 计算Table的maxHeight时,Table距离视口底部的距离
1973
+ * @default 80
1974
+ */
1975
+ bottomDis: {
1976
+ type: (NumberConstructor | StringConstructor)[];
1977
+ default: number;
1978
+ };
1979
+ /**
1980
+ * Table的maxHeight
1981
+ */
1982
+ maxHeight: (NumberConstructor | StringConstructor)[];
1983
+ /**
1984
+ * 勾选项
1985
+ */
1986
+ selection: ArrayConstructor;
1987
+ /**
1988
+ * 初始分页条数
1989
+ */
1990
+ initSize: NumberConstructor;
1991
+ /**
1992
+ * 远程查询时额外检测的方法
1993
+ */
1994
+ check: FunctionConstructor;
1995
+ /**
1996
+ * 查询时是否用页码而不是用当页第一条的索引
1997
+ */
1998
+ usePageNum: BooleanConstructor;
1999
+ /**
2000
+ * 是否点击行即更改Checkbox状态
2001
+ */
2002
+ clickToCheck: BooleanConstructor;
2003
+ /**
2004
+ * 获取的勾选项是否去除_checked等内部属性
2005
+ */
2006
+ pure: BooleanConstructor;
2007
+ /**
2008
+ * head title
2009
+ */
2010
+ title: {
2011
+ type: StringConstructor;
2012
+ default(): string;
2013
+ };
2014
+ /**
2015
+ * 是否显示header
2016
+ */
2017
+ showHeader: BooleanConstructor;
2018
+ transfer: {
2019
+ type: BooleanConstructor;
2020
+ default: boolean;
2021
+ };
2022
+ /**
2023
+ * 最大化时是否全屏
2024
+ */
2025
+ fullscreen: BooleanConstructor;
2026
+ /**
2027
+ * 传至ToggleColumn组件的storeAt
2028
+ */
2029
+ storeAt: StringConstructor;
2030
+ loading: {
2031
+ type: PropType<boolean>;
2032
+ };
2033
+ }>, {
2034
+ search: (stay?: boolean) => void;
2035
+ setMaxHeight: () => void;
2036
+ table: {
2037
+ data: Obj[];
2038
+ maxHeight: number | string | void;
2039
+ selectType: {
2040
+ align: string;
2041
+ className: string;
2042
+ renderHeader: (h: any) => false | JSX.Element;
2043
+ render: (h: any, { row, index }: Obj) => any;
2044
+ };
2045
+ };
2046
+ getPage: () => {
2047
+ curr: number;
2048
+ total: number;
2049
+ };
2050
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2051
+ select: (val: Obj, args_1: boolean) => any;
2052
+ "update:modelValue": (val: Obj[]) => any;
2053
+ load: (res: any) => any;
2054
+ "update:loading": (value: boolean | undefined) => any;
2055
+ "update:selection": (val: Obj[]) => any;
2056
+ "select-all": (val: Obj[], args_1: boolean) => any;
2057
+ "select-rows": (val: Obj[]) => any;
2058
+ reload: () => any;
2059
+ "change-col": (val: Obj | Obj[]) => any;
2060
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
2061
+ columns: {
2062
+ type: PropType<Obj[]>;
2063
+ default: () => never[];
2064
+ };
2065
+ modelValue: {
2066
+ type: PropType<Obj[]>;
2067
+ default: () => never[];
2068
+ };
2069
+ /**
2070
+ * 远程请求方法
2071
+ *
2072
+ * @example
2073
+ * const getResult = () => axios.get('').then(res => res.data)
2074
+ * <PageTable :method="getResult" />
2075
+ */
2076
+ method: FunctionConstructor;
2077
+ /**
2078
+ * 调用 method 时传入的参数或者返回参数的函数
2079
+ */
2080
+ param: (ObjectConstructor | FunctionConstructor)[];
2081
+ /**
2082
+ * 返回值中对应的列表数据key
2083
+ *
2084
+ * @example 如返回结构是 { result: [1,2,3], total: 100 },则dataKey='result'
2085
+ */
2086
+ dataKey: StringConstructor;
2087
+ /**
2088
+ * 返回值中对应的分页总条数key
2089
+ *
2090
+ * @example 如返回结构是 { result: [1,2,3], total: 100 },则totalKey='total'
2091
+ */
2092
+ totalKey: StringConstructor;
2093
+ /**
2094
+ * 请求时传递的分页参数中 first 对应 key
2095
+ * 后端分页一般要求指定起始数据索引或者“页码”,以及获取多少条数据
2096
+ *
2097
+ * @example
2098
+ * 如后端接口给定的分页参数是 firstIndex 对应起始索引
2099
+ * pageKey='firstIndex'
2100
+ */
2101
+ pageKey: StringConstructor;
2102
+ /**
2103
+ * 请求时传递的分页参数中 size 对应 key
2104
+ * 后端分页一般要求指定起始数据索引或者“页码”,以及获取多少条数据
2105
+ *
2106
+ * @example
2107
+ * 如后端接口给定的分页参数是 amount 对应需要获取的条数
2108
+ * sizeKey='amount'
2109
+ */
2110
+ sizeKey: StringConstructor;
2111
+ /**
2112
+ * 对象形式传递分页参数映射
2113
+ */
2114
+ pageMap: {
2115
+ type: ObjectConstructor;
2116
+ default(props: Obj): {
2117
+ first: any;
2118
+ pageSize: any;
2119
+ };
2120
+ };
2121
+ border: BooleanConstructor;
2122
+ /**
2123
+ * 处理接口返回列表数据的函数
2124
+ */
2125
+ process: FunctionConstructor;
2126
+ /**
2127
+ * 自动设置Table的maxHeight
2128
+ */
2129
+ autoMaxHeight: {
2130
+ type: BooleanConstructor;
2131
+ default: boolean;
2132
+ };
2133
+ /**
2134
+ * 是否本地分页
2135
+ */
2136
+ isLocal: BooleanConstructor;
2137
+ /**
2138
+ * 分页条数选项
2139
+ */
2140
+ pageSizeOpts: {
2141
+ type: PropType<number[]>;
2142
+ default: () => number[];
2143
+ };
2144
+ /**
2145
+ * 查询失败时不清除之前获取到的结果
2146
+ */
2147
+ autoRemain: BooleanConstructor;
2148
+ /**
2149
+ * 计算Table的maxHeight时,Table距离视口底部的距离
2150
+ * @default 80
2151
+ */
2152
+ bottomDis: {
2153
+ type: (NumberConstructor | StringConstructor)[];
2154
+ default: number;
2155
+ };
2156
+ /**
2157
+ * Table的maxHeight
2158
+ */
2159
+ maxHeight: (NumberConstructor | StringConstructor)[];
2160
+ /**
2161
+ * 勾选项
2162
+ */
2163
+ selection: ArrayConstructor;
2164
+ /**
2165
+ * 初始分页条数
2166
+ */
2167
+ initSize: NumberConstructor;
2168
+ /**
2169
+ * 远程查询时额外检测的方法
2170
+ */
2171
+ check: FunctionConstructor;
2172
+ /**
2173
+ * 查询时是否用页码而不是用当页第一条的索引
2174
+ */
2175
+ usePageNum: BooleanConstructor;
2176
+ /**
2177
+ * 是否点击行即更改Checkbox状态
2178
+ */
2179
+ clickToCheck: BooleanConstructor;
2180
+ /**
2181
+ * 获取的勾选项是否去除_checked等内部属性
2182
+ */
2183
+ pure: BooleanConstructor;
2184
+ /**
2185
+ * head title
2186
+ */
2187
+ title: {
2188
+ type: StringConstructor;
2189
+ default(): string;
2190
+ };
2191
+ /**
2192
+ * 是否显示header
2193
+ */
2194
+ showHeader: BooleanConstructor;
2195
+ transfer: {
2196
+ type: BooleanConstructor;
2197
+ default: boolean;
2198
+ };
2199
+ /**
2200
+ * 最大化时是否全屏
2201
+ */
2202
+ fullscreen: BooleanConstructor;
2203
+ /**
2204
+ * 传至ToggleColumn组件的storeAt
2205
+ */
2206
+ storeAt: StringConstructor;
2207
+ loading: {
2208
+ type: PropType<boolean>;
2209
+ };
2210
+ }>> & Readonly<{
2211
+ onSelect?: ((val: Obj, args_1: boolean) => any) | undefined;
2212
+ "onUpdate:modelValue"?: ((val: Obj[]) => any) | undefined;
2213
+ onLoad?: ((res: any) => any) | undefined;
2214
+ "onUpdate:loading"?: ((value: boolean | undefined) => any) | undefined;
2215
+ "onUpdate:selection"?: ((val: Obj[]) => any) | undefined;
2216
+ "onSelect-all"?: ((val: Obj[], args_1: boolean) => any) | undefined;
2217
+ "onSelect-rows"?: ((val: Obj[]) => any) | undefined;
2218
+ onReload?: (() => any) | undefined;
2219
+ "onChange-col"?: ((val: Obj | Obj[]) => any) | undefined;
2220
+ }>, {
2221
+ title: string;
2222
+ transfer: boolean;
2223
+ modelValue: Obj[];
2224
+ border: boolean;
2225
+ columns: Obj[];
2226
+ isLocal: boolean;
2227
+ autoRemain: boolean;
2228
+ usePageNum: boolean;
2229
+ clickToCheck: boolean;
2230
+ pure: boolean;
2231
+ showHeader: boolean;
2232
+ fullscreen: boolean;
2233
+ pageMap: Record<string, any>;
2234
+ autoMaxHeight: boolean;
2235
+ pageSizeOpts: number[];
2236
+ bottomDis: string | number;
2237
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
2238
+ elRef: HTMLDivElement;
2239
+ tableRef: unknown;
2240
+ }, HTMLDivElement>, Partial<Record<any, (_: any) => any>> & {
2241
+ title?(_: {}): any;
2242
+ headerAction?(_: {}): any;
2243
+ header?(_: {}): any;
2244
+ footer?(_: {}): any;
2245
+ }>;
2246
+
2247
+ export declare const RemoteSelect: __VLS_WithTemplateSlots_5<DefineComponent<ExtractPropTypes< {
2248
+ modelValue: PropType<SelectValue>;
2249
+ list: PropType<Obj[]>;
2250
+ multiple: BooleanConstructor;
2251
+ /**
2252
+ * 是否将选项的value作为Option的key,默认以v-for的index作为key
2253
+ */
2254
+ valueAsKey: BooleanConstructor;
2255
+ /**
2256
+ * 选项对应value的key
2257
+ */
2258
+ valueKey: {
2259
+ type: StringConstructor;
2260
+ default: string;
2261
+ };
2262
+ /**
2263
+ * 选项对应文本的key
2264
+ */
2265
+ labelKey: {
2266
+ type: StringConstructor;
2267
+ default: string;
2268
+ };
2269
+ keyMap: {
2270
+ type: ObjectConstructor;
2271
+ default(props: Obj): {
2272
+ value: any;
2273
+ label: any;
2274
+ };
2275
+ };
2276
+ method: FunctionConstructor;
2277
+ refresh: FunctionConstructor;
2278
+ process: FunctionConstructor;
2279
+ param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
2280
+ chosen: (ArrayConstructor | ObjectConstructor)[];
2281
+ autoGet: BooleanConstructor;
2282
+ formatLabel: {
2283
+ type: FunctionConstructor;
2284
+ };
2285
+ /**
2286
+ * 点开再请求时,该函数返回true表示可发送请求
2287
+ */
2288
+ check: {
2289
+ type: FunctionConstructor;
2290
+ default: () => boolean;
2291
+ };
2292
+ textMode: BooleanConstructor;
2293
+ textFormat: FunctionConstructor;
2294
+ /**
2295
+ * 关联值,该值变化后会清空绑定值与选项
2296
+ *
2297
+ * @example 当 some 变化后,<RemoteSelect>的值与选项都会清空
2298
+ * <Select v-model="some" ><Option value="1">1</Option></Select>
2299
+ * <RemoteSelect :parentCode="some" />
2300
+ */
2301
+ parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
2302
+ optionDisabled: FunctionConstructor;
2303
+ optionTag: FunctionConstructor;
2304
+ getSelected: {
2305
+ type: FunctionConstructor;
2306
+ default({ multiple, keyMap, list, value }: {
2307
+ multiple: boolean;
2308
+ keyMap: {
2309
+ value: string;
2310
+ };
2311
+ list: Obj[];
2312
+ value: SelectValue;
2313
+ }): Obj | Obj[];
2314
+ };
2315
+ /**
2316
+ * 启用则根据绑定的list判断是否需要在展开时发送请求
2317
+ */
2318
+ cache: BooleanConstructor;
2319
+ loader: FunctionConstructor;
2320
+ /**
2321
+ * 开启后则展开时仅当parentCode有效才会发送请求
2322
+ */
2323
+ strict: BooleanConstructor;
2324
+ all: {
2325
+ type: BooleanConstructor;
2326
+ default: boolean;
2327
+ };
2328
+ }>, {
2329
+ code: Ref<SelectValue, SelectValue>;
2330
+ changeCode: (val: SelectValue) => void;
2331
+ loaded: Ref<boolean, boolean>;
2332
+ codes: Ref<Obj[], Obj[]>;
2333
+ search: () => Promise<void>;
2334
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2335
+ "update:modelValue": (val: SelectValue) => any;
2336
+ "update:chosen": (item: Obj) => any;
2337
+ "update:list": (list: Obj[]) => any;
2338
+ "update:refresh": (handle: () => Promise<void>) => any;
2339
+ load: (val: any) => any;
2340
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
2341
+ modelValue: PropType<SelectValue>;
2342
+ list: PropType<Obj[]>;
2343
+ multiple: BooleanConstructor;
2344
+ /**
2345
+ * 是否将选项的value作为Option的key,默认以v-for的index作为key
2346
+ */
2347
+ valueAsKey: BooleanConstructor;
2348
+ /**
2349
+ * 选项对应value的key
2350
+ */
2351
+ valueKey: {
2352
+ type: StringConstructor;
2353
+ default: string;
2354
+ };
2355
+ /**
2356
+ * 选项对应文本的key
2357
+ */
2358
+ labelKey: {
2359
+ type: StringConstructor;
2360
+ default: string;
2361
+ };
2362
+ keyMap: {
2363
+ type: ObjectConstructor;
2364
+ default(props: Obj): {
2365
+ value: any;
2366
+ label: any;
2367
+ };
2368
+ };
2369
+ method: FunctionConstructor;
2370
+ refresh: FunctionConstructor;
2371
+ process: FunctionConstructor;
2372
+ param: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
2373
+ chosen: (ArrayConstructor | ObjectConstructor)[];
2374
+ autoGet: BooleanConstructor;
2375
+ formatLabel: {
2376
+ type: FunctionConstructor;
2377
+ };
2378
+ /**
2379
+ * 点开再请求时,该函数返回true表示可发送请求
2380
+ */
2381
+ check: {
2382
+ type: FunctionConstructor;
2383
+ default: () => boolean;
2384
+ };
2385
+ textMode: BooleanConstructor;
2386
+ textFormat: FunctionConstructor;
2387
+ /**
2388
+ * 关联值,该值变化后会清空绑定值与选项
2389
+ *
2390
+ * @example 当 some 变化后,<RemoteSelect>的值与选项都会清空
2391
+ * <Select v-model="some" ><Option value="1">1</Option></Select>
2392
+ * <RemoteSelect :parentCode="some" />
2393
+ */
2394
+ parentCode: (NumberConstructor | ArrayConstructor | StringConstructor)[];
2395
+ optionDisabled: FunctionConstructor;
2396
+ optionTag: FunctionConstructor;
2397
+ getSelected: {
2398
+ type: FunctionConstructor;
2399
+ default({ multiple, keyMap, list, value }: {
2400
+ multiple: boolean;
2401
+ keyMap: {
2402
+ value: string;
2403
+ };
2404
+ list: Obj[];
2405
+ value: SelectValue;
2406
+ }): Obj | Obj[];
2407
+ };
2408
+ /**
2409
+ * 启用则根据绑定的list判断是否需要在展开时发送请求
2410
+ */
2411
+ cache: BooleanConstructor;
2412
+ loader: FunctionConstructor;
2413
+ /**
2414
+ * 开启后则展开时仅当parentCode有效才会发送请求
2415
+ */
2416
+ strict: BooleanConstructor;
2417
+ all: {
2418
+ type: BooleanConstructor;
2419
+ default: boolean;
2420
+ };
2421
+ }>> & Readonly<{
2422
+ "onUpdate:modelValue"?: ((val: SelectValue) => any) | undefined;
2423
+ "onUpdate:chosen"?: ((item: Obj) => any) | undefined;
2424
+ "onUpdate:list"?: ((list: Obj[]) => any) | undefined;
2425
+ "onUpdate:refresh"?: ((handle: () => Promise<void>) => any) | undefined;
2426
+ onLoad?: ((val: any) => any) | undefined;
2427
+ }>, {
2428
+ all: boolean;
2429
+ multiple: boolean;
2430
+ valueKey: string;
2431
+ labelKey: string;
2432
+ keyMap: Record<string, any>;
2433
+ valueAsKey: boolean;
2434
+ autoGet: boolean;
2435
+ textMode: boolean;
2436
+ cache: boolean;
2437
+ strict: boolean;
2438
+ check: Function;
2439
+ getSelected: Function;
2440
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
2441
+ default(_: {
2442
+ item: Obj;
2443
+ index: number;
2444
+ }): any;
2445
+ dropdown(_: {
2446
+ list: Obj[];
2447
+ }): any;
2448
+ text(_: {
2449
+ text: string;
2450
+ }): any;
2451
+ }> & {
2452
+ default(_: {
2453
+ item: Obj;
2454
+ index: number;
2455
+ }): any;
2456
+ dropdown(_: {
2457
+ list: Obj[];
2458
+ }): any;
2459
+ text(_: {
2460
+ text: string;
2461
+ }): any;
2462
+ }>;
2463
+
2464
+ export declare type SelectValue = string | number | (string | number)[];
2465
+
2466
+ export declare type SwitchValue = string | number | boolean;
2467
+
2468
+ export declare const ToggleColumn: __VLS_WithTemplateSlots_10<DefineComponent<ExtractPropTypes< {
2469
+ modelValue: {
2470
+ type: ArrayConstructor;
2471
+ };
2472
+ title: {
2473
+ type: StringConstructor;
2474
+ default(): string;
2475
+ };
2476
+ /**
2477
+ * 仅显示图标
2478
+ */
2479
+ icon: StringConstructor;
2480
+ /**
2481
+ * 绑定columns对应的唯一标识,一般在v-for中绑定了固定某列且列配置中带有 _visible:false 时用到
2482
+ */
2483
+ cacheId: (NumberConstructor | StringConstructor)[];
2484
+ /**
2485
+ * 是否显示全选框
2486
+ */
2487
+ all: {
2488
+ type: BooleanConstructor;
2489
+ default: boolean;
2490
+ };
2491
+ transfer: BooleanConstructor;
2492
+ /**
2493
+ * 将状态缓存至localStorage中的key,支持a.b形式
2494
+ *
2495
+ * @example
2496
+ * // 组件会尝试将显示状态读写至 localStorage.app.main.cols
2497
+ * storeAt='app.main.cols'
2498
+ */
2499
+ storeAt: StringConstructor;
2500
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2501
+ "update:modelValue": (val: Obj[]) => any;
2502
+ change: (val: Obj | Obj[]) => any;
2503
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
2504
+ modelValue: {
2505
+ type: ArrayConstructor;
2506
+ };
2507
+ title: {
2508
+ type: StringConstructor;
2509
+ default(): string;
2510
+ };
2511
+ /**
2512
+ * 仅显示图标
2513
+ */
2514
+ icon: StringConstructor;
2515
+ /**
2516
+ * 绑定columns对应的唯一标识,一般在v-for中绑定了固定某列且列配置中带有 _visible:false 时用到
2517
+ */
2518
+ cacheId: (NumberConstructor | StringConstructor)[];
2519
+ /**
2520
+ * 是否显示全选框
2521
+ */
2522
+ all: {
2523
+ type: BooleanConstructor;
2524
+ default: boolean;
2525
+ };
2526
+ transfer: BooleanConstructor;
2527
+ /**
2528
+ * 将状态缓存至localStorage中的key,支持a.b形式
2529
+ *
2530
+ * @example
2531
+ * // 组件会尝试将显示状态读写至 localStorage.app.main.cols
2532
+ * storeAt='app.main.cols'
2533
+ */
2534
+ storeAt: StringConstructor;
2535
+ }>> & Readonly<{
2536
+ "onUpdate:modelValue"?: ((val: Obj[]) => any) | undefined;
2537
+ onChange?: ((val: Obj | Obj[]) => any) | undefined;
2538
+ }>, {
2539
+ all: boolean;
2540
+ title: string;
2541
+ transfer: boolean;
2542
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
2543
+ default?(_: {}): any;
2544
+ }>;
2545
+
2546
+ export { }