cc1-form 1.2.2 → 1.2.4

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.
@@ -109,8 +109,10 @@ declare const conf: {
109
109
  inactiveText?: string | undefined;
110
110
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
111
111
  tableConfig?: {
112
+ change?: boolean | undefined;
112
113
  confirm?: boolean | undefined;
113
114
  loadList?: boolean | undefined;
115
+ api?: ((data: any, type: "switch") => any) | undefined;
114
116
  } | undefined;
115
117
  } | undefined;
116
118
  select?: {
@@ -193,8 +195,10 @@ declare const conf: {
193
195
  inactiveText?: string | undefined;
194
196
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
195
197
  tableConfig?: {
198
+ change?: boolean | undefined;
196
199
  confirm?: boolean | undefined;
197
200
  loadList?: boolean | undefined;
201
+ api?: ((data: any, type: "switch") => any) | undefined;
198
202
  } | undefined;
199
203
  } | undefined;
200
204
  select?: {
@@ -277,8 +281,10 @@ declare const conf: {
277
281
  inactiveText?: string | undefined;
278
282
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
279
283
  tableConfig?: {
284
+ change?: boolean | undefined;
280
285
  confirm?: boolean | undefined;
281
286
  loadList?: boolean | undefined;
287
+ api?: ((data: any, type: "switch") => any) | undefined;
282
288
  } | undefined;
283
289
  } | undefined;
284
290
  select?: {
@@ -345,8 +351,10 @@ declare const conf: {
345
351
  inactiveText?: string | undefined;
346
352
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
347
353
  tableConfig?: {
354
+ change?: boolean | undefined;
348
355
  confirm?: boolean | undefined;
349
356
  loadList?: boolean | undefined;
357
+ api?: ((data: any, type: "switch") => any) | undefined;
350
358
  } | undefined;
351
359
  } | undefined;
352
360
  select?: {
@@ -554,8 +562,10 @@ declare const conf: {
554
562
  inactiveText?: string | undefined;
555
563
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
556
564
  tableConfig?: {
565
+ change?: boolean | undefined;
557
566
  confirm?: boolean | undefined;
558
567
  loadList?: boolean | undefined;
568
+ api?: ((data: any, type: "switch") => any) | undefined;
559
569
  } | undefined;
560
570
  } | undefined;
561
571
  select?: {
@@ -638,8 +648,10 @@ declare const conf: {
638
648
  inactiveText?: string | undefined;
639
649
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
640
650
  tableConfig?: {
651
+ change?: boolean | undefined;
641
652
  confirm?: boolean | undefined;
642
653
  loadList?: boolean | undefined;
654
+ api?: ((data: any, type: "switch") => any) | undefined;
643
655
  } | undefined;
644
656
  } | undefined;
645
657
  select?: {
@@ -722,8 +734,10 @@ declare const conf: {
722
734
  inactiveText?: string | undefined;
723
735
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
724
736
  tableConfig?: {
737
+ change?: boolean | undefined;
725
738
  confirm?: boolean | undefined;
726
739
  loadList?: boolean | undefined;
740
+ api?: ((data: any, type: "switch") => any) | undefined;
727
741
  } | undefined;
728
742
  } | undefined;
729
743
  select?: {
@@ -790,8 +804,10 @@ declare const conf: {
790
804
  inactiveText?: string | undefined;
791
805
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
792
806
  tableConfig?: {
807
+ change?: boolean | undefined;
793
808
  confirm?: boolean | undefined;
794
809
  loadList?: boolean | undefined;
810
+ api?: ((data: any, type: "switch") => any) | undefined;
795
811
  } | undefined;
796
812
  } | undefined;
797
813
  select?: {
@@ -891,7 +907,7 @@ declare const conf: {
891
907
  api: {
892
908
  list: (param?: any) => any;
893
909
  create?: ((param?: any) => any) | undefined;
894
- update?: ((param?: any) => any) | undefined;
910
+ update?: ((param?: any, type?: "switch") => any) | undefined;
895
911
  delete?: ((param?: ({
896
912
  items: any[];
897
913
  } & Record<string, any>) | undefined) => any) | undefined;
@@ -956,8 +972,10 @@ declare const conf: {
956
972
  inactiveText?: string | undefined;
957
973
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
958
974
  tableConfig?: {
975
+ change?: boolean | undefined;
959
976
  confirm?: boolean | undefined;
960
977
  loadList?: boolean | undefined;
978
+ api?: ((data: any, type: "switch") => any) | undefined;
961
979
  } | undefined;
962
980
  } | undefined;
963
981
  select?: {
@@ -1040,8 +1058,10 @@ declare const conf: {
1040
1058
  inactiveText?: string | undefined;
1041
1059
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1042
1060
  tableConfig?: {
1061
+ change?: boolean | undefined;
1043
1062
  confirm?: boolean | undefined;
1044
1063
  loadList?: boolean | undefined;
1064
+ api?: ((data: any, type: "switch") => any) | undefined;
1045
1065
  } | undefined;
1046
1066
  } | undefined;
1047
1067
  select?: {
@@ -1124,8 +1144,10 @@ declare const conf: {
1124
1144
  inactiveText?: string | undefined;
1125
1145
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1126
1146
  tableConfig?: {
1147
+ change?: boolean | undefined;
1127
1148
  confirm?: boolean | undefined;
1128
1149
  loadList?: boolean | undefined;
1150
+ api?: ((data: any, type: "switch") => any) | undefined;
1129
1151
  } | undefined;
1130
1152
  } | undefined;
1131
1153
  select?: {
@@ -1192,8 +1214,10 @@ declare const conf: {
1192
1214
  inactiveText?: string | undefined;
1193
1215
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1194
1216
  tableConfig?: {
1217
+ change?: boolean | undefined;
1195
1218
  confirm?: boolean | undefined;
1196
1219
  loadList?: boolean | undefined;
1220
+ api?: ((data: any, type: "switch") => any) | undefined;
1197
1221
  } | undefined;
1198
1222
  } | undefined;
1199
1223
  select?: {
@@ -1380,8 +1404,10 @@ declare const conf: {
1380
1404
  inactiveText?: string | undefined;
1381
1405
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1382
1406
  tableConfig?: {
1407
+ change?: boolean | undefined;
1383
1408
  confirm?: boolean | undefined;
1384
1409
  loadList?: boolean | undefined;
1410
+ api?: ((data: any, type: "switch") => any) | undefined;
1385
1411
  } | undefined;
1386
1412
  } | undefined;
1387
1413
  select?: {
@@ -1464,8 +1490,10 @@ declare const conf: {
1464
1490
  inactiveText?: string | undefined;
1465
1491
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1466
1492
  tableConfig?: {
1493
+ change?: boolean | undefined;
1467
1494
  confirm?: boolean | undefined;
1468
1495
  loadList?: boolean | undefined;
1496
+ api?: ((data: any, type: "switch") => any) | undefined;
1469
1497
  } | undefined;
1470
1498
  } | undefined;
1471
1499
  select?: {
@@ -1548,8 +1576,10 @@ declare const conf: {
1548
1576
  inactiveText?: string | undefined;
1549
1577
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1550
1578
  tableConfig?: {
1579
+ change?: boolean | undefined;
1551
1580
  confirm?: boolean | undefined;
1552
1581
  loadList?: boolean | undefined;
1582
+ api?: ((data: any, type: "switch") => any) | undefined;
1553
1583
  } | undefined;
1554
1584
  } | undefined;
1555
1585
  select?: {
@@ -1616,8 +1646,10 @@ declare const conf: {
1616
1646
  inactiveText?: string | undefined;
1617
1647
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1618
1648
  tableConfig?: {
1649
+ change?: boolean | undefined;
1619
1650
  confirm?: boolean | undefined;
1620
1651
  loadList?: boolean | undefined;
1652
+ api?: ((data: any, type: "switch") => any) | undefined;
1621
1653
  } | undefined;
1622
1654
  } | undefined;
1623
1655
  select?: {
@@ -1810,8 +1842,10 @@ declare const conf: {
1810
1842
  inactiveText?: string | undefined;
1811
1843
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1812
1844
  tableConfig?: {
1845
+ change?: boolean | undefined;
1813
1846
  confirm?: boolean | undefined;
1814
1847
  loadList?: boolean | undefined;
1848
+ api?: ((data: any, type: "switch") => any) | undefined;
1815
1849
  } | undefined;
1816
1850
  } | undefined;
1817
1851
  select?: {
@@ -1894,8 +1928,10 @@ declare const conf: {
1894
1928
  inactiveText?: string | undefined;
1895
1929
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1896
1930
  tableConfig?: {
1931
+ change?: boolean | undefined;
1897
1932
  confirm?: boolean | undefined;
1898
1933
  loadList?: boolean | undefined;
1934
+ api?: ((data: any, type: "switch") => any) | undefined;
1899
1935
  } | undefined;
1900
1936
  } | undefined;
1901
1937
  select?: {
@@ -1978,8 +2014,10 @@ declare const conf: {
1978
2014
  inactiveText?: string | undefined;
1979
2015
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
1980
2016
  tableConfig?: {
2017
+ change?: boolean | undefined;
1981
2018
  confirm?: boolean | undefined;
1982
2019
  loadList?: boolean | undefined;
2020
+ api?: ((data: any, type: "switch") => any) | undefined;
1983
2021
  } | undefined;
1984
2022
  } | undefined;
1985
2023
  select?: {
@@ -2046,8 +2084,10 @@ declare const conf: {
2046
2084
  inactiveText?: string | undefined;
2047
2085
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2048
2086
  tableConfig?: {
2087
+ change?: boolean | undefined;
2049
2088
  confirm?: boolean | undefined;
2050
2089
  loadList?: boolean | undefined;
2090
+ api?: ((data: any, type: "switch") => any) | undefined;
2051
2091
  } | undefined;
2052
2092
  } | undefined;
2053
2093
  select?: {
@@ -2257,8 +2297,10 @@ declare var __VLS_1: {}, __VLS_7: {
2257
2297
  inactiveText?: string | undefined;
2258
2298
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2259
2299
  tableConfig?: {
2300
+ change?: boolean | undefined;
2260
2301
  confirm?: boolean | undefined;
2261
2302
  loadList?: boolean | undefined;
2303
+ api?: ((data: any, type: "switch") => any) | undefined;
2262
2304
  } | undefined;
2263
2305
  } | undefined;
2264
2306
  select?: {
@@ -2341,8 +2383,10 @@ declare var __VLS_1: {}, __VLS_7: {
2341
2383
  inactiveText?: string | undefined;
2342
2384
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2343
2385
  tableConfig?: {
2386
+ change?: boolean | undefined;
2344
2387
  confirm?: boolean | undefined;
2345
2388
  loadList?: boolean | undefined;
2389
+ api?: ((data: any, type: "switch") => any) | undefined;
2346
2390
  } | undefined;
2347
2391
  } | undefined;
2348
2392
  select?: {
@@ -2425,8 +2469,10 @@ declare var __VLS_1: {}, __VLS_7: {
2425
2469
  inactiveText?: string | undefined;
2426
2470
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2427
2471
  tableConfig?: {
2472
+ change?: boolean | undefined;
2428
2473
  confirm?: boolean | undefined;
2429
2474
  loadList?: boolean | undefined;
2475
+ api?: ((data: any, type: "switch") => any) | undefined;
2430
2476
  } | undefined;
2431
2477
  } | undefined;
2432
2478
  select?: {
@@ -2493,8 +2539,10 @@ declare var __VLS_1: {}, __VLS_7: {
2493
2539
  inactiveText?: string | undefined;
2494
2540
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2495
2541
  tableConfig?: {
2542
+ change?: boolean | undefined;
2496
2543
  confirm?: boolean | undefined;
2497
2544
  loadList?: boolean | undefined;
2545
+ api?: ((data: any, type: "switch") => any) | undefined;
2498
2546
  } | undefined;
2499
2547
  } | undefined;
2500
2548
  select?: {
@@ -2775,8 +2823,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
2775
2823
  inactiveText?: string | undefined;
2776
2824
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2777
2825
  tableConfig?: {
2826
+ change?: boolean | undefined;
2778
2827
  confirm?: boolean | undefined;
2779
2828
  loadList?: boolean | undefined;
2829
+ api?: ((data: any, type: "switch") => any) | undefined;
2780
2830
  } | undefined;
2781
2831
  } | undefined;
2782
2832
  select?: {
@@ -2859,8 +2909,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
2859
2909
  inactiveText?: string | undefined;
2860
2910
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2861
2911
  tableConfig?: {
2912
+ change?: boolean | undefined;
2862
2913
  confirm?: boolean | undefined;
2863
2914
  loadList?: boolean | undefined;
2915
+ api?: ((data: any, type: "switch") => any) | undefined;
2864
2916
  } | undefined;
2865
2917
  } | undefined;
2866
2918
  select?: {
@@ -2943,8 +2995,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
2943
2995
  inactiveText?: string | undefined;
2944
2996
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
2945
2997
  tableConfig?: {
2998
+ change?: boolean | undefined;
2946
2999
  confirm?: boolean | undefined;
2947
3000
  loadList?: boolean | undefined;
3001
+ api?: ((data: any, type: "switch") => any) | undefined;
2948
3002
  } | undefined;
2949
3003
  } | undefined;
2950
3004
  select?: {
@@ -3011,8 +3065,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3011
3065
  inactiveText?: string | undefined;
3012
3066
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3013
3067
  tableConfig?: {
3068
+ change?: boolean | undefined;
3014
3069
  confirm?: boolean | undefined;
3015
3070
  loadList?: boolean | undefined;
3071
+ api?: ((data: any, type: "switch") => any) | undefined;
3016
3072
  } | undefined;
3017
3073
  } | undefined;
3018
3074
  select?: {
@@ -3220,8 +3276,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3220
3276
  inactiveText?: string | undefined;
3221
3277
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3222
3278
  tableConfig?: {
3279
+ change?: boolean | undefined;
3223
3280
  confirm?: boolean | undefined;
3224
3281
  loadList?: boolean | undefined;
3282
+ api?: ((data: any, type: "switch") => any) | undefined;
3225
3283
  } | undefined;
3226
3284
  } | undefined;
3227
3285
  select?: {
@@ -3304,8 +3362,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3304
3362
  inactiveText?: string | undefined;
3305
3363
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3306
3364
  tableConfig?: {
3365
+ change?: boolean | undefined;
3307
3366
  confirm?: boolean | undefined;
3308
3367
  loadList?: boolean | undefined;
3368
+ api?: ((data: any, type: "switch") => any) | undefined;
3309
3369
  } | undefined;
3310
3370
  } | undefined;
3311
3371
  select?: {
@@ -3388,8 +3448,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3388
3448
  inactiveText?: string | undefined;
3389
3449
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3390
3450
  tableConfig?: {
3451
+ change?: boolean | undefined;
3391
3452
  confirm?: boolean | undefined;
3392
3453
  loadList?: boolean | undefined;
3454
+ api?: ((data: any, type: "switch") => any) | undefined;
3393
3455
  } | undefined;
3394
3456
  } | undefined;
3395
3457
  select?: {
@@ -3456,8 +3518,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3456
3518
  inactiveText?: string | undefined;
3457
3519
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3458
3520
  tableConfig?: {
3521
+ change?: boolean | undefined;
3459
3522
  confirm?: boolean | undefined;
3460
3523
  loadList?: boolean | undefined;
3524
+ api?: ((data: any, type: "switch") => any) | undefined;
3461
3525
  } | undefined;
3462
3526
  } | undefined;
3463
3527
  select?: {
@@ -3557,7 +3621,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3557
3621
  api: {
3558
3622
  list: (param?: any) => any;
3559
3623
  create?: ((param?: any) => any) | undefined;
3560
- update?: ((param?: any) => any) | undefined;
3624
+ update?: ((param?: any, type?: "switch") => any) | undefined;
3561
3625
  delete?: ((param?: ({
3562
3626
  items: any[];
3563
3627
  } & Record<string, any>) | undefined) => any) | undefined;
@@ -3622,8 +3686,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3622
3686
  inactiveText?: string | undefined;
3623
3687
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3624
3688
  tableConfig?: {
3689
+ change?: boolean | undefined;
3625
3690
  confirm?: boolean | undefined;
3626
3691
  loadList?: boolean | undefined;
3692
+ api?: ((data: any, type: "switch") => any) | undefined;
3627
3693
  } | undefined;
3628
3694
  } | undefined;
3629
3695
  select?: {
@@ -3706,8 +3772,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3706
3772
  inactiveText?: string | undefined;
3707
3773
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3708
3774
  tableConfig?: {
3775
+ change?: boolean | undefined;
3709
3776
  confirm?: boolean | undefined;
3710
3777
  loadList?: boolean | undefined;
3778
+ api?: ((data: any, type: "switch") => any) | undefined;
3711
3779
  } | undefined;
3712
3780
  } | undefined;
3713
3781
  select?: {
@@ -3790,8 +3858,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3790
3858
  inactiveText?: string | undefined;
3791
3859
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3792
3860
  tableConfig?: {
3861
+ change?: boolean | undefined;
3793
3862
  confirm?: boolean | undefined;
3794
3863
  loadList?: boolean | undefined;
3864
+ api?: ((data: any, type: "switch") => any) | undefined;
3795
3865
  } | undefined;
3796
3866
  } | undefined;
3797
3867
  select?: {
@@ -3858,8 +3928,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3858
3928
  inactiveText?: string | undefined;
3859
3929
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
3860
3930
  tableConfig?: {
3931
+ change?: boolean | undefined;
3861
3932
  confirm?: boolean | undefined;
3862
3933
  loadList?: boolean | undefined;
3934
+ api?: ((data: any, type: "switch") => any) | undefined;
3863
3935
  } | undefined;
3864
3936
  } | undefined;
3865
3937
  select?: {
@@ -4046,8 +4118,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4046
4118
  inactiveText?: string | undefined;
4047
4119
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4048
4120
  tableConfig?: {
4121
+ change?: boolean | undefined;
4049
4122
  confirm?: boolean | undefined;
4050
4123
  loadList?: boolean | undefined;
4124
+ api?: ((data: any, type: "switch") => any) | undefined;
4051
4125
  } | undefined;
4052
4126
  } | undefined;
4053
4127
  select?: {
@@ -4130,8 +4204,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4130
4204
  inactiveText?: string | undefined;
4131
4205
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4132
4206
  tableConfig?: {
4207
+ change?: boolean | undefined;
4133
4208
  confirm?: boolean | undefined;
4134
4209
  loadList?: boolean | undefined;
4210
+ api?: ((data: any, type: "switch") => any) | undefined;
4135
4211
  } | undefined;
4136
4212
  } | undefined;
4137
4213
  select?: {
@@ -4214,8 +4290,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4214
4290
  inactiveText?: string | undefined;
4215
4291
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4216
4292
  tableConfig?: {
4293
+ change?: boolean | undefined;
4217
4294
  confirm?: boolean | undefined;
4218
4295
  loadList?: boolean | undefined;
4296
+ api?: ((data: any, type: "switch") => any) | undefined;
4219
4297
  } | undefined;
4220
4298
  } | undefined;
4221
4299
  select?: {
@@ -4282,8 +4360,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4282
4360
  inactiveText?: string | undefined;
4283
4361
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4284
4362
  tableConfig?: {
4363
+ change?: boolean | undefined;
4285
4364
  confirm?: boolean | undefined;
4286
4365
  loadList?: boolean | undefined;
4366
+ api?: ((data: any, type: "switch") => any) | undefined;
4287
4367
  } | undefined;
4288
4368
  } | undefined;
4289
4369
  select?: {
@@ -4476,8 +4556,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4476
4556
  inactiveText?: string | undefined;
4477
4557
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4478
4558
  tableConfig?: {
4559
+ change?: boolean | undefined;
4479
4560
  confirm?: boolean | undefined;
4480
4561
  loadList?: boolean | undefined;
4562
+ api?: ((data: any, type: "switch") => any) | undefined;
4481
4563
  } | undefined;
4482
4564
  } | undefined;
4483
4565
  select?: {
@@ -4560,8 +4642,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4560
4642
  inactiveText?: string | undefined;
4561
4643
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4562
4644
  tableConfig?: {
4645
+ change?: boolean | undefined;
4563
4646
  confirm?: boolean | undefined;
4564
4647
  loadList?: boolean | undefined;
4648
+ api?: ((data: any, type: "switch") => any) | undefined;
4565
4649
  } | undefined;
4566
4650
  } | undefined;
4567
4651
  select?: {
@@ -4644,8 +4728,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4644
4728
  inactiveText?: string | undefined;
4645
4729
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4646
4730
  tableConfig?: {
4731
+ change?: boolean | undefined;
4647
4732
  confirm?: boolean | undefined;
4648
4733
  loadList?: boolean | undefined;
4734
+ api?: ((data: any, type: "switch") => any) | undefined;
4649
4735
  } | undefined;
4650
4736
  } | undefined;
4651
4737
  select?: {
@@ -4712,8 +4798,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4712
4798
  inactiveText?: string | undefined;
4713
4799
  tableBeforeChange?: ((key: string, data: any) => any) | undefined;
4714
4800
  tableConfig?: {
4801
+ change?: boolean | undefined;
4715
4802
  confirm?: boolean | undefined;
4716
4803
  loadList?: boolean | undefined;
4804
+ api?: ((data: any, type: "switch") => any) | undefined;
4717
4805
  } | undefined;
4718
4806
  } | undefined;
4719
4807
  select?: {
@@ -346,9 +346,9 @@ export interface CurdConfig<T = any> {
346
346
  */
347
347
  create?: (param?: T) => any;
348
348
  /**
349
- * 编辑
349
+ * 编辑 - 如果有switch类型可以在table中直接修改并没有传入api接口,默认调用更新接口,会传入第二个参数type: 'switch'
350
350
  */
351
- update?: (param?: T) => any;
351
+ update?: (param?: T, type?: 'switch') => any;
352
352
  /**
353
353
  * 删除
354
354
  */
@@ -680,10 +680,14 @@ export type CurdOptions<T = any> = {
680
680
  tableBeforeChange: (key: string, data: any) => any;
681
681
  /** 表格中直接操作切换配置 */
682
682
  tableConfig: Partial<{
683
+ /** 是否在表格中进行切换,默认true */
684
+ change: boolean;
683
685
  /** 表格直接操作切换后是否确认 默认需要确认 需要用户确认后才进行切换 */
684
686
  confirm: boolean;
685
687
  /** 表格直接操作切换后是否重新加载列表 默认需要重新加载列表 */
686
688
  loadList: boolean;
689
+ /** 切换绑定api,用于切换后执行处理 */
690
+ api: (data: T, type: 'switch') => any;
687
691
  }>;
688
692
  }>;
689
693
  /**
@@ -327,6 +327,7 @@ export default class TFormConfig {
327
327
  activeValue: boolean;
328
328
  inactiveValue: boolean;
329
329
  tableConfig: {
330
+ change: boolean;
330
331
  confirm: boolean;
331
332
  loadList: boolean;
332
333
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",