cc1-form 1.2.4 → 1.2.6
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 +1162 -1107
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +7 -0
- package/dist/components/TCurd/formColumn.vue.d.ts +5 -0
- package/dist/components/TCurd/index.d.ts +9 -1
- package/dist/components/TCurd/index.vue.d.ts +32 -16
- package/dist/components/TCurd/indexType.d.ts +6 -0
- package/dist/components/TCurd/tableColumn.vue.d.ts +2 -2
- package/package.json +1 -1
|
@@ -46,6 +46,7 @@ declare const conf: {
|
|
|
46
46
|
} | undefined;
|
|
47
47
|
} | undefined;
|
|
48
48
|
table?: {
|
|
49
|
+
editMode?: boolean | undefined;
|
|
49
50
|
rowKey?: string | undefined;
|
|
50
51
|
border?: boolean | undefined;
|
|
51
52
|
selectable?: boolean | ((data: any) => boolean) | {
|
|
@@ -59,6 +60,7 @@ declare const conf: {
|
|
|
59
60
|
value?: any;
|
|
60
61
|
children?: /*elided*/ any[] | undefined;
|
|
61
62
|
disabled?: {
|
|
63
|
+
table?: boolean | undefined;
|
|
62
64
|
create?: boolean | undefined;
|
|
63
65
|
update?: boolean | undefined;
|
|
64
66
|
search?: boolean | undefined;
|
|
@@ -512,6 +514,7 @@ declare const conf: {
|
|
|
512
514
|
value?: any;
|
|
513
515
|
children?: /*elided*/ any[] | undefined;
|
|
514
516
|
disabled?: {
|
|
517
|
+
table?: boolean | undefined;
|
|
515
518
|
create?: boolean | undefined;
|
|
516
519
|
update?: boolean | undefined;
|
|
517
520
|
search?: boolean | undefined;
|
|
@@ -922,6 +925,7 @@ declare const conf: {
|
|
|
922
925
|
value?: any;
|
|
923
926
|
children?: /*elided*/ any[] | undefined;
|
|
924
927
|
disabled?: {
|
|
928
|
+
table?: boolean | undefined;
|
|
925
929
|
create?: boolean | undefined;
|
|
926
930
|
update?: boolean | undefined;
|
|
927
931
|
search?: boolean | undefined;
|
|
@@ -1354,6 +1358,7 @@ declare const conf: {
|
|
|
1354
1358
|
value?: any;
|
|
1355
1359
|
children?: /*elided*/ any[] | undefined;
|
|
1356
1360
|
disabled?: {
|
|
1361
|
+
table?: boolean | undefined;
|
|
1357
1362
|
create?: boolean | undefined;
|
|
1358
1363
|
update?: boolean | undefined;
|
|
1359
1364
|
search?: boolean | undefined;
|
|
@@ -1755,6 +1760,7 @@ declare const conf: {
|
|
|
1755
1760
|
selection: {
|
|
1756
1761
|
list: any[];
|
|
1757
1762
|
change: (selection: any[]) => void;
|
|
1763
|
+
setList: (list: any[]) => void;
|
|
1758
1764
|
};
|
|
1759
1765
|
sort: {
|
|
1760
1766
|
prop: string;
|
|
@@ -1792,6 +1798,7 @@ declare const conf: {
|
|
|
1792
1798
|
value?: any;
|
|
1793
1799
|
children?: /*elided*/ any[] | undefined;
|
|
1794
1800
|
disabled?: {
|
|
1801
|
+
table?: boolean | undefined;
|
|
1795
1802
|
create?: boolean | undefined;
|
|
1796
1803
|
update?: boolean | undefined;
|
|
1797
1804
|
search?: boolean | undefined;
|
|
@@ -2219,7 +2226,7 @@ declare const conf: {
|
|
|
2219
2226
|
initColumnOptions: () => void;
|
|
2220
2227
|
getColumnSpan: (column: import("./indexType").CurdFormColumn, itemConfig: import("./indexType").CurdFormColumn[]) => number | undefined;
|
|
2221
2228
|
initColumnForm: () => void;
|
|
2222
|
-
}, switchConfirmRef: import("vue").Ref<any, any>, ruleFormRef: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
|
|
2229
|
+
}, switchConfirmRef: import("vue").Ref<any, any>, ruleFormRef: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>, tableRef: import("vue").Ref<import("element-plus").TableInstance | undefined, import("element-plus").TableInstance | undefined>;
|
|
2223
2230
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
2224
2231
|
declare var __VLS_1: {}, __VLS_7: {
|
|
2225
2232
|
row: Record<string, any>;
|
|
@@ -2231,15 +2238,15 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2231
2238
|
row: Record<string, any>;
|
|
2232
2239
|
}, __VLS_75: {
|
|
2233
2240
|
row: Record<string, any>;
|
|
2234
|
-
}, __VLS_137: {}, __VLS_139: {},
|
|
2241
|
+
}, __VLS_137: {}, __VLS_139: {}, __VLS_173: string | number, __VLS_174: any, __VLS_180: {}, __VLS_186: {
|
|
2235
2242
|
row: any;
|
|
2236
|
-
},
|
|
2243
|
+
}, __VLS_204: {
|
|
2237
2244
|
row: any;
|
|
2238
|
-
},
|
|
2245
|
+
}, __VLS_238: {
|
|
2239
2246
|
row: any;
|
|
2240
|
-
},
|
|
2247
|
+
}, __VLS_249: {}, __VLS_261: {
|
|
2241
2248
|
row: any;
|
|
2242
|
-
},
|
|
2249
|
+
}, __VLS_267: string | number, __VLS_268: {
|
|
2243
2250
|
row: any;
|
|
2244
2251
|
item: {
|
|
2245
2252
|
key: string;
|
|
@@ -2247,6 +2254,7 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2247
2254
|
value?: any;
|
|
2248
2255
|
children?: /*elided*/ any[] | undefined;
|
|
2249
2256
|
disabled?: {
|
|
2257
|
+
table?: boolean | undefined;
|
|
2250
2258
|
create?: boolean | undefined;
|
|
2251
2259
|
update?: boolean | undefined;
|
|
2252
2260
|
search?: boolean | undefined;
|
|
@@ -2639,7 +2647,7 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2639
2647
|
form?: number | undefined;
|
|
2640
2648
|
} | undefined;
|
|
2641
2649
|
};
|
|
2642
|
-
},
|
|
2650
|
+
}, __VLS_270: {
|
|
2643
2651
|
row: any;
|
|
2644
2652
|
};
|
|
2645
2653
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -2647,9 +2655,9 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
2647
2655
|
} & {
|
|
2648
2656
|
[K in NonNullable<typeof __VLS_50>]?: (props: typeof __VLS_51) => any;
|
|
2649
2657
|
} & {
|
|
2650
|
-
[K in NonNullable<typeof
|
|
2658
|
+
[K in NonNullable<typeof __VLS_173>]?: (props: typeof __VLS_174) => any;
|
|
2651
2659
|
} & {
|
|
2652
|
-
[K in NonNullable<typeof
|
|
2660
|
+
[K in NonNullable<typeof __VLS_267>]?: (props: typeof __VLS_268) => any;
|
|
2653
2661
|
} & {
|
|
2654
2662
|
'box-left'?: (props: typeof __VLS_1) => any;
|
|
2655
2663
|
} & {
|
|
@@ -2663,19 +2671,19 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
2663
2671
|
} & {
|
|
2664
2672
|
'tools-right'?: (props: typeof __VLS_139) => any;
|
|
2665
2673
|
} & {
|
|
2666
|
-
'table-header-op'?: (props: typeof
|
|
2674
|
+
'table-header-op'?: (props: typeof __VLS_180) => any;
|
|
2667
2675
|
} & {
|
|
2668
|
-
'table-op-left'?: (props: typeof
|
|
2676
|
+
'table-op-left'?: (props: typeof __VLS_186) => any;
|
|
2669
2677
|
} & {
|
|
2670
|
-
'table-op-edit-right'?: (props: typeof
|
|
2678
|
+
'table-op-edit-right'?: (props: typeof __VLS_204) => any;
|
|
2671
2679
|
} & {
|
|
2672
|
-
'table-op-right'?: (props: typeof
|
|
2680
|
+
'table-op-right'?: (props: typeof __VLS_238) => any;
|
|
2673
2681
|
} & {
|
|
2674
|
-
'box-right'?: (props: typeof
|
|
2682
|
+
'box-right'?: (props: typeof __VLS_249) => any;
|
|
2675
2683
|
} & {
|
|
2676
|
-
'form-start'?: (props: typeof
|
|
2684
|
+
'form-start'?: (props: typeof __VLS_261) => any;
|
|
2677
2685
|
} & {
|
|
2678
|
-
'form-end'?: (props: typeof
|
|
2686
|
+
'form-end'?: (props: typeof __VLS_270) => any;
|
|
2679
2687
|
}>;
|
|
2680
2688
|
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2681
2689
|
/**
|
|
@@ -2710,6 +2718,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2710
2718
|
conf: typeof conf;
|
|
2711
2719
|
switchConfirmRef: typeof switchConfirmRef;
|
|
2712
2720
|
ruleFormRef: typeof ruleFormRef;
|
|
2721
|
+
tableRef: typeof tableRef;
|
|
2713
2722
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2714
2723
|
/**
|
|
2715
2724
|
* 配置
|
|
@@ -2760,6 +2769,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
2760
2769
|
} | undefined;
|
|
2761
2770
|
} | undefined;
|
|
2762
2771
|
table?: {
|
|
2772
|
+
editMode?: boolean | undefined;
|
|
2763
2773
|
rowKey?: string | undefined;
|
|
2764
2774
|
border?: boolean | undefined;
|
|
2765
2775
|
selectable?: boolean | ((data: any) => boolean) | {
|
|
@@ -2773,6 +2783,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
2773
2783
|
value?: any;
|
|
2774
2784
|
children?: /*elided*/ any[] | undefined;
|
|
2775
2785
|
disabled?: {
|
|
2786
|
+
table?: boolean | undefined;
|
|
2776
2787
|
create?: boolean | undefined;
|
|
2777
2788
|
update?: boolean | undefined;
|
|
2778
2789
|
search?: boolean | undefined;
|
|
@@ -3226,6 +3237,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3226
3237
|
value?: any;
|
|
3227
3238
|
children?: /*elided*/ any[] | undefined;
|
|
3228
3239
|
disabled?: {
|
|
3240
|
+
table?: boolean | undefined;
|
|
3229
3241
|
create?: boolean | undefined;
|
|
3230
3242
|
update?: boolean | undefined;
|
|
3231
3243
|
search?: boolean | undefined;
|
|
@@ -3636,6 +3648,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3636
3648
|
value?: any;
|
|
3637
3649
|
children?: /*elided*/ any[] | undefined;
|
|
3638
3650
|
disabled?: {
|
|
3651
|
+
table?: boolean | undefined;
|
|
3639
3652
|
create?: boolean | undefined;
|
|
3640
3653
|
update?: boolean | undefined;
|
|
3641
3654
|
search?: boolean | undefined;
|
|
@@ -4068,6 +4081,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4068
4081
|
value?: any;
|
|
4069
4082
|
children?: /*elided*/ any[] | undefined;
|
|
4070
4083
|
disabled?: {
|
|
4084
|
+
table?: boolean | undefined;
|
|
4071
4085
|
create?: boolean | undefined;
|
|
4072
4086
|
update?: boolean | undefined;
|
|
4073
4087
|
search?: boolean | undefined;
|
|
@@ -4469,6 +4483,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4469
4483
|
selection: {
|
|
4470
4484
|
list: any[];
|
|
4471
4485
|
change: (selection: any[]) => void;
|
|
4486
|
+
setList: (list: any[]) => void;
|
|
4472
4487
|
};
|
|
4473
4488
|
sort: {
|
|
4474
4489
|
prop: string;
|
|
@@ -4506,6 +4521,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4506
4521
|
value?: any;
|
|
4507
4522
|
children?: /*elided*/ any[] | undefined;
|
|
4508
4523
|
disabled?: {
|
|
4524
|
+
table?: boolean | undefined;
|
|
4509
4525
|
create?: boolean | undefined;
|
|
4510
4526
|
update?: boolean | undefined;
|
|
4511
4527
|
search?: boolean | undefined;
|
|
@@ -147,6 +147,8 @@ export interface CurdConfig<T = any> {
|
|
|
147
147
|
* 表格配置 - 更多配置:https://element-plus.org/zh-CN/component/table#table-%E5%B1%9E%E6%80%A7
|
|
148
148
|
*/
|
|
149
149
|
table?: Partial<{
|
|
150
|
+
/** 是否表格编辑模式 - 直接对table数据进行操作 不触发api 默认为false */
|
|
151
|
+
editMode: boolean;
|
|
150
152
|
/**
|
|
151
153
|
* 行键 默认_id
|
|
152
154
|
*/
|
|
@@ -406,6 +408,10 @@ export interface CurdConfigColumn<T = any> {
|
|
|
406
408
|
* 是否禁止操作
|
|
407
409
|
*/
|
|
408
410
|
disabled?: Partial<{
|
|
411
|
+
/**
|
|
412
|
+
* 是否表格编辑模式下禁用-默认不限制
|
|
413
|
+
*/
|
|
414
|
+
table: boolean;
|
|
409
415
|
/**
|
|
410
416
|
* 是否新增禁用-默认不限制
|
|
411
417
|
*/
|
|
@@ -14,7 +14,7 @@ declare const self: any;
|
|
|
14
14
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
15
|
declare var __VLS_6: string, __VLS_7: {
|
|
16
16
|
item: CurdConfigColumn<any>;
|
|
17
|
-
}, __VLS_21: string | number, __VLS_22: any,
|
|
17
|
+
}, __VLS_21: string | number, __VLS_22: any, __VLS_57: string, __VLS_58: {
|
|
18
18
|
row: any;
|
|
19
19
|
item: CurdConfigColumn<any>;
|
|
20
20
|
};
|
|
@@ -23,7 +23,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
23
23
|
} & {
|
|
24
24
|
[K in NonNullable<typeof __VLS_21>]?: (props: typeof __VLS_22) => any;
|
|
25
25
|
} & {
|
|
26
|
-
[K in NonNullable<typeof
|
|
26
|
+
[K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
|
|
27
27
|
}>;
|
|
28
28
|
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
29
29
|
questionFilled: typeof questionFilled;
|