cc1-form 1.2.5 → 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 +1402 -1165
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +77 -7
- package/dist/components/TCurd/formColumn.vue.d.ts +55 -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 +67 -7
- package/dist/components/TCurd/index.vue.d.ts +162 -29
- package/dist/components/TCurd/indexType.d.ts +25 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import TSys from '../../utils/TSys';
|
|
2
|
-
import { type FormInstance } from 'element-plus';
|
|
2
|
+
import { type FormInstance, type TableInstance } from 'element-plus';
|
|
3
3
|
import type { CurdConfig, CurdConfigColumn, CurdFormColumn } from './indexType';
|
|
4
4
|
declare const EDialog: {
|
|
5
5
|
Add: any;
|
|
@@ -42,6 +42,7 @@ export declare const curdConf: (props: {
|
|
|
42
42
|
} | undefined;
|
|
43
43
|
} | undefined;
|
|
44
44
|
table?: {
|
|
45
|
+
editMode?: boolean | undefined;
|
|
45
46
|
rowKey?: string | undefined;
|
|
46
47
|
border?: boolean | undefined;
|
|
47
48
|
selectable?: boolean | ((data: any) => boolean) | {
|
|
@@ -55,6 +56,7 @@ export declare const curdConf: (props: {
|
|
|
55
56
|
value?: any;
|
|
56
57
|
children?: /*elided*/ any[] | undefined;
|
|
57
58
|
disabled?: {
|
|
59
|
+
table?: boolean | undefined;
|
|
58
60
|
create?: boolean | undefined;
|
|
59
61
|
update?: boolean | undefined;
|
|
60
62
|
search?: boolean | undefined;
|
|
@@ -94,6 +96,7 @@ export declare const curdConf: (props: {
|
|
|
94
96
|
} | undefined;
|
|
95
97
|
input?: {
|
|
96
98
|
[x: string]: any;
|
|
99
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
97
100
|
on?: any;
|
|
98
101
|
} | undefined;
|
|
99
102
|
switch?: {
|
|
@@ -180,6 +183,7 @@ export declare const curdConf: (props: {
|
|
|
180
183
|
} | undefined;
|
|
181
184
|
input?: {
|
|
182
185
|
[x: string]: any;
|
|
186
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
183
187
|
on?: any;
|
|
184
188
|
} | undefined;
|
|
185
189
|
switch?: {
|
|
@@ -266,6 +270,7 @@ export declare const curdConf: (props: {
|
|
|
266
270
|
} | undefined;
|
|
267
271
|
input?: {
|
|
268
272
|
[x: string]: any;
|
|
273
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
269
274
|
on?: any;
|
|
270
275
|
} | undefined;
|
|
271
276
|
switch?: {
|
|
@@ -336,6 +341,7 @@ export declare const curdConf: (props: {
|
|
|
336
341
|
} | undefined;
|
|
337
342
|
input?: {
|
|
338
343
|
[x: string]: any;
|
|
344
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
339
345
|
on?: any;
|
|
340
346
|
} | undefined;
|
|
341
347
|
switch?: {
|
|
@@ -424,7 +430,12 @@ export declare const curdConf: (props: {
|
|
|
424
430
|
callback?: ((data: any) => void) | undefined;
|
|
425
431
|
color?: string | undefined;
|
|
426
432
|
} | undefined;
|
|
427
|
-
|
|
433
|
+
header?: {
|
|
434
|
+
tooltip?: string | undefined;
|
|
435
|
+
group?: boolean | undefined;
|
|
436
|
+
groupKey?: string | number | symbol | undefined;
|
|
437
|
+
show?: boolean | undefined;
|
|
438
|
+
} | undefined;
|
|
428
439
|
} | undefined;
|
|
429
440
|
rules?: any[] | boolean | undefined;
|
|
430
441
|
text?: {
|
|
@@ -469,6 +480,7 @@ export declare const curdConf: (props: {
|
|
|
469
480
|
refresh?: boolean | undefined;
|
|
470
481
|
expand?: boolean | undefined;
|
|
471
482
|
search?: boolean | undefined;
|
|
483
|
+
expandColumn?: boolean | undefined;
|
|
472
484
|
reset?: boolean | undefined;
|
|
473
485
|
add?: boolean | ((data: any) => boolean) | undefined;
|
|
474
486
|
delete?: boolean | ((data: any) => boolean) | undefined;
|
|
@@ -508,6 +520,7 @@ export declare const curdConf: (props: {
|
|
|
508
520
|
value?: any;
|
|
509
521
|
children?: /*elided*/ any[] | undefined;
|
|
510
522
|
disabled?: {
|
|
523
|
+
table?: boolean | undefined;
|
|
511
524
|
create?: boolean | undefined;
|
|
512
525
|
update?: boolean | undefined;
|
|
513
526
|
search?: boolean | undefined;
|
|
@@ -547,6 +560,7 @@ export declare const curdConf: (props: {
|
|
|
547
560
|
} | undefined;
|
|
548
561
|
input?: {
|
|
549
562
|
[x: string]: any;
|
|
563
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
550
564
|
on?: any;
|
|
551
565
|
} | undefined;
|
|
552
566
|
switch?: {
|
|
@@ -633,6 +647,7 @@ export declare const curdConf: (props: {
|
|
|
633
647
|
} | undefined;
|
|
634
648
|
input?: {
|
|
635
649
|
[x: string]: any;
|
|
650
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
636
651
|
on?: any;
|
|
637
652
|
} | undefined;
|
|
638
653
|
switch?: {
|
|
@@ -719,6 +734,7 @@ export declare const curdConf: (props: {
|
|
|
719
734
|
} | undefined;
|
|
720
735
|
input?: {
|
|
721
736
|
[x: string]: any;
|
|
737
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
722
738
|
on?: any;
|
|
723
739
|
} | undefined;
|
|
724
740
|
switch?: {
|
|
@@ -789,6 +805,7 @@ export declare const curdConf: (props: {
|
|
|
789
805
|
} | undefined;
|
|
790
806
|
input?: {
|
|
791
807
|
[x: string]: any;
|
|
808
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
792
809
|
on?: any;
|
|
793
810
|
} | undefined;
|
|
794
811
|
switch?: {
|
|
@@ -877,7 +894,12 @@ export declare const curdConf: (props: {
|
|
|
877
894
|
callback?: ((data: any) => void) | undefined;
|
|
878
895
|
color?: string | undefined;
|
|
879
896
|
} | undefined;
|
|
880
|
-
|
|
897
|
+
header?: {
|
|
898
|
+
tooltip?: string | undefined;
|
|
899
|
+
group?: boolean | undefined;
|
|
900
|
+
groupKey?: string | number | symbol | undefined;
|
|
901
|
+
show?: boolean | undefined;
|
|
902
|
+
} | undefined;
|
|
881
903
|
} | undefined;
|
|
882
904
|
rules?: any[] | boolean | undefined;
|
|
883
905
|
text?: {
|
|
@@ -918,6 +940,7 @@ export declare const curdConf: (props: {
|
|
|
918
940
|
value?: any;
|
|
919
941
|
children?: /*elided*/ any[] | undefined;
|
|
920
942
|
disabled?: {
|
|
943
|
+
table?: boolean | undefined;
|
|
921
944
|
create?: boolean | undefined;
|
|
922
945
|
update?: boolean | undefined;
|
|
923
946
|
search?: boolean | undefined;
|
|
@@ -957,6 +980,7 @@ export declare const curdConf: (props: {
|
|
|
957
980
|
} | undefined;
|
|
958
981
|
input?: {
|
|
959
982
|
[x: string]: any;
|
|
983
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
960
984
|
on?: any;
|
|
961
985
|
} | undefined;
|
|
962
986
|
switch?: {
|
|
@@ -1043,6 +1067,7 @@ export declare const curdConf: (props: {
|
|
|
1043
1067
|
} | undefined;
|
|
1044
1068
|
input?: {
|
|
1045
1069
|
[x: string]: any;
|
|
1070
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1046
1071
|
on?: any;
|
|
1047
1072
|
} | undefined;
|
|
1048
1073
|
switch?: {
|
|
@@ -1129,6 +1154,7 @@ export declare const curdConf: (props: {
|
|
|
1129
1154
|
} | undefined;
|
|
1130
1155
|
input?: {
|
|
1131
1156
|
[x: string]: any;
|
|
1157
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1132
1158
|
on?: any;
|
|
1133
1159
|
} | undefined;
|
|
1134
1160
|
switch?: {
|
|
@@ -1199,6 +1225,7 @@ export declare const curdConf: (props: {
|
|
|
1199
1225
|
} | undefined;
|
|
1200
1226
|
input?: {
|
|
1201
1227
|
[x: string]: any;
|
|
1228
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1202
1229
|
on?: any;
|
|
1203
1230
|
} | undefined;
|
|
1204
1231
|
switch?: {
|
|
@@ -1287,7 +1314,12 @@ export declare const curdConf: (props: {
|
|
|
1287
1314
|
callback?: ((data: any) => void) | undefined;
|
|
1288
1315
|
color?: string | undefined;
|
|
1289
1316
|
} | undefined;
|
|
1290
|
-
|
|
1317
|
+
header?: {
|
|
1318
|
+
tooltip?: string | undefined;
|
|
1319
|
+
group?: boolean | undefined;
|
|
1320
|
+
groupKey?: string | number | symbol | undefined;
|
|
1321
|
+
show?: boolean | undefined;
|
|
1322
|
+
} | undefined;
|
|
1291
1323
|
} | undefined;
|
|
1292
1324
|
rules?: any[] | boolean | undefined;
|
|
1293
1325
|
text?: {
|
|
@@ -1350,6 +1382,7 @@ export declare const curdConf: (props: {
|
|
|
1350
1382
|
value?: any;
|
|
1351
1383
|
children?: /*elided*/ any[] | undefined;
|
|
1352
1384
|
disabled?: {
|
|
1385
|
+
table?: boolean | undefined;
|
|
1353
1386
|
create?: boolean | undefined;
|
|
1354
1387
|
update?: boolean | undefined;
|
|
1355
1388
|
search?: boolean | undefined;
|
|
@@ -1389,6 +1422,7 @@ export declare const curdConf: (props: {
|
|
|
1389
1422
|
} | undefined;
|
|
1390
1423
|
input?: {
|
|
1391
1424
|
[x: string]: any;
|
|
1425
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1392
1426
|
on?: any;
|
|
1393
1427
|
} | undefined;
|
|
1394
1428
|
switch?: {
|
|
@@ -1475,6 +1509,7 @@ export declare const curdConf: (props: {
|
|
|
1475
1509
|
} | undefined;
|
|
1476
1510
|
input?: {
|
|
1477
1511
|
[x: string]: any;
|
|
1512
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1478
1513
|
on?: any;
|
|
1479
1514
|
} | undefined;
|
|
1480
1515
|
switch?: {
|
|
@@ -1561,6 +1596,7 @@ export declare const curdConf: (props: {
|
|
|
1561
1596
|
} | undefined;
|
|
1562
1597
|
input?: {
|
|
1563
1598
|
[x: string]: any;
|
|
1599
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1564
1600
|
on?: any;
|
|
1565
1601
|
} | undefined;
|
|
1566
1602
|
switch?: {
|
|
@@ -1631,6 +1667,7 @@ export declare const curdConf: (props: {
|
|
|
1631
1667
|
} | undefined;
|
|
1632
1668
|
input?: {
|
|
1633
1669
|
[x: string]: any;
|
|
1670
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1634
1671
|
on?: any;
|
|
1635
1672
|
} | undefined;
|
|
1636
1673
|
switch?: {
|
|
@@ -1719,7 +1756,12 @@ export declare const curdConf: (props: {
|
|
|
1719
1756
|
callback?: ((data: any) => void) | undefined;
|
|
1720
1757
|
color?: string | undefined;
|
|
1721
1758
|
} | undefined;
|
|
1722
|
-
|
|
1759
|
+
header?: {
|
|
1760
|
+
tooltip?: string | undefined;
|
|
1761
|
+
group?: boolean | undefined;
|
|
1762
|
+
groupKey?: string | number | symbol | undefined;
|
|
1763
|
+
show?: boolean | undefined;
|
|
1764
|
+
} | undefined;
|
|
1723
1765
|
} | undefined;
|
|
1724
1766
|
rules?: any[] | boolean | undefined;
|
|
1725
1767
|
text?: {
|
|
@@ -1747,10 +1789,17 @@ export declare const curdConf: (props: {
|
|
|
1747
1789
|
list: any[];
|
|
1748
1790
|
};
|
|
1749
1791
|
};
|
|
1792
|
+
header: {
|
|
1793
|
+
group: {
|
|
1794
|
+
expand: boolean;
|
|
1795
|
+
toggleExpandAll: () => void;
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1750
1798
|
getList: () => Promise<void>;
|
|
1751
1799
|
selection: {
|
|
1752
1800
|
list: any[];
|
|
1753
1801
|
change: (selection: any[]) => void;
|
|
1802
|
+
setList: (list: any[], callback?: (item: any) => any) => void;
|
|
1754
1803
|
};
|
|
1755
1804
|
sort: {
|
|
1756
1805
|
prop: string;
|
|
@@ -1788,6 +1837,7 @@ export declare const curdConf: (props: {
|
|
|
1788
1837
|
value?: any;
|
|
1789
1838
|
children?: /*elided*/ any[] | undefined;
|
|
1790
1839
|
disabled?: {
|
|
1840
|
+
table?: boolean | undefined;
|
|
1791
1841
|
create?: boolean | undefined;
|
|
1792
1842
|
update?: boolean | undefined;
|
|
1793
1843
|
search?: boolean | undefined;
|
|
@@ -1827,6 +1877,7 @@ export declare const curdConf: (props: {
|
|
|
1827
1877
|
} | undefined;
|
|
1828
1878
|
input?: {
|
|
1829
1879
|
[x: string]: any;
|
|
1880
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1830
1881
|
on?: any;
|
|
1831
1882
|
} | undefined;
|
|
1832
1883
|
switch?: {
|
|
@@ -1913,6 +1964,7 @@ export declare const curdConf: (props: {
|
|
|
1913
1964
|
} | undefined;
|
|
1914
1965
|
input?: {
|
|
1915
1966
|
[x: string]: any;
|
|
1967
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
1916
1968
|
on?: any;
|
|
1917
1969
|
} | undefined;
|
|
1918
1970
|
switch?: {
|
|
@@ -1999,6 +2051,7 @@ export declare const curdConf: (props: {
|
|
|
1999
2051
|
} | undefined;
|
|
2000
2052
|
input?: {
|
|
2001
2053
|
[x: string]: any;
|
|
2054
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
2002
2055
|
on?: any;
|
|
2003
2056
|
} | undefined;
|
|
2004
2057
|
switch?: {
|
|
@@ -2069,6 +2122,7 @@ export declare const curdConf: (props: {
|
|
|
2069
2122
|
} | undefined;
|
|
2070
2123
|
input?: {
|
|
2071
2124
|
[x: string]: any;
|
|
2125
|
+
prepend?: string | ((item: any) => string) | undefined;
|
|
2072
2126
|
on?: any;
|
|
2073
2127
|
} | undefined;
|
|
2074
2128
|
switch?: {
|
|
@@ -2157,7 +2211,12 @@ export declare const curdConf: (props: {
|
|
|
2157
2211
|
callback?: ((data: any) => void) | undefined;
|
|
2158
2212
|
color?: string | undefined;
|
|
2159
2213
|
} | undefined;
|
|
2160
|
-
|
|
2214
|
+
header?: {
|
|
2215
|
+
tooltip?: string | undefined;
|
|
2216
|
+
group?: boolean | undefined;
|
|
2217
|
+
groupKey?: string | number | symbol | undefined;
|
|
2218
|
+
show?: boolean | undefined;
|
|
2219
|
+
} | undefined;
|
|
2161
2220
|
} | undefined;
|
|
2162
2221
|
rules?: any[] | boolean | undefined;
|
|
2163
2222
|
text?: {
|
|
@@ -2185,7 +2244,7 @@ export declare const curdConf: (props: {
|
|
|
2185
2244
|
}[][];
|
|
2186
2245
|
getDisabled: (item: CurdConfigColumn) => boolean | undefined;
|
|
2187
2246
|
getBind: (item: CurdConfigColumn) => any;
|
|
2188
|
-
getOn: (item: CurdConfigColumn) => any
|
|
2247
|
+
getOn: (item: CurdConfigColumn, row?: any) => Record<string, any>;
|
|
2189
2248
|
getOptions: <T = any>(key: string) => {
|
|
2190
2249
|
options: CurdConfigColumn<T>["options"];
|
|
2191
2250
|
bind: Omit<CurdConfigColumn<T>["options"], "formAdd" | "formUpdate">;
|
|
@@ -2218,6 +2277,7 @@ export declare const curdConf: (props: {
|
|
|
2218
2277
|
};
|
|
2219
2278
|
switchConfirmRef: import("vue").Ref<any, any>;
|
|
2220
2279
|
ruleFormRef: import("vue").Ref<FormInstance | undefined, FormInstance | undefined>;
|
|
2280
|
+
tableRef: import("vue").Ref<TableInstance | undefined, TableInstance | undefined>;
|
|
2221
2281
|
};
|
|
2222
2282
|
export type curdConfType = ReturnType<typeof curdConf>;
|
|
2223
2283
|
export {};
|