cc1-form 1.2.19 → 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 +276 -270
- 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 -27
- package/dist/components/TCurd/index.vue.d.ts +57 -59
- 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]: {
|
|
@@ -1855,7 +1855,6 @@ export declare const curdConf: (props: {
|
|
|
1855
1855
|
selection: {
|
|
1856
1856
|
list: any[];
|
|
1857
1857
|
change: (selection: any[]) => void;
|
|
1858
|
-
runFun: () => void;
|
|
1859
1858
|
setList: (list: any[], callback?: (item: any) => any) => void;
|
|
1860
1859
|
};
|
|
1861
1860
|
sort: {
|
|
@@ -1894,11 +1893,11 @@ export declare const curdConf: (props: {
|
|
|
1894
1893
|
value?: any;
|
|
1895
1894
|
children?: /*elided*/ any[] | undefined;
|
|
1896
1895
|
disabled?: {
|
|
1897
|
-
table?: boolean | undefined;
|
|
1898
|
-
create?: boolean | undefined;
|
|
1899
|
-
update?: boolean | undefined;
|
|
1900
|
-
search?: boolean | undefined;
|
|
1901
|
-
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;
|
|
1902
1901
|
} | undefined;
|
|
1903
1902
|
options?: {
|
|
1904
1903
|
[x: string]: {
|
|
@@ -2309,7 +2308,7 @@ export declare const curdConf: (props: {
|
|
|
2309
2308
|
span: number;
|
|
2310
2309
|
children?: /*elided*/ any[] | undefined;
|
|
2311
2310
|
}[][];
|
|
2312
|
-
getDisabled: (item: CurdConfigColumn, isTable?: boolean) =>
|
|
2311
|
+
getDisabled: (item: CurdConfigColumn, isTable?: boolean) => any;
|
|
2313
2312
|
getBind: (item: CurdConfigColumn) => any;
|
|
2314
2313
|
getOn: (item: CurdConfigColumn, row?: any) => Record<string, any>;
|
|
2315
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]: {
|
|
@@ -1860,7 +1860,6 @@ declare const conf: {
|
|
|
1860
1860
|
selection: {
|
|
1861
1861
|
list: any[];
|
|
1862
1862
|
change: (selection: any[]) => void;
|
|
1863
|
-
runFun: () => void;
|
|
1864
1863
|
setList: (list: any[], callback?: (item: any) => any) => void;
|
|
1865
1864
|
};
|
|
1866
1865
|
sort: {
|
|
@@ -1899,11 +1898,11 @@ declare const conf: {
|
|
|
1899
1898
|
value?: any;
|
|
1900
1899
|
children?: /*elided*/ any[] | undefined;
|
|
1901
1900
|
disabled?: {
|
|
1902
|
-
table?: boolean | undefined;
|
|
1903
|
-
create?: boolean | undefined;
|
|
1904
|
-
update?: boolean | undefined;
|
|
1905
|
-
search?: boolean | undefined;
|
|
1906
|
-
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;
|
|
1907
1906
|
} | undefined;
|
|
1908
1907
|
options?: {
|
|
1909
1908
|
[x: string]: {
|
|
@@ -2314,7 +2313,7 @@ declare const conf: {
|
|
|
2314
2313
|
span: number;
|
|
2315
2314
|
children?: /*elided*/ any[] | undefined;
|
|
2316
2315
|
}[][];
|
|
2317
|
-
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) =>
|
|
2316
|
+
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) => any;
|
|
2318
2317
|
getBind: (item: import("./indexType").CurdConfigColumn) => any;
|
|
2319
2318
|
getOn: (item: import("./indexType").CurdConfigColumn, row?: any) => Record<string, any>;
|
|
2320
2319
|
getOptions: <T = any>(key: string) => {
|
|
@@ -2380,11 +2379,11 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2380
2379
|
value?: any;
|
|
2381
2380
|
children?: /*elided*/ any[] | undefined;
|
|
2382
2381
|
disabled?: {
|
|
2383
|
-
table?: boolean | undefined;
|
|
2384
|
-
create?: boolean | undefined;
|
|
2385
|
-
update?: boolean | undefined;
|
|
2386
|
-
search?: boolean | undefined;
|
|
2387
|
-
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;
|
|
2388
2387
|
} | undefined;
|
|
2389
2388
|
options?: {
|
|
2390
2389
|
[x: string]: {
|
|
@@ -2984,11 +2983,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
2984
2983
|
value?: any;
|
|
2985
2984
|
children?: /*elided*/ any[] | undefined;
|
|
2986
2985
|
disabled?: {
|
|
2987
|
-
table?: boolean | undefined;
|
|
2988
|
-
create?: boolean | undefined;
|
|
2989
|
-
update?: boolean | undefined;
|
|
2990
|
-
search?: boolean | undefined;
|
|
2991
|
-
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;
|
|
2992
2991
|
} | undefined;
|
|
2993
2992
|
options?: {
|
|
2994
2993
|
[x: string]: {
|
|
@@ -3459,11 +3458,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3459
3458
|
value?: any;
|
|
3460
3459
|
children?: /*elided*/ any[] | undefined;
|
|
3461
3460
|
disabled?: {
|
|
3462
|
-
table?: boolean | undefined;
|
|
3463
|
-
create?: boolean | undefined;
|
|
3464
|
-
update?: boolean | undefined;
|
|
3465
|
-
search?: boolean | undefined;
|
|
3466
|
-
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;
|
|
3467
3466
|
} | undefined;
|
|
3468
3467
|
options?: {
|
|
3469
3468
|
[x: string]: {
|
|
@@ -3889,11 +3888,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3889
3888
|
value?: any;
|
|
3890
3889
|
children?: /*elided*/ any[] | undefined;
|
|
3891
3890
|
disabled?: {
|
|
3892
|
-
table?: boolean | undefined;
|
|
3893
|
-
create?: boolean | undefined;
|
|
3894
|
-
update?: boolean | undefined;
|
|
3895
|
-
search?: boolean | undefined;
|
|
3896
|
-
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;
|
|
3897
3896
|
} | undefined;
|
|
3898
3897
|
options?: {
|
|
3899
3898
|
[x: string]: {
|
|
@@ -4341,11 +4340,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4341
4340
|
value?: any;
|
|
4342
4341
|
children?: /*elided*/ any[] | undefined;
|
|
4343
4342
|
disabled?: {
|
|
4344
|
-
table?: boolean | undefined;
|
|
4345
|
-
create?: boolean | undefined;
|
|
4346
|
-
update?: boolean | undefined;
|
|
4347
|
-
search?: boolean | undefined;
|
|
4348
|
-
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;
|
|
4349
4348
|
} | undefined;
|
|
4350
4349
|
options?: {
|
|
4351
4350
|
[x: string]: {
|
|
@@ -4768,7 +4767,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4768
4767
|
selection: {
|
|
4769
4768
|
list: any[];
|
|
4770
4769
|
change: (selection: any[]) => void;
|
|
4771
|
-
runFun: () => void;
|
|
4772
4770
|
setList: (list: any[], callback?: (item: any) => any) => void;
|
|
4773
4771
|
};
|
|
4774
4772
|
sort: {
|
|
@@ -4807,11 +4805,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4807
4805
|
value?: any;
|
|
4808
4806
|
children?: /*elided*/ any[] | undefined;
|
|
4809
4807
|
disabled?: {
|
|
4810
|
-
table?: boolean | undefined;
|
|
4811
|
-
create?: boolean | undefined;
|
|
4812
|
-
update?: boolean | undefined;
|
|
4813
|
-
search?: boolean | undefined;
|
|
4814
|
-
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;
|
|
4815
4813
|
} | undefined;
|
|
4816
4814
|
options?: {
|
|
4817
4815
|
[x: string]: {
|
|
@@ -5222,7 +5220,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
5222
5220
|
span: number;
|
|
5223
5221
|
children?: /*elided*/ any[] | undefined;
|
|
5224
5222
|
}[][];
|
|
5225
|
-
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) =>
|
|
5223
|
+
getDisabled: (item: import("./indexType").CurdConfigColumn, isTable?: boolean) => any;
|
|
5226
5224
|
getBind: (item: import("./indexType").CurdConfigColumn) => any;
|
|
5227
5225
|
getOn: (item: import("./indexType").CurdConfigColumn, row?: any) => Record<string, any>;
|
|
5228
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
|
* 配置管理
|