cc1-form 1.2.6 → 1.2.8
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 +1156 -994
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +70 -7
- package/dist/components/TCurd/formColumn.vue.d.ts +50 -5
- package/dist/components/TCurd/icon/CirclePlusFilled.vue.d.ts +2 -0
- package/dist/components/TCurd/icon/Collapse.vue.d.ts +2 -0
- package/dist/components/TCurd/icon/Expand.vue.d.ts +2 -0
- package/dist/components/TCurd/icon/RemoveFilled.vue.d.ts +2 -0
- package/dist/components/TCurd/index.d.ts +59 -7
- package/dist/components/TCurd/index.vue.d.ts +147 -30
- package/dist/components/TCurd/indexType.d.ts +19 -2
- package/dist/components/TCurd/tableColumn.vue.d.ts +17 -3
- package/dist/utils/TFormConfig.d.ts +4 -0
- package/dist/utils/TFormI18n.d.ts +4 -0
- package/package.json +1 -1
|
@@ -230,6 +230,10 @@ export interface CurdConfig<T = any> {
|
|
|
230
230
|
* 是否显示搜索 默认显示
|
|
231
231
|
*/
|
|
232
232
|
search: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* 是否显示收起展开所有列控制 默认不显示
|
|
235
|
+
*/
|
|
236
|
+
expandColumn: boolean;
|
|
233
237
|
/**
|
|
234
238
|
* 是否显示重置 默认显示
|
|
235
239
|
*/
|
|
@@ -543,8 +547,17 @@ export interface CurdConfigColumn<T = any> {
|
|
|
543
547
|
*/
|
|
544
548
|
color?: string;
|
|
545
549
|
};
|
|
546
|
-
/**
|
|
547
|
-
|
|
550
|
+
/** 表头配置 */
|
|
551
|
+
header: Partial<{
|
|
552
|
+
/** 气泡提示内容,配置后显示问号提示 */
|
|
553
|
+
tooltip: string;
|
|
554
|
+
/** 主分组值 - 用于控制表头是否显示加减号 */
|
|
555
|
+
group: boolean;
|
|
556
|
+
/** 被控制显示的分组键值 - 用于主分组值修改时是否显示 */
|
|
557
|
+
groupKey: keyof T;
|
|
558
|
+
/** 是否显示 - 默认显示,如果有分组时会根据主分组值修改时是否显示 */
|
|
559
|
+
show: boolean;
|
|
560
|
+
}>;
|
|
548
561
|
}>;
|
|
549
562
|
/**
|
|
550
563
|
* 验证规则
|
|
@@ -650,6 +663,10 @@ export type CurdOptions<T = any> = {
|
|
|
650
663
|
*/
|
|
651
664
|
input?: Partial<{
|
|
652
665
|
[key: string]: any;
|
|
666
|
+
/**
|
|
667
|
+
* 前缀内容
|
|
668
|
+
*/
|
|
669
|
+
prepend: string | ((item: T) => string);
|
|
653
670
|
/**
|
|
654
671
|
* 事件 文档:https://element-plus.org/zh-CN/component/input#events
|
|
655
672
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { curdConf } from '.';
|
|
2
2
|
import type { CurdConfig, CurdConfigColumn } from './indexType';
|
|
3
3
|
import questionFilled from './icon/questionFilled.vue';
|
|
4
|
+
import CirclePlusFilled from './icon/CirclePlusFilled.vue';
|
|
5
|
+
import RemoveFilled from './icon/RemoveFilled.vue';
|
|
4
6
|
import { ElInput, ElOption, ElSelect, ElSwitch, ElTableColumn } from 'element-plus';
|
|
5
7
|
import TSys from '../../utils/TSys';
|
|
6
8
|
import TForm from '../../utils/TForm';
|
|
@@ -14,19 +16,31 @@ declare const self: any;
|
|
|
14
16
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
17
|
declare var __VLS_6: string, __VLS_7: {
|
|
16
18
|
item: CurdConfigColumn<any>;
|
|
17
|
-
},
|
|
19
|
+
}, __VLS_27: string | number, __VLS_28: any, __VLS_31: string, __VLS_32: {
|
|
20
|
+
row: any;
|
|
21
|
+
item: CurdConfigColumn<any>;
|
|
22
|
+
}, __VLS_51: string, __VLS_52: {
|
|
23
|
+
row: any;
|
|
24
|
+
item: CurdConfigColumn<any>;
|
|
25
|
+
}, __VLS_71: string, __VLS_72: {
|
|
18
26
|
row: any;
|
|
19
27
|
item: CurdConfigColumn<any>;
|
|
20
28
|
};
|
|
21
29
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
22
30
|
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
23
31
|
} & {
|
|
24
|
-
[K in NonNullable<typeof
|
|
32
|
+
[K in NonNullable<typeof __VLS_27>]?: (props: typeof __VLS_28) => any;
|
|
33
|
+
} & {
|
|
34
|
+
[K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any;
|
|
35
|
+
} & {
|
|
36
|
+
[K in NonNullable<typeof __VLS_51>]?: (props: typeof __VLS_52) => any;
|
|
25
37
|
} & {
|
|
26
|
-
[K in NonNullable<typeof
|
|
38
|
+
[K in NonNullable<typeof __VLS_71>]?: (props: typeof __VLS_72) => any;
|
|
27
39
|
}>;
|
|
28
40
|
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
29
41
|
questionFilled: typeof questionFilled;
|
|
42
|
+
CirclePlusFilled: typeof CirclePlusFilled;
|
|
43
|
+
RemoveFilled: typeof RemoveFilled;
|
|
30
44
|
ElInput: typeof ElInput;
|
|
31
45
|
ElOption: typeof ElOption;
|
|
32
46
|
ElSelect: typeof ElSelect;
|
|
@@ -32,6 +32,8 @@ declare const curdI18n: {
|
|
|
32
32
|
switchOff: string;
|
|
33
33
|
confirmModify: string;
|
|
34
34
|
confirmSwitchMessage: string;
|
|
35
|
+
mergeColumn: string;
|
|
36
|
+
expandColumn: string;
|
|
35
37
|
};
|
|
36
38
|
/**
|
|
37
39
|
* 国际化管理,所有 TCurd 组件内部的文案均通过此类获取
|
|
@@ -107,6 +109,8 @@ export default class TFormI18n {
|
|
|
107
109
|
switchOff: string;
|
|
108
110
|
confirmModify: string;
|
|
109
111
|
confirmSwitchMessage: string;
|
|
112
|
+
mergeColumn: string;
|
|
113
|
+
expandColumn: string;
|
|
110
114
|
};
|
|
111
115
|
}
|
|
112
116
|
export {};
|