cc1-form 1.2.12 → 1.2.14
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 +630 -611
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +7 -7
- package/dist/components/TCurd/com/form/text.vue.d.ts +6 -0
- package/dist/components/TCurd/formColumn.vue.d.ts +5 -5
- package/dist/components/TCurd/index.d.ts +14 -6
- package/dist/components/TCurd/index.vue.d.ts +31 -13
- package/dist/components/TCurd/indexType.d.ts +14 -2
- package/dist/utils/TFormI18n.d.ts +2 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import TSys from '../../utils/TSys';
|
|
|
4
4
|
import type { CurdConfig } from './indexType';
|
|
5
5
|
import SwitchConfirm from './com/dialog/switchConfirm.vue';
|
|
6
6
|
import IconRefresh from './icon/refresh.vue';
|
|
7
|
+
import FormText from './com/form/text.vue';
|
|
7
8
|
import { ElButton, ElDatePicker, ElDialog, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElInput, ElOption, ElPagination, ElSelect, ElTable, ElTableColumn, ElRadio, ElRadioGroup } from 'element-plus';
|
|
8
9
|
import TableColumn from './tableColumn.vue';
|
|
9
10
|
import FormColumn from './formColumn.vue';
|
|
@@ -24,7 +25,15 @@ declare const conf: {
|
|
|
24
25
|
form?: import("./indexType").CurdTableSize | undefined;
|
|
25
26
|
search?: import("./indexType").CurdTableSize | undefined;
|
|
26
27
|
} | undefined;
|
|
27
|
-
dialog?:
|
|
28
|
+
dialog?: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
width?: any;
|
|
32
|
+
delete?: {
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
content?: string | ((items: any[]) => any) | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
} | undefined;
|
|
28
37
|
search?: {
|
|
29
38
|
show?: boolean | undefined;
|
|
30
39
|
formDefault?: Partial<any> | undefined;
|
|
@@ -459,7 +468,7 @@ declare const conf: {
|
|
|
459
468
|
} | undefined;
|
|
460
469
|
} | undefined;
|
|
461
470
|
show?: {
|
|
462
|
-
table?: boolean | undefined;
|
|
471
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
463
472
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
464
473
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
465
474
|
} | undefined;
|
|
@@ -924,7 +933,7 @@ declare const conf: {
|
|
|
924
933
|
} | undefined;
|
|
925
934
|
} | undefined;
|
|
926
935
|
show?: {
|
|
927
|
-
table?: boolean | undefined;
|
|
936
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
928
937
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
929
938
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
930
939
|
} | undefined;
|
|
@@ -1344,7 +1353,7 @@ declare const conf: {
|
|
|
1344
1353
|
} | undefined;
|
|
1345
1354
|
} | undefined;
|
|
1346
1355
|
show?: {
|
|
1347
|
-
table?: boolean | undefined;
|
|
1356
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
1348
1357
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
1349
1358
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
1350
1359
|
} | undefined;
|
|
@@ -1786,7 +1795,7 @@ declare const conf: {
|
|
|
1786
1795
|
} | undefined;
|
|
1787
1796
|
} | undefined;
|
|
1788
1797
|
show?: {
|
|
1789
|
-
table?: boolean | undefined;
|
|
1798
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
1790
1799
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
1791
1800
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
1792
1801
|
} | undefined;
|
|
@@ -2241,7 +2250,7 @@ declare const conf: {
|
|
|
2241
2250
|
} | undefined;
|
|
2242
2251
|
} | undefined;
|
|
2243
2252
|
show?: {
|
|
2244
|
-
table?: boolean | undefined;
|
|
2253
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
2245
2254
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
2246
2255
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
2247
2256
|
} | undefined;
|
|
@@ -2712,7 +2721,7 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2712
2721
|
} | undefined;
|
|
2713
2722
|
} | undefined;
|
|
2714
2723
|
show?: {
|
|
2715
|
-
table?: boolean | undefined;
|
|
2724
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
2716
2725
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
2717
2726
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
2718
2727
|
} | undefined;
|
|
@@ -2778,6 +2787,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2778
2787
|
TFormI18n: typeof TFormI18n;
|
|
2779
2788
|
SwitchConfirm: typeof SwitchConfirm;
|
|
2780
2789
|
IconRefresh: typeof IconRefresh;
|
|
2790
|
+
FormText: typeof FormText;
|
|
2781
2791
|
ElButton: typeof ElButton;
|
|
2782
2792
|
ElDatePicker: typeof ElDatePicker;
|
|
2783
2793
|
ElDialog: typeof ElDialog;
|
|
@@ -2830,7 +2840,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
2830
2840
|
form?: import("./indexType").CurdTableSize | undefined;
|
|
2831
2841
|
search?: import("./indexType").CurdTableSize | undefined;
|
|
2832
2842
|
} | undefined;
|
|
2833
|
-
dialog?:
|
|
2843
|
+
dialog?: {
|
|
2844
|
+
[x: string]: any;
|
|
2845
|
+
title?: string | undefined;
|
|
2846
|
+
width?: any;
|
|
2847
|
+
delete?: {
|
|
2848
|
+
title?: string | undefined;
|
|
2849
|
+
content?: string | ((items: any[]) => any) | undefined;
|
|
2850
|
+
} | undefined;
|
|
2851
|
+
} | undefined;
|
|
2834
2852
|
search?: {
|
|
2835
2853
|
show?: boolean | undefined;
|
|
2836
2854
|
formDefault?: Partial<any> | undefined;
|
|
@@ -3265,7 +3283,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3265
3283
|
} | undefined;
|
|
3266
3284
|
} | undefined;
|
|
3267
3285
|
show?: {
|
|
3268
|
-
table?: boolean | undefined;
|
|
3286
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
3269
3287
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
3270
3288
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
3271
3289
|
} | undefined;
|
|
@@ -3730,7 +3748,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3730
3748
|
} | undefined;
|
|
3731
3749
|
} | undefined;
|
|
3732
3750
|
show?: {
|
|
3733
|
-
table?: boolean | undefined;
|
|
3751
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
3734
3752
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
3735
3753
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
3736
3754
|
} | undefined;
|
|
@@ -4150,7 +4168,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4150
4168
|
} | undefined;
|
|
4151
4169
|
} | undefined;
|
|
4152
4170
|
show?: {
|
|
4153
|
-
table?: boolean | undefined;
|
|
4171
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
4154
4172
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
4155
4173
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
4156
4174
|
} | undefined;
|
|
@@ -4592,7 +4610,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4592
4610
|
} | undefined;
|
|
4593
4611
|
} | undefined;
|
|
4594
4612
|
show?: {
|
|
4595
|
-
table?: boolean | undefined;
|
|
4613
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
4596
4614
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
4597
4615
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
4598
4616
|
} | undefined;
|
|
@@ -5047,7 +5065,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
5047
5065
|
} | undefined;
|
|
5048
5066
|
} | undefined;
|
|
5049
5067
|
show?: {
|
|
5050
|
-
table?: boolean | undefined;
|
|
5068
|
+
table?: boolean | ((data: any) => boolean) | undefined;
|
|
5051
5069
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
5052
5070
|
form?: boolean | ((data: any, type: keyof typeof TSys.EDialog) => boolean) | undefined;
|
|
5053
5071
|
} | undefined;
|
|
@@ -82,7 +82,19 @@ export interface CurdConfig<T = any> {
|
|
|
82
82
|
/**
|
|
83
83
|
* 弹窗配置
|
|
84
84
|
*/
|
|
85
|
-
dialog?:
|
|
85
|
+
dialog?: Partial<{
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
/** 弹窗标题 */
|
|
88
|
+
title: string;
|
|
89
|
+
/** 弹窗宽度 */
|
|
90
|
+
width: any;
|
|
91
|
+
delete: Partial<{
|
|
92
|
+
/** 删除弹窗标题 */
|
|
93
|
+
title: string;
|
|
94
|
+
/** 删除弹窗内容 */
|
|
95
|
+
content: string | ((items: any[]) => any);
|
|
96
|
+
}>;
|
|
97
|
+
}>;
|
|
86
98
|
/**
|
|
87
99
|
* 额外的搜索附加信息
|
|
88
100
|
*/
|
|
@@ -613,7 +625,7 @@ export interface CurdConfigColumn<T = any> {
|
|
|
613
625
|
/**
|
|
614
626
|
* 默认表格控制显示,默认为显示,传入false也可以通过列显示控制列表再次显示
|
|
615
627
|
*/
|
|
616
|
-
table?: boolean;
|
|
628
|
+
table?: ((data: T) => boolean) | boolean;
|
|
617
629
|
/**
|
|
618
630
|
* 搜索控制
|
|
619
631
|
*/
|
|
@@ -19,6 +19,7 @@ declare const curdI18n: {
|
|
|
19
19
|
cancel: string;
|
|
20
20
|
submit: string;
|
|
21
21
|
confirm: string;
|
|
22
|
+
deleteTitle: string;
|
|
22
23
|
confirmDelete: string;
|
|
23
24
|
confirmDeleteMessage: string;
|
|
24
25
|
placeholderInput: string;
|
|
@@ -96,6 +97,7 @@ export default class TFormI18n {
|
|
|
96
97
|
cancel: string;
|
|
97
98
|
submit: string;
|
|
98
99
|
confirm: string;
|
|
100
|
+
deleteTitle: string;
|
|
99
101
|
confirmDelete: string;
|
|
100
102
|
confirmDeleteMessage: string;
|
|
101
103
|
placeholderInput: string;
|