cc1-form 1.2.20 → 1.2.21
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 +436 -424
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +37 -37
- package/dist/components/TCurd/formColumn.vue.d.ts +25 -25
- package/dist/components/TCurd/index.d.ts +26 -26
- package/dist/components/TCurd/index.vue.d.ts +57 -57
- package/dist/components/TCurd/indexType.d.ts +5 -5
- package/package.json +1 -1
|
@@ -71,11 +71,11 @@ export declare const curdConf: (props: {
|
|
|
71
71
|
value?: any;
|
|
72
72
|
children?: /*elided*/ any[] | undefined;
|
|
73
73
|
disabled?: {
|
|
74
|
-
table?: boolean | undefined;
|
|
75
|
-
create?: boolean | undefined;
|
|
76
|
-
update?: boolean | undefined;
|
|
77
|
-
search?: boolean | undefined;
|
|
78
|
-
view?: boolean | undefined;
|
|
74
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
75
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
76
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
77
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
78
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
options?: {
|
|
81
81
|
[x: string]: {
|
|
@@ -546,11 +546,11 @@ export declare const curdConf: (props: {
|
|
|
546
546
|
value?: any;
|
|
547
547
|
children?: /*elided*/ any[] | undefined;
|
|
548
548
|
disabled?: {
|
|
549
|
-
table?: boolean | undefined;
|
|
550
|
-
create?: boolean | undefined;
|
|
551
|
-
update?: boolean | undefined;
|
|
552
|
-
search?: boolean | undefined;
|
|
553
|
-
view?: boolean | undefined;
|
|
549
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
550
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
551
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
552
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
553
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
options?: {
|
|
556
556
|
[x: string]: {
|
|
@@ -976,11 +976,11 @@ export declare const curdConf: (props: {
|
|
|
976
976
|
value?: any;
|
|
977
977
|
children?: /*elided*/ any[] | undefined;
|
|
978
978
|
disabled?: {
|
|
979
|
-
table?: boolean | undefined;
|
|
980
|
-
create?: boolean | undefined;
|
|
981
|
-
update?: boolean | undefined;
|
|
982
|
-
search?: boolean | undefined;
|
|
983
|
-
view?: boolean | undefined;
|
|
979
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
980
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
981
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
982
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
983
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
984
984
|
} | undefined;
|
|
985
985
|
options?: {
|
|
986
986
|
[x: string]: {
|
|
@@ -1428,11 +1428,11 @@ export declare const curdConf: (props: {
|
|
|
1428
1428
|
value?: any;
|
|
1429
1429
|
children?: /*elided*/ any[] | undefined;
|
|
1430
1430
|
disabled?: {
|
|
1431
|
-
table?: boolean | undefined;
|
|
1432
|
-
create?: boolean | undefined;
|
|
1433
|
-
update?: boolean | undefined;
|
|
1434
|
-
search?: boolean | undefined;
|
|
1435
|
-
view?: boolean | undefined;
|
|
1431
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
1432
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
1433
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
1434
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
1435
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
1436
1436
|
} | undefined;
|
|
1437
1437
|
options?: {
|
|
1438
1438
|
[x: string]: {
|
|
@@ -1893,11 +1893,11 @@ export declare const curdConf: (props: {
|
|
|
1893
1893
|
value?: any;
|
|
1894
1894
|
children?: /*elided*/ any[] | undefined;
|
|
1895
1895
|
disabled?: {
|
|
1896
|
-
table?: boolean | undefined;
|
|
1897
|
-
create?: boolean | undefined;
|
|
1898
|
-
update?: boolean | undefined;
|
|
1899
|
-
search?: boolean | undefined;
|
|
1900
|
-
view?: boolean | undefined;
|
|
1896
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
1897
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
1898
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
1899
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
1900
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
1901
1901
|
} | undefined;
|
|
1902
1902
|
options?: {
|
|
1903
1903
|
[x: string]: {
|
|
@@ -2308,7 +2308,7 @@ export declare const curdConf: (props: {
|
|
|
2308
2308
|
span: number;
|
|
2309
2309
|
children?: /*elided*/ any[] | undefined;
|
|
2310
2310
|
}[][];
|
|
2311
|
-
getDisabled: (item: CurdConfigColumn, isTable?: boolean) =>
|
|
2311
|
+
getDisabled: (item: CurdConfigColumn, isTable?: boolean) => any;
|
|
2312
2312
|
getBind: (item: CurdConfigColumn) => any;
|
|
2313
2313
|
getOn: (item: CurdConfigColumn, row?: any) => Record<string, any>;
|
|
2314
2314
|
getOptions: <T = any>(key: string) => {
|
|
@@ -76,11 +76,11 @@ declare const conf: {
|
|
|
76
76
|
value?: any;
|
|
77
77
|
children?: /*elided*/ any[] | undefined;
|
|
78
78
|
disabled?: {
|
|
79
|
-
table?: boolean | undefined;
|
|
80
|
-
create?: boolean | undefined;
|
|
81
|
-
update?: boolean | undefined;
|
|
82
|
-
search?: boolean | undefined;
|
|
83
|
-
view?: boolean | undefined;
|
|
79
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
80
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
81
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
82
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
83
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
84
84
|
} | undefined;
|
|
85
85
|
options?: {
|
|
86
86
|
[x: string]: {
|
|
@@ -551,11 +551,11 @@ declare const conf: {
|
|
|
551
551
|
value?: any;
|
|
552
552
|
children?: /*elided*/ any[] | undefined;
|
|
553
553
|
disabled?: {
|
|
554
|
-
table?: boolean | undefined;
|
|
555
|
-
create?: boolean | undefined;
|
|
556
|
-
update?: boolean | undefined;
|
|
557
|
-
search?: boolean | undefined;
|
|
558
|
-
view?: boolean | undefined;
|
|
554
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
555
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
556
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
557
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
558
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
559
559
|
} | undefined;
|
|
560
560
|
options?: {
|
|
561
561
|
[x: string]: {
|
|
@@ -981,11 +981,11 @@ declare const conf: {
|
|
|
981
981
|
value?: any;
|
|
982
982
|
children?: /*elided*/ any[] | undefined;
|
|
983
983
|
disabled?: {
|
|
984
|
-
table?: boolean | undefined;
|
|
985
|
-
create?: boolean | undefined;
|
|
986
|
-
update?: boolean | undefined;
|
|
987
|
-
search?: boolean | undefined;
|
|
988
|
-
view?: boolean | undefined;
|
|
984
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
985
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
986
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
987
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
988
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
989
989
|
} | undefined;
|
|
990
990
|
options?: {
|
|
991
991
|
[x: string]: {
|
|
@@ -1433,11 +1433,11 @@ declare const conf: {
|
|
|
1433
1433
|
value?: any;
|
|
1434
1434
|
children?: /*elided*/ any[] | undefined;
|
|
1435
1435
|
disabled?: {
|
|
1436
|
-
table?: boolean | undefined;
|
|
1437
|
-
create?: boolean | undefined;
|
|
1438
|
-
update?: boolean | undefined;
|
|
1439
|
-
search?: boolean | undefined;
|
|
1440
|
-
view?: boolean | undefined;
|
|
1436
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
1437
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
1438
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
1439
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
1440
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
1441
1441
|
} | undefined;
|
|
1442
1442
|
options?: {
|
|
1443
1443
|
[x: string]: {
|
|
@@ -1898,11 +1898,11 @@ declare const conf: {
|
|
|
1898
1898
|
value?: any;
|
|
1899
1899
|
children?: /*elided*/ any[] | undefined;
|
|
1900
1900
|
disabled?: {
|
|
1901
|
-
table?: boolean | undefined;
|
|
1902
|
-
create?: boolean | undefined;
|
|
1903
|
-
update?: boolean | undefined;
|
|
1904
|
-
search?: boolean | undefined;
|
|
1905
|
-
view?: boolean | undefined;
|
|
1901
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
1902
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
1903
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
1904
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
1905
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
1906
1906
|
} | undefined;
|
|
1907
1907
|
options?: {
|
|
1908
1908
|
[x: string]: {
|
|
@@ -2313,7 +2313,7 @@ declare const conf: {
|
|
|
2313
2313
|
span: number;
|
|
2314
2314
|
children?: /*elided*/ any[] | undefined;
|
|
2315
2315
|
}[][];
|
|
2316
|
-
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) =>
|
|
2316
|
+
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) => any;
|
|
2317
2317
|
getBind: (item: import("./indexType").CurdConfigColumn) => any;
|
|
2318
2318
|
getOn: (item: import("./indexType").CurdConfigColumn, row?: any) => Record<string, any>;
|
|
2319
2319
|
getOptions: <T = any>(key: string) => {
|
|
@@ -2379,11 +2379,11 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2379
2379
|
value?: any;
|
|
2380
2380
|
children?: /*elided*/ any[] | undefined;
|
|
2381
2381
|
disabled?: {
|
|
2382
|
-
table?: boolean | undefined;
|
|
2383
|
-
create?: boolean | undefined;
|
|
2384
|
-
update?: boolean | undefined;
|
|
2385
|
-
search?: boolean | undefined;
|
|
2386
|
-
view?: boolean | undefined;
|
|
2382
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
2383
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
2384
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
2385
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
2386
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
2387
2387
|
} | undefined;
|
|
2388
2388
|
options?: {
|
|
2389
2389
|
[x: string]: {
|
|
@@ -2983,11 +2983,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
2983
2983
|
value?: any;
|
|
2984
2984
|
children?: /*elided*/ any[] | undefined;
|
|
2985
2985
|
disabled?: {
|
|
2986
|
-
table?: boolean | undefined;
|
|
2987
|
-
create?: boolean | undefined;
|
|
2988
|
-
update?: boolean | undefined;
|
|
2989
|
-
search?: boolean | undefined;
|
|
2990
|
-
view?: boolean | undefined;
|
|
2986
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
2987
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
2988
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
2989
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
2990
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
2991
2991
|
} | undefined;
|
|
2992
2992
|
options?: {
|
|
2993
2993
|
[x: string]: {
|
|
@@ -3458,11 +3458,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3458
3458
|
value?: any;
|
|
3459
3459
|
children?: /*elided*/ any[] | undefined;
|
|
3460
3460
|
disabled?: {
|
|
3461
|
-
table?: boolean | undefined;
|
|
3462
|
-
create?: boolean | undefined;
|
|
3463
|
-
update?: boolean | undefined;
|
|
3464
|
-
search?: boolean | undefined;
|
|
3465
|
-
view?: boolean | undefined;
|
|
3461
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
3462
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
3463
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
3464
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
3465
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
3466
3466
|
} | undefined;
|
|
3467
3467
|
options?: {
|
|
3468
3468
|
[x: string]: {
|
|
@@ -3888,11 +3888,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3888
3888
|
value?: any;
|
|
3889
3889
|
children?: /*elided*/ any[] | undefined;
|
|
3890
3890
|
disabled?: {
|
|
3891
|
-
table?: boolean | undefined;
|
|
3892
|
-
create?: boolean | undefined;
|
|
3893
|
-
update?: boolean | undefined;
|
|
3894
|
-
search?: boolean | undefined;
|
|
3895
|
-
view?: boolean | undefined;
|
|
3891
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
3892
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
3893
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
3894
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
3895
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
3896
3896
|
} | undefined;
|
|
3897
3897
|
options?: {
|
|
3898
3898
|
[x: string]: {
|
|
@@ -4340,11 +4340,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4340
4340
|
value?: any;
|
|
4341
4341
|
children?: /*elided*/ any[] | undefined;
|
|
4342
4342
|
disabled?: {
|
|
4343
|
-
table?: boolean | undefined;
|
|
4344
|
-
create?: boolean | undefined;
|
|
4345
|
-
update?: boolean | undefined;
|
|
4346
|
-
search?: boolean | undefined;
|
|
4347
|
-
view?: boolean | undefined;
|
|
4343
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
4344
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
4345
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
4346
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
4347
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
4348
4348
|
} | undefined;
|
|
4349
4349
|
options?: {
|
|
4350
4350
|
[x: string]: {
|
|
@@ -4805,11 +4805,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4805
4805
|
value?: any;
|
|
4806
4806
|
children?: /*elided*/ any[] | undefined;
|
|
4807
4807
|
disabled?: {
|
|
4808
|
-
table?: boolean | undefined;
|
|
4809
|
-
create?: boolean | undefined;
|
|
4810
|
-
update?: boolean | undefined;
|
|
4811
|
-
search?: boolean | undefined;
|
|
4812
|
-
view?: boolean | undefined;
|
|
4808
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
4809
|
+
create?: boolean | ((data: any) => boolean) | undefined;
|
|
4810
|
+
update?: boolean | ((data: any) => boolean) | undefined;
|
|
4811
|
+
search?: boolean | ((data: any) => boolean) | undefined;
|
|
4812
|
+
view?: boolean | ((data: any) => boolean) | undefined;
|
|
4813
4813
|
} | undefined;
|
|
4814
4814
|
options?: {
|
|
4815
4815
|
[x: string]: {
|
|
@@ -5220,7 +5220,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
5220
5220
|
span: number;
|
|
5221
5221
|
children?: /*elided*/ any[] | undefined;
|
|
5222
5222
|
}[][];
|
|
5223
|
-
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) =>
|
|
5223
|
+
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) => any;
|
|
5224
5224
|
getBind: (item: import("./indexType").CurdConfigColumn) => any;
|
|
5225
5225
|
getOn: (item: import("./indexType").CurdConfigColumn, row?: any) => Record<string, any>;
|
|
5226
5226
|
getOptions: <T = any>(key: string) => {
|
|
@@ -442,23 +442,23 @@ export interface CurdConfigColumn<T = any> {
|
|
|
442
442
|
/**
|
|
443
443
|
* 是否表格编辑模式下禁用-默认不限制
|
|
444
444
|
*/
|
|
445
|
-
table: boolean;
|
|
445
|
+
table: boolean | ((data: T) => boolean);
|
|
446
446
|
/**
|
|
447
447
|
* 是否新增禁用-默认不限制
|
|
448
448
|
*/
|
|
449
|
-
create: boolean;
|
|
449
|
+
create: boolean | ((data: T) => boolean);
|
|
450
450
|
/**
|
|
451
451
|
* 是否编辑禁用-默认不限制
|
|
452
452
|
*/
|
|
453
|
-
update: boolean;
|
|
453
|
+
update: boolean | ((data: T) => boolean);
|
|
454
454
|
/**
|
|
455
455
|
* 是否搜索禁用-默认不限制
|
|
456
456
|
*/
|
|
457
|
-
search: boolean;
|
|
457
|
+
search: boolean | ((data: T) => boolean);
|
|
458
458
|
/**
|
|
459
459
|
* 是否查看禁用-默认禁止操作
|
|
460
460
|
*/
|
|
461
|
-
view: boolean;
|
|
461
|
+
view: boolean | ((data: T) => boolean);
|
|
462
462
|
}>;
|
|
463
463
|
/**
|
|
464
464
|
* 配置管理
|