cc1-form 1.4.2 → 1.4.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.
- package/dist/cc1-form.js +1024 -1033
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +16 -0
- package/dist/components/TCurd/core/table.d.ts +3 -2
- package/dist/components/TCurd/index.d.ts +28 -2
- package/dist/components/TCurd/index.vue.d.ts +98 -22
- package/dist/components/TCurd/indexType.d.ts +4 -0
- package/dist/utils/TFormConfig.d.ts +1 -0
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ export declare const createTableModule: (_getConf: CurdConfGetter, props: CurdPr
|
|
|
39
39
|
page: boolean;
|
|
40
40
|
scroll: boolean;
|
|
41
41
|
field: string;
|
|
42
|
+
order: "asc" | "desc";
|
|
42
43
|
onEnd: (data: any[]) => any;
|
|
43
44
|
rule: "index" | "value";
|
|
44
45
|
api: Partial<{
|
|
@@ -75,6 +76,7 @@ export declare const createTableModule: (_getConf: CurdConfGetter, props: CurdPr
|
|
|
75
76
|
page: boolean;
|
|
76
77
|
scroll: boolean;
|
|
77
78
|
field: string;
|
|
79
|
+
order: "asc" | "desc";
|
|
78
80
|
onEnd: (data: any[]) => any;
|
|
79
81
|
rule: "index" | "value";
|
|
80
82
|
api: Partial<{
|
|
@@ -112,7 +114,7 @@ export declare const createTableModule: (_getConf: CurdConfGetter, props: CurdPr
|
|
|
112
114
|
destroy: () => void;
|
|
113
115
|
getBody: () => HTMLElement | null;
|
|
114
116
|
loadModule: () => Promise<any>;
|
|
115
|
-
applyRule: (data: any[], field: string, rule: "index" | "value", values: any[]) => void;
|
|
117
|
+
applyRule: (data: any[], field: string, rule: "index" | "value", values: any[], order?: "asc" | "desc") => void;
|
|
116
118
|
sync: () => Promise<void>;
|
|
117
119
|
refreshList: () => Promise<void>;
|
|
118
120
|
/** 临时保存fitHeight,用于排序时临时关闭 */
|
|
@@ -120,7 +122,6 @@ export declare const createTableModule: (_getConf: CurdConfGetter, props: CurdPr
|
|
|
120
122
|
start: () => Promise<void>;
|
|
121
123
|
exit: () => Promise<void>;
|
|
122
124
|
save: () => Promise<void>;
|
|
123
|
-
command: (command: "save" | "exit") => Promise<void>;
|
|
124
125
|
};
|
|
125
126
|
header: {
|
|
126
127
|
group: {
|
|
@@ -90,6 +90,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
90
90
|
change?: boolean | undefined;
|
|
91
91
|
confirm?: boolean | undefined;
|
|
92
92
|
loadList?: boolean | undefined;
|
|
93
|
+
needTip?: boolean | undefined;
|
|
93
94
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
94
95
|
} | undefined;
|
|
95
96
|
} | undefined;
|
|
@@ -178,6 +179,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
178
179
|
change?: boolean | undefined;
|
|
179
180
|
confirm?: boolean | undefined;
|
|
180
181
|
loadList?: boolean | undefined;
|
|
182
|
+
needTip?: boolean | undefined;
|
|
181
183
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
182
184
|
} | undefined;
|
|
183
185
|
} | undefined;
|
|
@@ -266,6 +268,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
266
268
|
change?: boolean | undefined;
|
|
267
269
|
confirm?: boolean | undefined;
|
|
268
270
|
loadList?: boolean | undefined;
|
|
271
|
+
needTip?: boolean | undefined;
|
|
269
272
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
270
273
|
} | undefined;
|
|
271
274
|
} | undefined;
|
|
@@ -338,6 +341,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
338
341
|
change?: boolean | undefined;
|
|
339
342
|
confirm?: boolean | undefined;
|
|
340
343
|
loadList?: boolean | undefined;
|
|
344
|
+
needTip?: boolean | undefined;
|
|
341
345
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
342
346
|
} | undefined;
|
|
343
347
|
} | undefined;
|
|
@@ -518,6 +522,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
518
522
|
change?: boolean | undefined;
|
|
519
523
|
confirm?: boolean | undefined;
|
|
520
524
|
loadList?: boolean | undefined;
|
|
525
|
+
needTip?: boolean | undefined;
|
|
521
526
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
522
527
|
} | undefined;
|
|
523
528
|
} | undefined;
|
|
@@ -606,6 +611,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
606
611
|
change?: boolean | undefined;
|
|
607
612
|
confirm?: boolean | undefined;
|
|
608
613
|
loadList?: boolean | undefined;
|
|
614
|
+
needTip?: boolean | undefined;
|
|
609
615
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
610
616
|
} | undefined;
|
|
611
617
|
} | undefined;
|
|
@@ -694,6 +700,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
694
700
|
change?: boolean | undefined;
|
|
695
701
|
confirm?: boolean | undefined;
|
|
696
702
|
loadList?: boolean | undefined;
|
|
703
|
+
needTip?: boolean | undefined;
|
|
697
704
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
698
705
|
} | undefined;
|
|
699
706
|
} | undefined;
|
|
@@ -766,6 +773,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
766
773
|
change?: boolean | undefined;
|
|
767
774
|
confirm?: boolean | undefined;
|
|
768
775
|
loadList?: boolean | undefined;
|
|
776
|
+
needTip?: boolean | undefined;
|
|
769
777
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
770
778
|
} | undefined;
|
|
771
779
|
} | undefined;
|
|
@@ -1001,6 +1009,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1001
1009
|
change?: boolean | undefined;
|
|
1002
1010
|
confirm?: boolean | undefined;
|
|
1003
1011
|
loadList?: boolean | undefined;
|
|
1012
|
+
needTip?: boolean | undefined;
|
|
1004
1013
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1005
1014
|
} | undefined;
|
|
1006
1015
|
} | undefined;
|
|
@@ -1089,6 +1098,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1089
1098
|
change?: boolean | undefined;
|
|
1090
1099
|
confirm?: boolean | undefined;
|
|
1091
1100
|
loadList?: boolean | undefined;
|
|
1101
|
+
needTip?: boolean | undefined;
|
|
1092
1102
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1093
1103
|
} | undefined;
|
|
1094
1104
|
} | undefined;
|
|
@@ -1177,6 +1187,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1177
1187
|
change?: boolean | undefined;
|
|
1178
1188
|
confirm?: boolean | undefined;
|
|
1179
1189
|
loadList?: boolean | undefined;
|
|
1190
|
+
needTip?: boolean | undefined;
|
|
1180
1191
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1181
1192
|
} | undefined;
|
|
1182
1193
|
} | undefined;
|
|
@@ -1249,6 +1260,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1249
1260
|
change?: boolean | undefined;
|
|
1250
1261
|
confirm?: boolean | undefined;
|
|
1251
1262
|
loadList?: boolean | undefined;
|
|
1263
|
+
needTip?: boolean | undefined;
|
|
1252
1264
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1253
1265
|
} | undefined;
|
|
1254
1266
|
} | undefined;
|
|
@@ -1388,6 +1400,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1388
1400
|
page: boolean;
|
|
1389
1401
|
scroll: boolean;
|
|
1390
1402
|
field: string;
|
|
1403
|
+
order: "asc" | "desc";
|
|
1391
1404
|
onEnd: (data: any[]) => any;
|
|
1392
1405
|
rule: "index" | "value";
|
|
1393
1406
|
api: Partial<{
|
|
@@ -1424,6 +1437,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1424
1437
|
page: boolean;
|
|
1425
1438
|
scroll: boolean;
|
|
1426
1439
|
field: string;
|
|
1440
|
+
order: "asc" | "desc";
|
|
1427
1441
|
onEnd: (data: any[]) => any;
|
|
1428
1442
|
rule: "index" | "value";
|
|
1429
1443
|
api: Partial<{
|
|
@@ -1461,14 +1475,13 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1461
1475
|
destroy: () => void;
|
|
1462
1476
|
getBody: () => HTMLElement | null;
|
|
1463
1477
|
loadModule: () => Promise<any>;
|
|
1464
|
-
applyRule: (data: any[], field: string, rule: "index" | "value", values: any[]) => void;
|
|
1478
|
+
applyRule: (data: any[], field: string, rule: "index" | "value", values: any[], order?: "asc" | "desc") => void;
|
|
1465
1479
|
sync: () => Promise<void>;
|
|
1466
1480
|
refreshList: () => Promise<void>;
|
|
1467
1481
|
fitHeight: boolean;
|
|
1468
1482
|
start: () => Promise<void>;
|
|
1469
1483
|
exit: () => Promise<void>;
|
|
1470
1484
|
save: () => Promise<void>;
|
|
1471
|
-
command: (command: "save" | "exit") => Promise<void>;
|
|
1472
1485
|
};
|
|
1473
1486
|
header: {
|
|
1474
1487
|
group: {
|
|
@@ -1577,6 +1590,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1577
1590
|
change?: boolean | undefined;
|
|
1578
1591
|
confirm?: boolean | undefined;
|
|
1579
1592
|
loadList?: boolean | undefined;
|
|
1593
|
+
needTip?: boolean | undefined;
|
|
1580
1594
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1581
1595
|
} | undefined;
|
|
1582
1596
|
} | undefined;
|
|
@@ -1665,6 +1679,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1665
1679
|
change?: boolean | undefined;
|
|
1666
1680
|
confirm?: boolean | undefined;
|
|
1667
1681
|
loadList?: boolean | undefined;
|
|
1682
|
+
needTip?: boolean | undefined;
|
|
1668
1683
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1669
1684
|
} | undefined;
|
|
1670
1685
|
} | undefined;
|
|
@@ -1753,6 +1768,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1753
1768
|
change?: boolean | undefined;
|
|
1754
1769
|
confirm?: boolean | undefined;
|
|
1755
1770
|
loadList?: boolean | undefined;
|
|
1771
|
+
needTip?: boolean | undefined;
|
|
1756
1772
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1757
1773
|
} | undefined;
|
|
1758
1774
|
} | undefined;
|
|
@@ -1825,6 +1841,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
1825
1841
|
change?: boolean | undefined;
|
|
1826
1842
|
confirm?: boolean | undefined;
|
|
1827
1843
|
loadList?: boolean | undefined;
|
|
1844
|
+
needTip?: boolean | undefined;
|
|
1828
1845
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
1829
1846
|
} | undefined;
|
|
1830
1847
|
} | undefined;
|
|
@@ -2002,6 +2019,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2002
2019
|
page?: boolean | undefined;
|
|
2003
2020
|
scroll?: boolean | undefined;
|
|
2004
2021
|
field?: string | undefined;
|
|
2022
|
+
order?: "asc" | "desc" | undefined;
|
|
2005
2023
|
onEnd?: ((data: any[]) => any) | undefined;
|
|
2006
2024
|
rule?: "index" | "value" | undefined;
|
|
2007
2025
|
api?: {
|
|
@@ -2076,6 +2094,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2076
2094
|
change?: boolean | undefined;
|
|
2077
2095
|
confirm?: boolean | undefined;
|
|
2078
2096
|
loadList?: boolean | undefined;
|
|
2097
|
+
needTip?: boolean | undefined;
|
|
2079
2098
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2080
2099
|
} | undefined;
|
|
2081
2100
|
} | undefined;
|
|
@@ -2164,6 +2183,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2164
2183
|
change?: boolean | undefined;
|
|
2165
2184
|
confirm?: boolean | undefined;
|
|
2166
2185
|
loadList?: boolean | undefined;
|
|
2186
|
+
needTip?: boolean | undefined;
|
|
2167
2187
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2168
2188
|
} | undefined;
|
|
2169
2189
|
} | undefined;
|
|
@@ -2252,6 +2272,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2252
2272
|
change?: boolean | undefined;
|
|
2253
2273
|
confirm?: boolean | undefined;
|
|
2254
2274
|
loadList?: boolean | undefined;
|
|
2275
|
+
needTip?: boolean | undefined;
|
|
2255
2276
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2256
2277
|
} | undefined;
|
|
2257
2278
|
} | undefined;
|
|
@@ -2324,6 +2345,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2324
2345
|
change?: boolean | undefined;
|
|
2325
2346
|
confirm?: boolean | undefined;
|
|
2326
2347
|
loadList?: boolean | undefined;
|
|
2348
|
+
needTip?: boolean | undefined;
|
|
2327
2349
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2328
2350
|
} | undefined;
|
|
2329
2351
|
} | undefined;
|
|
@@ -2555,6 +2577,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2555
2577
|
change?: boolean | undefined;
|
|
2556
2578
|
confirm?: boolean | undefined;
|
|
2557
2579
|
loadList?: boolean | undefined;
|
|
2580
|
+
needTip?: boolean | undefined;
|
|
2558
2581
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2559
2582
|
} | undefined;
|
|
2560
2583
|
} | undefined;
|
|
@@ -2643,6 +2666,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2643
2666
|
change?: boolean | undefined;
|
|
2644
2667
|
confirm?: boolean | undefined;
|
|
2645
2668
|
loadList?: boolean | undefined;
|
|
2669
|
+
needTip?: boolean | undefined;
|
|
2646
2670
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2647
2671
|
} | undefined;
|
|
2648
2672
|
} | undefined;
|
|
@@ -2731,6 +2755,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2731
2755
|
change?: boolean | undefined;
|
|
2732
2756
|
confirm?: boolean | undefined;
|
|
2733
2757
|
loadList?: boolean | undefined;
|
|
2758
|
+
needTip?: boolean | undefined;
|
|
2734
2759
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2735
2760
|
} | undefined;
|
|
2736
2761
|
} | undefined;
|
|
@@ -2803,6 +2828,7 @@ export declare const curdConf: (props: CurdProps) => {
|
|
|
2803
2828
|
change?: boolean | undefined;
|
|
2804
2829
|
confirm?: boolean | undefined;
|
|
2805
2830
|
loadList?: boolean | undefined;
|
|
2831
|
+
needTip?: boolean | undefined;
|
|
2806
2832
|
api?: ((data: any, type: "switch") => any) | undefined;
|
|
2807
2833
|
} | undefined;
|
|
2808
2834
|
} | undefined;
|