cc1-form 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cc1-form.css +1 -1
- package/dist/cc1-form.js +1105 -950
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +70 -7
- package/dist/components/TCurd/formColumn.vue.d.ts +50 -5
- package/dist/components/TCurd/icon/CirclePlusFilled.vue.d.ts +2 -0
- package/dist/components/TCurd/icon/Collapse.vue.d.ts +2 -0
- package/dist/components/TCurd/icon/Expand.vue.d.ts +2 -0
- package/dist/components/TCurd/icon/RemoveFilled.vue.d.ts +2 -0
- package/dist/components/TCurd/index.d.ts +59 -7
- package/dist/components/TCurd/index.vue.d.ts +147 -30
- package/dist/components/TCurd/indexType.d.ts +19 -2
- package/dist/components/TCurd/tableColumn.vue.d.ts +17 -3
- package/dist/utils/TFormConfig.d.ts +4 -0
- package/dist/utils/TFormI18n.d.ts +4 -0
- package/package.json +1 -1
|
@@ -96,6 +96,7 @@ export declare const curdConf: (props: {
|
|
|
96
96
|
} | undefined;
|
|
97
97
|
input?: {
|
|
98
98
|
[x: string]: any;
|
|
99
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
99
100
|
on?: any;
|
|
100
101
|
} | undefined;
|
|
101
102
|
switch?: {
|
|
@@ -182,6 +183,7 @@ export declare const curdConf: (props: {
|
|
|
182
183
|
} | undefined;
|
|
183
184
|
input?: {
|
|
184
185
|
[x: string]: any;
|
|
186
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
185
187
|
on?: any;
|
|
186
188
|
} | undefined;
|
|
187
189
|
switch?: {
|
|
@@ -268,6 +270,7 @@ export declare const curdConf: (props: {
|
|
|
268
270
|
} | undefined;
|
|
269
271
|
input?: {
|
|
270
272
|
[x: string]: any;
|
|
273
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
271
274
|
on?: any;
|
|
272
275
|
} | undefined;
|
|
273
276
|
switch?: {
|
|
@@ -338,6 +341,7 @@ export declare const curdConf: (props: {
|
|
|
338
341
|
} | undefined;
|
|
339
342
|
input?: {
|
|
340
343
|
[x: string]: any;
|
|
344
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
341
345
|
on?: any;
|
|
342
346
|
} | undefined;
|
|
343
347
|
switch?: {
|
|
@@ -426,7 +430,12 @@ export declare const curdConf: (props: {
|
|
|
426
430
|
callback?: ((data: any) => void) | undefined;
|
|
427
431
|
color?: string | undefined;
|
|
428
432
|
} | undefined;
|
|
429
|
-
|
|
433
|
+
header?: {
|
|
434
|
+
tooltip?: string | undefined;
|
|
435
|
+
group?: boolean | undefined;
|
|
436
|
+
groupKey?: string | number | symbol | undefined;
|
|
437
|
+
show?: boolean | undefined;
|
|
438
|
+
} | undefined;
|
|
430
439
|
} | undefined;
|
|
431
440
|
rules?: any[] | boolean | undefined;
|
|
432
441
|
text?: {
|
|
@@ -471,6 +480,7 @@ export declare const curdConf: (props: {
|
|
|
471
480
|
refresh?: boolean | undefined;
|
|
472
481
|
expand?: boolean | undefined;
|
|
473
482
|
search?: boolean | undefined;
|
|
483
|
+
expandColumn?: boolean | undefined;
|
|
474
484
|
reset?: boolean | undefined;
|
|
475
485
|
add?: boolean | ((data: any) => boolean) | undefined;
|
|
476
486
|
delete?: boolean | ((data: any) => boolean) | undefined;
|
|
@@ -550,6 +560,7 @@ export declare const curdConf: (props: {
|
|
|
550
560
|
} | undefined;
|
|
551
561
|
input?: {
|
|
552
562
|
[x: string]: any;
|
|
563
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
553
564
|
on?: any;
|
|
554
565
|
} | undefined;
|
|
555
566
|
switch?: {
|
|
@@ -636,6 +647,7 @@ export declare const curdConf: (props: {
|
|
|
636
647
|
} | undefined;
|
|
637
648
|
input?: {
|
|
638
649
|
[x: string]: any;
|
|
650
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
639
651
|
on?: any;
|
|
640
652
|
} | undefined;
|
|
641
653
|
switch?: {
|
|
@@ -722,6 +734,7 @@ export declare const curdConf: (props: {
|
|
|
722
734
|
} | undefined;
|
|
723
735
|
input?: {
|
|
724
736
|
[x: string]: any;
|
|
737
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
725
738
|
on?: any;
|
|
726
739
|
} | undefined;
|
|
727
740
|
switch?: {
|
|
@@ -792,6 +805,7 @@ export declare const curdConf: (props: {
|
|
|
792
805
|
} | undefined;
|
|
793
806
|
input?: {
|
|
794
807
|
[x: string]: any;
|
|
808
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
795
809
|
on?: any;
|
|
796
810
|
} | undefined;
|
|
797
811
|
switch?: {
|
|
@@ -880,7 +894,12 @@ export declare const curdConf: (props: {
|
|
|
880
894
|
callback?: ((data: any) => void) | undefined;
|
|
881
895
|
color?: string | undefined;
|
|
882
896
|
} | undefined;
|
|
883
|
-
|
|
897
|
+
header?: {
|
|
898
|
+
tooltip?: string | undefined;
|
|
899
|
+
group?: boolean | undefined;
|
|
900
|
+
groupKey?: string | number | symbol | undefined;
|
|
901
|
+
show?: boolean | undefined;
|
|
902
|
+
} | undefined;
|
|
884
903
|
} | undefined;
|
|
885
904
|
rules?: any[] | boolean | undefined;
|
|
886
905
|
text?: {
|
|
@@ -961,6 +980,7 @@ export declare const curdConf: (props: {
|
|
|
961
980
|
} | undefined;
|
|
962
981
|
input?: {
|
|
963
982
|
[x: string]: any;
|
|
983
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
964
984
|
on?: any;
|
|
965
985
|
} | undefined;
|
|
966
986
|
switch?: {
|
|
@@ -1047,6 +1067,7 @@ export declare const curdConf: (props: {
|
|
|
1047
1067
|
} | undefined;
|
|
1048
1068
|
input?: {
|
|
1049
1069
|
[x: string]: any;
|
|
1070
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1050
1071
|
on?: any;
|
|
1051
1072
|
} | undefined;
|
|
1052
1073
|
switch?: {
|
|
@@ -1133,6 +1154,7 @@ export declare const curdConf: (props: {
|
|
|
1133
1154
|
} | undefined;
|
|
1134
1155
|
input?: {
|
|
1135
1156
|
[x: string]: any;
|
|
1157
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1136
1158
|
on?: any;
|
|
1137
1159
|
} | undefined;
|
|
1138
1160
|
switch?: {
|
|
@@ -1203,6 +1225,7 @@ export declare const curdConf: (props: {
|
|
|
1203
1225
|
} | undefined;
|
|
1204
1226
|
input?: {
|
|
1205
1227
|
[x: string]: any;
|
|
1228
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1206
1229
|
on?: any;
|
|
1207
1230
|
} | undefined;
|
|
1208
1231
|
switch?: {
|
|
@@ -1291,7 +1314,12 @@ export declare const curdConf: (props: {
|
|
|
1291
1314
|
callback?: ((data: any) => void) | undefined;
|
|
1292
1315
|
color?: string | undefined;
|
|
1293
1316
|
} | undefined;
|
|
1294
|
-
|
|
1317
|
+
header?: {
|
|
1318
|
+
tooltip?: string | undefined;
|
|
1319
|
+
group?: boolean | undefined;
|
|
1320
|
+
groupKey?: string | number | symbol | undefined;
|
|
1321
|
+
show?: boolean | undefined;
|
|
1322
|
+
} | undefined;
|
|
1295
1323
|
} | undefined;
|
|
1296
1324
|
rules?: any[] | boolean | undefined;
|
|
1297
1325
|
text?: {
|
|
@@ -1394,6 +1422,7 @@ export declare const curdConf: (props: {
|
|
|
1394
1422
|
} | undefined;
|
|
1395
1423
|
input?: {
|
|
1396
1424
|
[x: string]: any;
|
|
1425
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1397
1426
|
on?: any;
|
|
1398
1427
|
} | undefined;
|
|
1399
1428
|
switch?: {
|
|
@@ -1480,6 +1509,7 @@ export declare const curdConf: (props: {
|
|
|
1480
1509
|
} | undefined;
|
|
1481
1510
|
input?: {
|
|
1482
1511
|
[x: string]: any;
|
|
1512
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1483
1513
|
on?: any;
|
|
1484
1514
|
} | undefined;
|
|
1485
1515
|
switch?: {
|
|
@@ -1566,6 +1596,7 @@ export declare const curdConf: (props: {
|
|
|
1566
1596
|
} | undefined;
|
|
1567
1597
|
input?: {
|
|
1568
1598
|
[x: string]: any;
|
|
1599
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1569
1600
|
on?: any;
|
|
1570
1601
|
} | undefined;
|
|
1571
1602
|
switch?: {
|
|
@@ -1636,6 +1667,7 @@ export declare const curdConf: (props: {
|
|
|
1636
1667
|
} | undefined;
|
|
1637
1668
|
input?: {
|
|
1638
1669
|
[x: string]: any;
|
|
1670
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1639
1671
|
on?: any;
|
|
1640
1672
|
} | undefined;
|
|
1641
1673
|
switch?: {
|
|
@@ -1724,7 +1756,12 @@ export declare const curdConf: (props: {
|
|
|
1724
1756
|
callback?: ((data: any) => void) | undefined;
|
|
1725
1757
|
color?: string | undefined;
|
|
1726
1758
|
} | undefined;
|
|
1727
|
-
|
|
1759
|
+
header?: {
|
|
1760
|
+
tooltip?: string | undefined;
|
|
1761
|
+
group?: boolean | undefined;
|
|
1762
|
+
groupKey?: string | number | symbol | undefined;
|
|
1763
|
+
show?: boolean | undefined;
|
|
1764
|
+
} | undefined;
|
|
1728
1765
|
} | undefined;
|
|
1729
1766
|
rules?: any[] | boolean | undefined;
|
|
1730
1767
|
text?: {
|
|
@@ -1752,11 +1789,17 @@ export declare const curdConf: (props: {
|
|
|
1752
1789
|
list: any[];
|
|
1753
1790
|
};
|
|
1754
1791
|
};
|
|
1792
|
+
header: {
|
|
1793
|
+
group: {
|
|
1794
|
+
expand: boolean;
|
|
1795
|
+
toggleExpandAll: () => void;
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1755
1798
|
getList: () => Promise<void>;
|
|
1756
1799
|
selection: {
|
|
1757
1800
|
list: any[];
|
|
1758
1801
|
change: (selection: any[]) => void;
|
|
1759
|
-
setList: (list: any[]) => void;
|
|
1802
|
+
setList: (list: any[], callback?: (item: any) => any) => void;
|
|
1760
1803
|
};
|
|
1761
1804
|
sort: {
|
|
1762
1805
|
prop: string;
|
|
@@ -1834,6 +1877,7 @@ export declare const curdConf: (props: {
|
|
|
1834
1877
|
} | undefined;
|
|
1835
1878
|
input?: {
|
|
1836
1879
|
[x: string]: any;
|
|
1880
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1837
1881
|
on?: any;
|
|
1838
1882
|
} | undefined;
|
|
1839
1883
|
switch?: {
|
|
@@ -1920,6 +1964,7 @@ export declare const curdConf: (props: {
|
|
|
1920
1964
|
} | undefined;
|
|
1921
1965
|
input?: {
|
|
1922
1966
|
[x: string]: any;
|
|
1967
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1923
1968
|
on?: any;
|
|
1924
1969
|
} | undefined;
|
|
1925
1970
|
switch?: {
|
|
@@ -2006,6 +2051,7 @@ export declare const curdConf: (props: {
|
|
|
2006
2051
|
} | undefined;
|
|
2007
2052
|
input?: {
|
|
2008
2053
|
[x: string]: any;
|
|
2054
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
2009
2055
|
on?: any;
|
|
2010
2056
|
} | undefined;
|
|
2011
2057
|
switch?: {
|
|
@@ -2076,6 +2122,7 @@ export declare const curdConf: (props: {
|
|
|
2076
2122
|
} | undefined;
|
|
2077
2123
|
input?: {
|
|
2078
2124
|
[x: string]: any;
|
|
2125
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
2079
2126
|
on?: any;
|
|
2080
2127
|
} | undefined;
|
|
2081
2128
|
switch?: {
|
|
@@ -2164,7 +2211,12 @@ export declare const curdConf: (props: {
|
|
|
2164
2211
|
callback?: ((data: any) => void) | undefined;
|
|
2165
2212
|
color?: string | undefined;
|
|
2166
2213
|
} | undefined;
|
|
2167
|
-
|
|
2214
|
+
header?: {
|
|
2215
|
+
tooltip?: string | undefined;
|
|
2216
|
+
group?: boolean | undefined;
|
|
2217
|
+
groupKey?: string | number | symbol | undefined;
|
|
2218
|
+
show?: boolean | undefined;
|
|
2219
|
+
} | undefined;
|
|
2168
2220
|
} | undefined;
|
|
2169
2221
|
rules?: any[] | boolean | undefined;
|
|
2170
2222
|
text?: {
|
|
@@ -2192,7 +2244,7 @@ export declare const curdConf: (props: {
|
|
|
2192
2244
|
}[][];
|
|
2193
2245
|
getDisabled: (item: CurdConfigColumn) => boolean | undefined;
|
|
2194
2246
|
getBind: (item: CurdConfigColumn) => any;
|
|
2195
|
-
getOn: (item: CurdConfigColumn) => any
|
|
2247
|
+
getOn: (item: CurdConfigColumn, row?: any) => Record<string, any>;
|
|
2196
2248
|
getOptions: <T = any>(key: string) => {
|
|
2197
2249
|
options: CurdConfigColumn<T>["options"];
|
|
2198
2250
|
bind: Omit<CurdConfigColumn<T>["options"], "formAdd" | "formUpdate">;
|