cc1-form 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,879 @@
1
+ import TForm from '../../utils/TForm';
2
+ import { type CurdConfig, type CurdConfigColumn } from '.';
3
+ import SwitchConfirm from './com/dialog/switchConfirm.vue';
4
+ import FormList from './com/form/list.vue';
5
+ import { type FormInstance, ElButton, ElDatePicker, ElDialog, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElInput, ElOption, ElPagination, ElSelect, ElSwitch, ElTable, ElTableColumn, ElTreeSelect } from 'element-plus';
6
+ declare const EDialog: {
7
+ Insert: any;
8
+ Update: any;
9
+ Remove: any;
10
+ };
11
+ declare const switchConfirmRef: import("vue").Ref<any, any>;
12
+ declare const ruleFormRef: import("vue").Ref<FormInstance | undefined, FormInstance | undefined>;
13
+ declare const isFun: (fun: any, data?: any) => any;
14
+ declare const conf: {
15
+ search: {
16
+ column: {
17
+ list: {
18
+ key: string;
19
+ label: string;
20
+ value: any;
21
+ disabled?: {
22
+ create?: boolean | undefined;
23
+ update?: boolean | undefined;
24
+ search?: boolean | undefined;
25
+ } | undefined;
26
+ options?: {
27
+ [x: string]: any;
28
+ input?: Record<string, any> | undefined;
29
+ switch?: {
30
+ activeValue: any;
31
+ activeLabel: string;
32
+ inactiveValue: any;
33
+ inactiveLabel: string;
34
+ tableBeforeChange: (key: string, data: any) => any;
35
+ } | undefined;
36
+ select?: Record<string, any> | undefined;
37
+ treeSelect?: Record<string, any> | undefined;
38
+ datetime?: Record<string, any> | undefined;
39
+ list?: {
40
+ label?: string | undefined;
41
+ value?: string | undefined;
42
+ itemFields?: ({
43
+ [x: string]: string;
44
+ label: string;
45
+ value: string;
46
+ } | undefined)[] | undefined;
47
+ inputWidth?: string | undefined;
48
+ inputClass?: string | undefined;
49
+ } | undefined;
50
+ } | undefined;
51
+ form?: {
52
+ labelWidth?: string | undefined;
53
+ width?: string | undefined;
54
+ span?: number | undefined;
55
+ } | undefined;
56
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
57
+ table?: {
58
+ table?: boolean | undefined;
59
+ minWidth?: string | undefined;
60
+ width?: string | undefined;
61
+ fixed?: "left" | "right" | undefined;
62
+ align?: "left" | "right" | "center" | undefined;
63
+ showOverflowTooltip?: boolean | undefined;
64
+ } | undefined;
65
+ rules?: any[] | undefined;
66
+ show?: {
67
+ table?: boolean | undefined;
68
+ search?: boolean | ((data: any) => boolean) | undefined;
69
+ form?: boolean | ((data: any) => boolean) | undefined;
70
+ } | undefined;
71
+ sort?: {
72
+ search?: number | undefined;
73
+ table?: number | undefined;
74
+ } | undefined;
75
+ }[];
76
+ };
77
+ form: Record<string, any>;
78
+ formDefault: Record<string, any>;
79
+ getFormData: () => any;
80
+ reset: () => void;
81
+ submit: () => void;
82
+ };
83
+ page: {
84
+ size: number;
85
+ sizeList: number[];
86
+ num: number;
87
+ total: number;
88
+ layout: string;
89
+ };
90
+ table: {
91
+ loading: boolean;
92
+ data: any[];
93
+ expand: {
94
+ isExpand: boolean;
95
+ rowKeys: any[];
96
+ change: (row: any, isExpand: boolean) => void;
97
+ all: () => void;
98
+ };
99
+ column: {
100
+ list: {
101
+ key: string;
102
+ label: string;
103
+ value: any;
104
+ disabled?: {
105
+ create?: boolean | undefined;
106
+ update?: boolean | undefined;
107
+ search?: boolean | undefined;
108
+ } | undefined;
109
+ options?: {
110
+ [x: string]: any;
111
+ input?: Record<string, any> | undefined;
112
+ switch?: {
113
+ activeValue: any;
114
+ activeLabel: string;
115
+ inactiveValue: any;
116
+ inactiveLabel: string;
117
+ tableBeforeChange: (key: string, data: any) => any;
118
+ } | undefined;
119
+ select?: Record<string, any> | undefined;
120
+ treeSelect?: Record<string, any> | undefined;
121
+ datetime?: Record<string, any> | undefined;
122
+ list?: {
123
+ label?: string | undefined;
124
+ value?: string | undefined;
125
+ itemFields?: ({
126
+ [x: string]: string;
127
+ label: string;
128
+ value: string;
129
+ } | undefined)[] | undefined;
130
+ inputWidth?: string | undefined;
131
+ inputClass?: string | undefined;
132
+ } | undefined;
133
+ } | undefined;
134
+ form?: {
135
+ labelWidth?: string | undefined;
136
+ width?: string | undefined;
137
+ span?: number | undefined;
138
+ } | undefined;
139
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
140
+ table?: {
141
+ table?: boolean | undefined;
142
+ minWidth?: string | undefined;
143
+ width?: string | undefined;
144
+ fixed?: "left" | "right" | undefined;
145
+ align?: "left" | "right" | "center" | undefined;
146
+ showOverflowTooltip?: boolean | undefined;
147
+ } | undefined;
148
+ rules?: any[] | undefined;
149
+ show?: {
150
+ table?: boolean | undefined;
151
+ search?: boolean | ((data: any) => boolean) | undefined;
152
+ form?: boolean | ((data: any) => boolean) | undefined;
153
+ } | undefined;
154
+ sort?: {
155
+ search?: number | undefined;
156
+ table?: number | undefined;
157
+ } | undefined;
158
+ }[];
159
+ show: {
160
+ listSource: any[];
161
+ list: any[];
162
+ };
163
+ };
164
+ getList: () => Promise<void>;
165
+ selection: {
166
+ list: any[];
167
+ change: (selection: any[]) => void;
168
+ };
169
+ exportFun: any;
170
+ export: (command: any) => void;
171
+ };
172
+ update: {
173
+ title: string;
174
+ rules: any;
175
+ show: boolean;
176
+ showContent: boolean;
177
+ loading: boolean;
178
+ type: any;
179
+ form: any;
180
+ formDefault: any;
181
+ formColumn: {
182
+ item: {
183
+ key: string;
184
+ label: string;
185
+ value: any;
186
+ disabled?: {
187
+ create?: boolean | undefined;
188
+ update?: boolean | undefined;
189
+ search?: boolean | undefined;
190
+ } | undefined;
191
+ options?: {
192
+ [x: string]: any;
193
+ input?: Record<string, any> | undefined;
194
+ switch?: {
195
+ activeValue: any;
196
+ activeLabel: string;
197
+ inactiveValue: any;
198
+ inactiveLabel: string;
199
+ tableBeforeChange: (key: string, data: any) => any;
200
+ } | undefined;
201
+ select?: Record<string, any> | undefined;
202
+ treeSelect?: Record<string, any> | undefined;
203
+ datetime?: Record<string, any> | undefined;
204
+ list?: {
205
+ label?: string | undefined;
206
+ value?: string | undefined;
207
+ itemFields?: ({
208
+ [x: string]: string;
209
+ label: string;
210
+ value: string;
211
+ } | undefined)[] | undefined;
212
+ inputWidth?: string | undefined;
213
+ inputClass?: string | undefined;
214
+ } | undefined;
215
+ } | undefined;
216
+ form?: {
217
+ labelWidth?: string | undefined;
218
+ width?: string | undefined;
219
+ span?: number | undefined;
220
+ } | undefined;
221
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
222
+ table?: {
223
+ table?: boolean | undefined;
224
+ minWidth?: string | undefined;
225
+ width?: string | undefined;
226
+ fixed?: "left" | "right" | undefined;
227
+ align?: "left" | "right" | "center" | undefined;
228
+ showOverflowTooltip?: boolean | undefined;
229
+ } | undefined;
230
+ rules?: any[] | undefined;
231
+ show?: {
232
+ table?: boolean | undefined;
233
+ search?: boolean | ((data: any) => boolean) | undefined;
234
+ form?: boolean | ((data: any) => boolean) | undefined;
235
+ } | undefined;
236
+ sort?: {
237
+ search?: number | undefined;
238
+ table?: number | undefined;
239
+ } | undefined;
240
+ };
241
+ span: number;
242
+ }[][];
243
+ getDisabled: (item: CurdConfigColumn) => boolean | undefined;
244
+ edit: {
245
+ data: any;
246
+ getApiData: (form: any) => any;
247
+ };
248
+ open: (type: typeof EDialog, item?: any) => void;
249
+ submit: () => void;
250
+ close: () => void;
251
+ };
252
+ remove: {
253
+ title: string;
254
+ show: boolean;
255
+ items: any[];
256
+ loading: boolean;
257
+ close: () => void;
258
+ open: (items: any[]) => void;
259
+ submit: () => void;
260
+ };
261
+ init: () => void;
262
+ initCurdConfig: () => void;
263
+ initColumnOptions: () => void;
264
+ initColumnForm: () => void;
265
+ };
266
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
267
+ declare var __VLS_1: {}, __VLS_7: {
268
+ row: Record<string, any>;
269
+ }, __VLS_14: string, __VLS_15: {
270
+ row: Record<string, any>;
271
+ }, __VLS_41: {
272
+ row: Record<string, any>;
273
+ }, __VLS_63: {
274
+ row: Record<string, any>;
275
+ }, __VLS_117: {}, __VLS_119: {}, __VLS_139: string, __VLS_140: {
276
+ row: any;
277
+ item: {
278
+ key: string;
279
+ label: string;
280
+ value: any;
281
+ disabled?: {
282
+ create?: boolean | undefined;
283
+ update?: boolean | undefined;
284
+ search?: boolean | undefined;
285
+ } | undefined;
286
+ options?: {
287
+ [x: string]: any;
288
+ input?: Record<string, any> | undefined;
289
+ switch?: {
290
+ activeValue: any;
291
+ activeLabel: string;
292
+ inactiveValue: any;
293
+ inactiveLabel: string;
294
+ tableBeforeChange: (key: string, data: any) => any;
295
+ } | undefined;
296
+ select?: Record<string, any> | undefined;
297
+ treeSelect?: Record<string, any> | undefined;
298
+ datetime?: Record<string, any> | undefined;
299
+ list?: {
300
+ label?: string | undefined;
301
+ value?: string | undefined;
302
+ itemFields?: ({
303
+ [x: string]: string;
304
+ label: string;
305
+ value: string;
306
+ } | undefined)[] | undefined;
307
+ inputWidth?: string | undefined;
308
+ inputClass?: string | undefined;
309
+ } | undefined;
310
+ } | undefined;
311
+ form?: {
312
+ labelWidth?: string | undefined;
313
+ width?: string | undefined;
314
+ span?: number | undefined;
315
+ } | undefined;
316
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
317
+ table?: {
318
+ table?: boolean | undefined;
319
+ minWidth?: string | undefined;
320
+ width?: string | undefined;
321
+ fixed?: "left" | "right" | undefined;
322
+ align?: "left" | "right" | "center" | undefined;
323
+ showOverflowTooltip?: boolean | undefined;
324
+ } | undefined;
325
+ rules?: any[] | undefined;
326
+ show?: {
327
+ table?: boolean | undefined;
328
+ search?: boolean | ((data: any) => boolean) | undefined;
329
+ form?: boolean | ((data: any) => boolean) | undefined;
330
+ } | undefined;
331
+ sort?: {
332
+ search?: number | undefined;
333
+ table?: number | undefined;
334
+ } | undefined;
335
+ };
336
+ }, __VLS_150: {
337
+ row: any;
338
+ }, __VLS_176: {
339
+ row: any;
340
+ }, __VLS_187: {}, __VLS_199: {
341
+ row: any;
342
+ }, __VLS_206: string, __VLS_207: {
343
+ row: any;
344
+ item: {
345
+ key: string;
346
+ label: string;
347
+ value: any;
348
+ disabled?: {
349
+ create?: boolean | undefined;
350
+ update?: boolean | undefined;
351
+ search?: boolean | undefined;
352
+ } | undefined;
353
+ options?: {
354
+ [x: string]: any;
355
+ input?: Record<string, any> | undefined;
356
+ switch?: {
357
+ activeValue: any;
358
+ activeLabel: string;
359
+ inactiveValue: any;
360
+ inactiveLabel: string;
361
+ tableBeforeChange: (key: string, data: any) => any;
362
+ } | undefined;
363
+ select?: Record<string, any> | undefined;
364
+ treeSelect?: Record<string, any> | undefined;
365
+ datetime?: Record<string, any> | undefined;
366
+ list?: {
367
+ label?: string | undefined;
368
+ value?: string | undefined;
369
+ itemFields?: ({
370
+ [x: string]: string;
371
+ label: string;
372
+ value: string;
373
+ } | undefined)[] | undefined;
374
+ inputWidth?: string | undefined;
375
+ inputClass?: string | undefined;
376
+ } | undefined;
377
+ } | undefined;
378
+ form?: {
379
+ labelWidth?: string | undefined;
380
+ width?: string | undefined;
381
+ span?: number | undefined;
382
+ } | undefined;
383
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
384
+ table?: {
385
+ table?: boolean | undefined;
386
+ minWidth?: string | undefined;
387
+ width?: string | undefined;
388
+ fixed?: "left" | "right" | undefined;
389
+ align?: "left" | "right" | "center" | undefined;
390
+ showOverflowTooltip?: boolean | undefined;
391
+ } | undefined;
392
+ rules?: any[] | undefined;
393
+ show?: {
394
+ table?: boolean | undefined;
395
+ search?: boolean | ((data: any) => boolean) | undefined;
396
+ form?: boolean | ((data: any) => boolean) | undefined;
397
+ } | undefined;
398
+ sort?: {
399
+ search?: number | undefined;
400
+ table?: number | undefined;
401
+ } | undefined;
402
+ };
403
+ }, __VLS_210: string, __VLS_211: {
404
+ row: any;
405
+ item: {
406
+ key: string;
407
+ label: string;
408
+ value: any;
409
+ disabled?: {
410
+ create?: boolean | undefined;
411
+ update?: boolean | undefined;
412
+ search?: boolean | undefined;
413
+ } | undefined;
414
+ options?: {
415
+ [x: string]: any;
416
+ input?: Record<string, any> | undefined;
417
+ switch?: {
418
+ activeValue: any;
419
+ activeLabel: string;
420
+ inactiveValue: any;
421
+ inactiveLabel: string;
422
+ tableBeforeChange: (key: string, data: any) => any;
423
+ } | undefined;
424
+ select?: Record<string, any> | undefined;
425
+ treeSelect?: Record<string, any> | undefined;
426
+ datetime?: Record<string, any> | undefined;
427
+ list?: {
428
+ label?: string | undefined;
429
+ value?: string | undefined;
430
+ itemFields?: ({
431
+ [x: string]: string;
432
+ label: string;
433
+ value: string;
434
+ } | undefined)[] | undefined;
435
+ inputWidth?: string | undefined;
436
+ inputClass?: string | undefined;
437
+ } | undefined;
438
+ } | undefined;
439
+ form?: {
440
+ labelWidth?: string | undefined;
441
+ width?: string | undefined;
442
+ span?: number | undefined;
443
+ } | undefined;
444
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
445
+ table?: {
446
+ table?: boolean | undefined;
447
+ minWidth?: string | undefined;
448
+ width?: string | undefined;
449
+ fixed?: "left" | "right" | undefined;
450
+ align?: "left" | "right" | "center" | undefined;
451
+ showOverflowTooltip?: boolean | undefined;
452
+ } | undefined;
453
+ rules?: any[] | undefined;
454
+ show?: {
455
+ table?: boolean | undefined;
456
+ search?: boolean | ((data: any) => boolean) | undefined;
457
+ form?: boolean | ((data: any) => boolean) | undefined;
458
+ } | undefined;
459
+ sort?: {
460
+ search?: number | undefined;
461
+ table?: number | undefined;
462
+ } | undefined;
463
+ };
464
+ }, __VLS_245: string, __VLS_246: {
465
+ row: any;
466
+ item: {
467
+ key: string;
468
+ label: string;
469
+ value: any;
470
+ disabled?: {
471
+ create?: boolean | undefined;
472
+ update?: boolean | undefined;
473
+ search?: boolean | undefined;
474
+ } | undefined;
475
+ options?: {
476
+ [x: string]: any;
477
+ input?: Record<string, any> | undefined;
478
+ switch?: {
479
+ activeValue: any;
480
+ activeLabel: string;
481
+ inactiveValue: any;
482
+ inactiveLabel: string;
483
+ tableBeforeChange: (key: string, data: any) => any;
484
+ } | undefined;
485
+ select?: Record<string, any> | undefined;
486
+ treeSelect?: Record<string, any> | undefined;
487
+ datetime?: Record<string, any> | undefined;
488
+ list?: {
489
+ label?: string | undefined;
490
+ value?: string | undefined;
491
+ itemFields?: ({
492
+ [x: string]: string;
493
+ label: string;
494
+ value: string;
495
+ } | undefined)[] | undefined;
496
+ inputWidth?: string | undefined;
497
+ inputClass?: string | undefined;
498
+ } | undefined;
499
+ } | undefined;
500
+ form?: {
501
+ labelWidth?: string | undefined;
502
+ width?: string | undefined;
503
+ span?: number | undefined;
504
+ } | undefined;
505
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
506
+ table?: {
507
+ table?: boolean | undefined;
508
+ minWidth?: string | undefined;
509
+ width?: string | undefined;
510
+ fixed?: "left" | "right" | undefined;
511
+ align?: "left" | "right" | "center" | undefined;
512
+ showOverflowTooltip?: boolean | undefined;
513
+ } | undefined;
514
+ rules?: any[] | undefined;
515
+ show?: {
516
+ table?: boolean | undefined;
517
+ search?: boolean | ((data: any) => boolean) | undefined;
518
+ form?: boolean | ((data: any) => boolean) | undefined;
519
+ } | undefined;
520
+ sort?: {
521
+ search?: number | undefined;
522
+ table?: number | undefined;
523
+ } | undefined;
524
+ };
525
+ }, __VLS_248: {
526
+ row: any;
527
+ };
528
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
529
+ [K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
530
+ } & {
531
+ [K in NonNullable<typeof __VLS_139>]?: (props: typeof __VLS_140) => any;
532
+ } & {
533
+ [K in NonNullable<typeof __VLS_206>]?: (props: typeof __VLS_207) => any;
534
+ } & {
535
+ [K in NonNullable<typeof __VLS_210>]?: (props: typeof __VLS_211) => any;
536
+ } & {
537
+ [K in NonNullable<typeof __VLS_245>]?: (props: typeof __VLS_246) => any;
538
+ } & {
539
+ 'box-left'?: (props: typeof __VLS_1) => any;
540
+ } & {
541
+ 'search-start'?: (props: typeof __VLS_7) => any;
542
+ } & {
543
+ 'search-center'?: (props: typeof __VLS_41) => any;
544
+ } & {
545
+ 'search-end'?: (props: typeof __VLS_63) => any;
546
+ } & {
547
+ 'tools-left'?: (props: typeof __VLS_117) => any;
548
+ } & {
549
+ 'tools-right'?: (props: typeof __VLS_119) => any;
550
+ } & {
551
+ 'table-op-left'?: (props: typeof __VLS_150) => any;
552
+ } & {
553
+ 'table-op-right'?: (props: typeof __VLS_176) => any;
554
+ } & {
555
+ 'box-right'?: (props: typeof __VLS_187) => any;
556
+ } & {
557
+ 'form-start'?: (props: typeof __VLS_199) => any;
558
+ } & {
559
+ 'form-end'?: (props: typeof __VLS_248) => any;
560
+ }>;
561
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
562
+ /**
563
+ * 配置
564
+ */
565
+ option: {
566
+ default: CurdConfig;
567
+ };
568
+ }>, {
569
+ TForm: typeof TForm;
570
+ SwitchConfirm: typeof SwitchConfirm;
571
+ FormList: typeof FormList;
572
+ ElButton: typeof ElButton;
573
+ ElDatePicker: typeof ElDatePicker;
574
+ ElDialog: typeof ElDialog;
575
+ ElDropdown: typeof ElDropdown;
576
+ ElDropdownItem: typeof ElDropdownItem;
577
+ ElDropdownMenu: typeof ElDropdownMenu;
578
+ ElForm: typeof ElForm;
579
+ ElFormItem: typeof ElFormItem;
580
+ ElInput: typeof ElInput;
581
+ ElOption: typeof ElOption;
582
+ ElPagination: typeof ElPagination;
583
+ ElSelect: typeof ElSelect;
584
+ ElSwitch: typeof ElSwitch;
585
+ ElTable: typeof ElTable;
586
+ ElTableColumn: typeof ElTableColumn;
587
+ ElTreeSelect: typeof ElTreeSelect;
588
+ EDialog: typeof EDialog;
589
+ switchConfirmRef: typeof switchConfirmRef;
590
+ ruleFormRef: typeof ruleFormRef;
591
+ isFun: typeof isFun;
592
+ conf: typeof conf;
593
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
594
+ /**
595
+ * 配置
596
+ */
597
+ option: {
598
+ default: CurdConfig;
599
+ };
600
+ }>> & Readonly<{}>, {
601
+ option: CurdConfig<any>;
602
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
603
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
604
+ /**
605
+ * 配置
606
+ */
607
+ option: {
608
+ default: CurdConfig;
609
+ };
610
+ }>, {
611
+ conf: {
612
+ search: {
613
+ column: {
614
+ list: {
615
+ key: string;
616
+ label: string;
617
+ value: any;
618
+ disabled?: {
619
+ create?: boolean | undefined;
620
+ update?: boolean | undefined;
621
+ search?: boolean | undefined;
622
+ } | undefined;
623
+ options?: {
624
+ [x: string]: any;
625
+ input?: Record<string, any> | undefined;
626
+ switch?: {
627
+ activeValue: any;
628
+ activeLabel: string;
629
+ inactiveValue: any;
630
+ inactiveLabel: string;
631
+ tableBeforeChange: (key: string, data: any) => any;
632
+ } | undefined;
633
+ select?: Record<string, any> | undefined;
634
+ treeSelect?: Record<string, any> | undefined;
635
+ datetime?: Record<string, any> | undefined;
636
+ list?: {
637
+ label?: string | undefined;
638
+ value?: string | undefined;
639
+ itemFields?: ({
640
+ [x: string]: string;
641
+ label: string;
642
+ value: string;
643
+ } | undefined)[] | undefined;
644
+ inputWidth?: string | undefined;
645
+ inputClass?: string | undefined;
646
+ } | undefined;
647
+ } | undefined;
648
+ form?: {
649
+ labelWidth?: string | undefined;
650
+ width?: string | undefined;
651
+ span?: number | undefined;
652
+ } | undefined;
653
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
654
+ table?: {
655
+ table?: boolean | undefined;
656
+ minWidth?: string | undefined;
657
+ width?: string | undefined;
658
+ fixed?: "left" | "right" | undefined;
659
+ align?: "left" | "right" | "center" | undefined;
660
+ showOverflowTooltip?: boolean | undefined;
661
+ } | undefined;
662
+ rules?: any[] | undefined;
663
+ show?: {
664
+ table?: boolean | undefined;
665
+ search?: boolean | ((data: any) => boolean) | undefined;
666
+ form?: boolean | ((data: any) => boolean) | undefined;
667
+ } | undefined;
668
+ sort?: {
669
+ search?: number | undefined;
670
+ table?: number | undefined;
671
+ } | undefined;
672
+ }[];
673
+ };
674
+ form: Record<string, any>;
675
+ formDefault: Record<string, any>;
676
+ getFormData: () => any;
677
+ reset: () => void;
678
+ submit: () => void;
679
+ };
680
+ page: {
681
+ size: number;
682
+ sizeList: number[];
683
+ num: number;
684
+ total: number;
685
+ layout: string;
686
+ };
687
+ table: {
688
+ loading: boolean;
689
+ data: any[];
690
+ expand: {
691
+ isExpand: boolean;
692
+ rowKeys: any[];
693
+ change: (row: any, isExpand: boolean) => void;
694
+ all: () => void;
695
+ };
696
+ column: {
697
+ list: {
698
+ key: string;
699
+ label: string;
700
+ value: any;
701
+ disabled?: {
702
+ create?: boolean | undefined;
703
+ update?: boolean | undefined;
704
+ search?: boolean | undefined;
705
+ } | undefined;
706
+ options?: {
707
+ [x: string]: any;
708
+ input?: Record<string, any> | undefined;
709
+ switch?: {
710
+ activeValue: any;
711
+ activeLabel: string;
712
+ inactiveValue: any;
713
+ inactiveLabel: string;
714
+ tableBeforeChange: (key: string, data: any) => any;
715
+ } | undefined;
716
+ select?: Record<string, any> | undefined;
717
+ treeSelect?: Record<string, any> | undefined;
718
+ datetime?: Record<string, any> | undefined;
719
+ list?: {
720
+ label?: string | undefined;
721
+ value?: string | undefined;
722
+ itemFields?: ({
723
+ [x: string]: string;
724
+ label: string;
725
+ value: string;
726
+ } | undefined)[] | undefined;
727
+ inputWidth?: string | undefined;
728
+ inputClass?: string | undefined;
729
+ } | undefined;
730
+ } | undefined;
731
+ form?: {
732
+ labelWidth?: string | undefined;
733
+ width?: string | undefined;
734
+ span?: number | undefined;
735
+ } | undefined;
736
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
737
+ table?: {
738
+ table?: boolean | undefined;
739
+ minWidth?: string | undefined;
740
+ width?: string | undefined;
741
+ fixed?: "left" | "right" | undefined;
742
+ align?: "left" | "right" | "center" | undefined;
743
+ showOverflowTooltip?: boolean | undefined;
744
+ } | undefined;
745
+ rules?: any[] | undefined;
746
+ show?: {
747
+ table?: boolean | undefined;
748
+ search?: boolean | ((data: any) => boolean) | undefined;
749
+ form?: boolean | ((data: any) => boolean) | undefined;
750
+ } | undefined;
751
+ sort?: {
752
+ search?: number | undefined;
753
+ table?: number | undefined;
754
+ } | undefined;
755
+ }[];
756
+ show: {
757
+ listSource: any[];
758
+ list: any[];
759
+ };
760
+ };
761
+ getList: () => Promise<void>;
762
+ selection: {
763
+ list: any[];
764
+ change: (selection: any[]) => void;
765
+ };
766
+ exportFun: any;
767
+ export: (command: any) => void;
768
+ };
769
+ update: {
770
+ title: string;
771
+ rules: any;
772
+ show: boolean;
773
+ showContent: boolean;
774
+ loading: boolean;
775
+ type: any;
776
+ form: any;
777
+ formDefault: any;
778
+ formColumn: {
779
+ item: {
780
+ key: string;
781
+ label: string;
782
+ value: any;
783
+ disabled?: {
784
+ create?: boolean | undefined;
785
+ update?: boolean | undefined;
786
+ search?: boolean | undefined;
787
+ } | undefined;
788
+ options?: {
789
+ [x: string]: any;
790
+ input?: Record<string, any> | undefined;
791
+ switch?: {
792
+ activeValue: any;
793
+ activeLabel: string;
794
+ inactiveValue: any;
795
+ inactiveLabel: string;
796
+ tableBeforeChange: (key: string, data: any) => any;
797
+ } | undefined;
798
+ select?: Record<string, any> | undefined;
799
+ treeSelect?: Record<string, any> | undefined;
800
+ datetime?: Record<string, any> | undefined;
801
+ list?: {
802
+ label?: string | undefined;
803
+ value?: string | undefined;
804
+ itemFields?: ({
805
+ [x: string]: string;
806
+ label: string;
807
+ value: string;
808
+ } | undefined)[] | undefined;
809
+ inputWidth?: string | undefined;
810
+ inputClass?: string | undefined;
811
+ } | undefined;
812
+ } | undefined;
813
+ form?: {
814
+ labelWidth?: string | undefined;
815
+ width?: string | undefined;
816
+ span?: number | undefined;
817
+ } | undefined;
818
+ type: "input" | "select" | "switch" | "textarea" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list";
819
+ table?: {
820
+ table?: boolean | undefined;
821
+ minWidth?: string | undefined;
822
+ width?: string | undefined;
823
+ fixed?: "left" | "right" | undefined;
824
+ align?: "left" | "right" | "center" | undefined;
825
+ showOverflowTooltip?: boolean | undefined;
826
+ } | undefined;
827
+ rules?: any[] | undefined;
828
+ show?: {
829
+ table?: boolean | undefined;
830
+ search?: boolean | ((data: any) => boolean) | undefined;
831
+ form?: boolean | ((data: any) => boolean) | undefined;
832
+ } | undefined;
833
+ sort?: {
834
+ search?: number | undefined;
835
+ table?: number | undefined;
836
+ } | undefined;
837
+ };
838
+ span: number;
839
+ }[][];
840
+ getDisabled: (item: CurdConfigColumn) => boolean | undefined;
841
+ edit: {
842
+ data: any;
843
+ getApiData: (form: any) => any;
844
+ };
845
+ open: (type: typeof EDialog, item?: any) => void;
846
+ submit: () => void;
847
+ close: () => void;
848
+ };
849
+ remove: {
850
+ title: string;
851
+ show: boolean;
852
+ items: any[];
853
+ loading: boolean;
854
+ close: () => void;
855
+ open: (items: any[]) => void;
856
+ submit: () => void;
857
+ };
858
+ init: () => void;
859
+ initCurdConfig: () => void;
860
+ initColumnOptions: () => void;
861
+ initColumnForm: () => void;
862
+ };
863
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
864
+ /**
865
+ * 配置
866
+ */
867
+ option: {
868
+ default: CurdConfig;
869
+ };
870
+ }>> & Readonly<{}>, {
871
+ option: CurdConfig<any>;
872
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
873
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
874
+ export default _default;
875
+ type __VLS_WithSlots<T, S> = T & {
876
+ new (): {
877
+ $slots: S;
878
+ };
879
+ };