zhytech-ui 1.0.1 → 1.0.4
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/src/components/drag/draggable/src/vuedraggable.d.ts +74 -0
- package/dist/src/components/dynamicFilter/index.vue.d.ts +134 -0
- package/dist/src/components/dynamicForm/components/advanced/groupLayout/index.d.ts +57 -0
- package/dist/src/components/dynamicForm/components/advanced/groupLayout/propsEditor.vue.d.ts +8 -0
- package/dist/src/components/dynamicForm/components/advanced/groupLayout/renderer.vue.d.ts +67 -0
- package/dist/src/components/dynamicForm/components/advanced/index.d.ts +4 -0
- package/dist/src/components/dynamicForm/components/advanced/upload/index.d.ts +62 -0
- package/dist/src/components/dynamicForm/components/advanced/upload/propsEditor.vue.d.ts +8 -0
- package/dist/src/components/dynamicForm/components/advanced/upload/renderer.vue.d.ts +79 -0
- package/dist/src/components/dynamicForm/components/advanced/uploadImage/index.d.ts +62 -0
- package/dist/src/components/dynamicForm/components/advanced/uploadImage/propsEditor.vue.d.ts +8 -0
- package/dist/src/components/dynamicForm/components/advanced/uploadImage/renderer.vue.d.ts +79 -0
- package/dist/src/components/dynamicForm/components/application/employee/index.d.ts +113 -0
- package/dist/src/components/dynamicForm/components/application/employee/propsEditor.vue.d.ts +13 -0
- package/dist/src/components/dynamicForm/components/application/employee/renderer.vue.d.ts +100 -0
- package/dist/src/components/dynamicForm/components/application/grade/hooks/useGrade.d.ts +8 -0
- package/dist/src/components/dynamicForm/components/application/grade/index.d.ts +92 -0
- package/dist/src/components/dynamicForm/components/application/grade/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/application/grade/renderer.vue.d.ts +98 -0
- package/dist/src/components/dynamicForm/components/application/index.d.ts +4 -0
- package/dist/src/components/dynamicForm/components/application/post/index.d.ts +93 -0
- package/dist/src/components/dynamicForm/components/application/post/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/application/post/renderer.vue.d.ts +100 -0
- package/dist/src/components/dynamicForm/components/base/checkbox/index.d.ts +103 -0
- package/dist/src/components/dynamicForm/components/base/checkbox/propsEditor.vue.d.ts +21 -0
- package/dist/src/components/dynamicForm/components/base/checkbox/renderer.vue.d.ts +98 -0
- package/dist/src/components/dynamicForm/components/base/index.d.ts +5 -0
- package/dist/src/components/dynamicForm/components/base/input/index.d.ts +107 -0
- package/dist/src/components/dynamicForm/components/base/input/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/base/input/renderer.vue.d.ts +113 -0
- package/dist/src/components/dynamicForm/components/base/label/index.d.ts +24 -0
- package/dist/src/components/dynamicForm/components/base/label/renderer.vue.d.ts +13 -0
- package/dist/src/components/dynamicForm/components/base/radio/index.d.ts +103 -0
- package/dist/src/components/dynamicForm/components/base/radio/propsEditor.vue.d.ts +21 -0
- package/dist/src/components/dynamicForm/components/base/radio/renderer.vue.d.ts +98 -0
- package/dist/src/components/dynamicForm/components/batchAddDialog.vue.d.ts +33 -0
- package/dist/src/components/dynamicForm/components/common/componentAdvancedPropsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/common/componentBasePropsEditor.vue.d.ts +21 -0
- package/dist/src/components/dynamicForm/components/common/componentDesigner.vue.d.ts +24 -0
- package/dist/src/components/dynamicForm/components/common/componentRenderer.vue.d.ts +53 -0
- package/dist/src/components/dynamicForm/components/common/conditionInput.vue.d.ts +112 -0
- package/dist/src/components/dynamicForm/components/common/dictionaryBinder.vue.d.ts +71 -0
- package/dist/src/components/dynamicForm/components/common/formPropsEditor.vue.d.ts +12 -0
- package/dist/src/components/dynamicForm/components/common/toolbar.vue.d.ts +60 -0
- package/dist/src/components/dynamicForm/components/componentType.d.ts +4 -0
- package/dist/src/components/dynamicForm/formDesigner.vue.d.ts +173 -0
- package/dist/src/components/dynamicForm/formRenderer.vue.d.ts +170 -0
- package/dist/src/components/dynamicForm/index.d.ts +8 -0
- package/dist/src/components/dynamicForm/types/batchAddComponentParam.d.ts +37 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/advanced/groupLayoutAttribute.d.ts +29 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.d.ts +25 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +29 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/application/gradeAttribute.d.ts +45 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/application/postAttribute.d.ts +29 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/base/checkboxAttribute.d.ts +21 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/base/inputAttribute.d.ts +21 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/base/radioAttribute.d.ts +13 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +73 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/editAttribute.d.ts +61 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/index.d.ts +11 -0
- package/dist/src/components/dynamicForm/types/documentView.d.ts +101 -0
- package/dist/src/components/dynamicForm/types/formAttribute.d.ts +84 -0
- package/dist/src/components/dynamicForm/types/uploadOption.d.ts +22 -0
- package/dist/src/index.d.ts +8 -0
- package/package.json +72 -58
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { dynamicFormData, formAttribute } from './types/formAttribute';
|
|
2
|
+
import { uploadOption } from './types/uploadOption';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* @description: 表单数据,包含表单属性,组件集合、初始数据
|
|
6
|
+
*/
|
|
7
|
+
formData: {
|
|
8
|
+
type: globalThis.PropType<dynamicFormData<formAttribute>>;
|
|
9
|
+
default: () => {
|
|
10
|
+
components: never[];
|
|
11
|
+
props: {
|
|
12
|
+
labelPosition: string;
|
|
13
|
+
labelWidth: number;
|
|
14
|
+
size: string;
|
|
15
|
+
column: number;
|
|
16
|
+
formType: string;
|
|
17
|
+
};
|
|
18
|
+
datas: {};
|
|
19
|
+
};
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @description: 文件上传配置参数
|
|
24
|
+
*/
|
|
25
|
+
uploadOptions: {
|
|
26
|
+
type: globalThis.PropType<uploadOption>;
|
|
27
|
+
default: () => uploadOption;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @description: 设备类型:pc、pad,mobile
|
|
31
|
+
*/
|
|
32
|
+
device: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @description: 监视标记
|
|
38
|
+
*/
|
|
39
|
+
watching: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 选择模式,批量添加项目时 启用
|
|
49
|
+
*/
|
|
50
|
+
selectMode: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 已选择组件集合,用于回显
|
|
56
|
+
*/
|
|
57
|
+
selectComponents: {
|
|
58
|
+
type: globalThis.PropType<Record<string, any>[]>;
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
/**
|
|
63
|
+
* @description: 获取表单数据
|
|
64
|
+
* @param callback
|
|
65
|
+
* @return
|
|
66
|
+
*/
|
|
67
|
+
getDatas: () => {
|
|
68
|
+
data: Record<string, any>[];
|
|
69
|
+
fileList: Record<string, any>[];
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* @description: 对整个表单的内容进行验证
|
|
73
|
+
* @param callback
|
|
74
|
+
* @return
|
|
75
|
+
*/
|
|
76
|
+
validate(callback?: Function): Promise<any>;
|
|
77
|
+
/**
|
|
78
|
+
* @description: 对该表单项进行重置,将其值重置为初始值并移除校验结果
|
|
79
|
+
*/
|
|
80
|
+
resetFields(): void;
|
|
81
|
+
/**
|
|
82
|
+
* @description: 清理某个字段的表单验证信息。
|
|
83
|
+
* @param prop
|
|
84
|
+
* @return
|
|
85
|
+
*/
|
|
86
|
+
clearValidate(prop: string): void;
|
|
87
|
+
/**
|
|
88
|
+
* @description: 滚动到指定的字段
|
|
89
|
+
* @param prop
|
|
90
|
+
* @return
|
|
91
|
+
*/
|
|
92
|
+
scrollToField(prop: string): void;
|
|
93
|
+
/**
|
|
94
|
+
* @description:显示/隐藏 项目说明/答案解析
|
|
95
|
+
*/
|
|
96
|
+
toggleDescription(): void;
|
|
97
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
+
select: (...args: any[]) => void;
|
|
99
|
+
change: (...args: any[]) => void;
|
|
100
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
101
|
+
/**
|
|
102
|
+
* @description: 表单数据,包含表单属性,组件集合、初始数据
|
|
103
|
+
*/
|
|
104
|
+
formData: {
|
|
105
|
+
type: globalThis.PropType<dynamicFormData<formAttribute>>;
|
|
106
|
+
default: () => {
|
|
107
|
+
components: never[];
|
|
108
|
+
props: {
|
|
109
|
+
labelPosition: string;
|
|
110
|
+
labelWidth: number;
|
|
111
|
+
size: string;
|
|
112
|
+
column: number;
|
|
113
|
+
formType: string;
|
|
114
|
+
};
|
|
115
|
+
datas: {};
|
|
116
|
+
};
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* @description: 文件上传配置参数
|
|
121
|
+
*/
|
|
122
|
+
uploadOptions: {
|
|
123
|
+
type: globalThis.PropType<uploadOption>;
|
|
124
|
+
default: () => uploadOption;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @description: 设备类型:pc、pad,mobile
|
|
128
|
+
*/
|
|
129
|
+
device: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @description: 监视标记
|
|
135
|
+
*/
|
|
136
|
+
watching: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
disabled: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* 选择模式,批量添加项目时 启用
|
|
146
|
+
*/
|
|
147
|
+
selectMode: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* 已选择组件集合,用于回显
|
|
153
|
+
*/
|
|
154
|
+
selectComponents: {
|
|
155
|
+
type: globalThis.PropType<Record<string, any>[]>;
|
|
156
|
+
default: () => never[];
|
|
157
|
+
};
|
|
158
|
+
}>> & {
|
|
159
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
formData: dynamicFormData<formAttribute>;
|
|
163
|
+
selectComponents: Record<string, any>[];
|
|
164
|
+
selectMode: boolean;
|
|
165
|
+
disabled: boolean;
|
|
166
|
+
uploadOptions: uploadOption;
|
|
167
|
+
device: string;
|
|
168
|
+
watching: boolean;
|
|
169
|
+
}, {}>;
|
|
170
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as formDesigner } from './formDesigner.vue';
|
|
2
|
+
import { default as formRenderer } from './formRenderer.vue';
|
|
3
|
+
import { batchAddComponentParam, GetFormTemplateMethod } from './types/batchAddComponentParam';
|
|
4
|
+
import { documentView } from './types/documentView';
|
|
5
|
+
import { dynamicFormData, formAttribute } from './types/formAttribute';
|
|
6
|
+
import { uploadOption } from './types/uploadOption';
|
|
7
|
+
export type { dynamicFormData, formAttribute, uploadOption, documentView, batchAddComponentParam, GetFormTemplateMethod };
|
|
8
|
+
export { formDesigner, formRenderer };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { dynamicFormData } from './formAttribute';
|
|
2
|
+
/**
|
|
3
|
+
* @description: 获取表单模板方法,需要返回一个Promise
|
|
4
|
+
* @param formID 表单ID
|
|
5
|
+
* @return
|
|
6
|
+
*/
|
|
7
|
+
export type GetFormTemplateMethod = (formID: string) => Promise<dynamicFormData<Record<string, any>>>;
|
|
8
|
+
/**
|
|
9
|
+
* @description: 表单列表类型
|
|
10
|
+
*/
|
|
11
|
+
export interface formListView {
|
|
12
|
+
/**
|
|
13
|
+
* 表单名称
|
|
14
|
+
*/
|
|
15
|
+
formName: string;
|
|
16
|
+
/**
|
|
17
|
+
* 表达ID
|
|
18
|
+
*/
|
|
19
|
+
formID: string;
|
|
20
|
+
/**
|
|
21
|
+
* 表单类型
|
|
22
|
+
*/
|
|
23
|
+
formType?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @description: 批量添加组件参数
|
|
27
|
+
*/
|
|
28
|
+
export interface batchAddComponentParam {
|
|
29
|
+
/**
|
|
30
|
+
* 上传文件api接口
|
|
31
|
+
*/
|
|
32
|
+
formList: formListView[];
|
|
33
|
+
/**
|
|
34
|
+
* 获取表单模板的方法
|
|
35
|
+
*/
|
|
36
|
+
getFormTemplateMethod: GetFormTemplateMethod;
|
|
37
|
+
}
|
package/dist/src/components/dynamicForm/types/componentAttribute/advanced/groupLayoutAttribute.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 分组面板(groupLayout)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface groupLayoutAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 背景色
|
|
7
|
+
*/
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示边框
|
|
11
|
+
*/
|
|
12
|
+
showBorder: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 边框样式
|
|
15
|
+
*/
|
|
16
|
+
borderStyle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 边框颜色
|
|
19
|
+
*/
|
|
20
|
+
borderWidth: number;
|
|
21
|
+
/**
|
|
22
|
+
* 边框颜色
|
|
23
|
+
*/
|
|
24
|
+
borderColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 边框圆角大小,0为直角
|
|
27
|
+
*/
|
|
28
|
+
borderRadius: number;
|
|
29
|
+
}
|
package/dist/src/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 文件、图片上传(upload、uploadImage)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface uploadAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* fileLimit是否可以多选
|
|
7
|
+
*/
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 文件数量限制
|
|
11
|
+
*/
|
|
12
|
+
fileLimit: number;
|
|
13
|
+
/**
|
|
14
|
+
* 文件类型
|
|
15
|
+
*/
|
|
16
|
+
fileType: string;
|
|
17
|
+
/**
|
|
18
|
+
* 文件大小限制
|
|
19
|
+
*/
|
|
20
|
+
fileSize: number;
|
|
21
|
+
/**
|
|
22
|
+
* 文件大小单位
|
|
23
|
+
*/
|
|
24
|
+
fileSizeUnit: string;
|
|
25
|
+
}
|
package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 人员(employee)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface employeeAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 显示类型
|
|
7
|
+
*/
|
|
8
|
+
type: "radio" | "checkbox" | "selector";
|
|
9
|
+
/**
|
|
10
|
+
* displayType!=selector时人员是否换行
|
|
11
|
+
*/
|
|
12
|
+
newLine: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* displayType=checkbox时最少选择个数
|
|
15
|
+
*/
|
|
16
|
+
min?: number;
|
|
17
|
+
/**
|
|
18
|
+
* displayType=checkbox时最多选择个数
|
|
19
|
+
*/
|
|
20
|
+
max?: number;
|
|
21
|
+
/**
|
|
22
|
+
* displayType=selector时是否可以多选
|
|
23
|
+
*/
|
|
24
|
+
multiple?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 人员列表
|
|
27
|
+
*/
|
|
28
|
+
options: Record<string, any>[];
|
|
29
|
+
}
|
package/dist/src/components/dynamicForm/types/componentAttribute/application/gradeAttribute.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 考评分数(grade)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface gradeAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 最大分数
|
|
7
|
+
*/
|
|
8
|
+
maxScore: number;
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示0分
|
|
11
|
+
*/
|
|
12
|
+
showZero: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 显示不考评项
|
|
15
|
+
*/
|
|
16
|
+
showNotGrade: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 分数是否换行
|
|
19
|
+
*/
|
|
20
|
+
newLine: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 是否显示问题
|
|
23
|
+
*/
|
|
24
|
+
showProblem: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 是否显示亮点
|
|
27
|
+
*/
|
|
28
|
+
showBrightSpot: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 分数倒序
|
|
31
|
+
*/
|
|
32
|
+
scoreReverseFlag: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 问题和亮点的选项
|
|
35
|
+
*/
|
|
36
|
+
remarkOptions?: Record<string, string>[];
|
|
37
|
+
/**
|
|
38
|
+
* 是否显示备注
|
|
39
|
+
*/
|
|
40
|
+
showRemark?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 是否显示单项否决选项
|
|
43
|
+
*/
|
|
44
|
+
showVeto?: boolean;
|
|
45
|
+
}
|
package/dist/src/components/dynamicForm/types/componentAttribute/application/postAttribute.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 岗位(post)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface postAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 显示类型
|
|
7
|
+
*/
|
|
8
|
+
type: "radio" | "checkbox" | "selector";
|
|
9
|
+
/**
|
|
10
|
+
* displayType!=selector时岗位是否换行
|
|
11
|
+
*/
|
|
12
|
+
newLine: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* displayType=checkbox时最少选择个数
|
|
15
|
+
*/
|
|
16
|
+
min?: number;
|
|
17
|
+
/**
|
|
18
|
+
* displayType=checkbox时最多选择个数
|
|
19
|
+
*/
|
|
20
|
+
max?: number;
|
|
21
|
+
/**
|
|
22
|
+
* displayType=selector时是否可以多选
|
|
23
|
+
*/
|
|
24
|
+
multiple?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 岗位列表
|
|
27
|
+
*/
|
|
28
|
+
options: Record<string, any>[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 多选框(checkbox)组件属性类型
|
|
3
|
+
*/
|
|
4
|
+
export interface checkboxAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 选项是否换行
|
|
7
|
+
*/
|
|
8
|
+
newLine: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 最少选几个
|
|
11
|
+
*/
|
|
12
|
+
min?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 最多选几个
|
|
15
|
+
*/
|
|
16
|
+
max?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 选项
|
|
19
|
+
*/
|
|
20
|
+
options: Record<string, any>[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 输入框组件(input)独有属性
|
|
3
|
+
*/
|
|
4
|
+
export interface inputAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 类型 文本:text、密码:password
|
|
7
|
+
*/
|
|
8
|
+
type: string;
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示密码
|
|
11
|
+
*/
|
|
12
|
+
showPassword: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 正则表达式
|
|
15
|
+
*/
|
|
16
|
+
pattern?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 正则验证提示信息
|
|
19
|
+
*/
|
|
20
|
+
patternMessage?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 组件基本属性类型
|
|
3
|
+
*/
|
|
4
|
+
export interface baseAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 是否显示标题
|
|
7
|
+
*/
|
|
8
|
+
showLabel: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 标题宽度
|
|
11
|
+
*/
|
|
12
|
+
labelWidth?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 标题
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* 字体大小
|
|
19
|
+
*/
|
|
20
|
+
fontSize: number;
|
|
21
|
+
/**
|
|
22
|
+
* 是否加粗
|
|
23
|
+
*/
|
|
24
|
+
isBold: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 文字颜色
|
|
27
|
+
*/
|
|
28
|
+
color: string;
|
|
29
|
+
/**
|
|
30
|
+
* 宽度
|
|
31
|
+
*/
|
|
32
|
+
width: number;
|
|
33
|
+
/**
|
|
34
|
+
* 标题换行
|
|
35
|
+
*/
|
|
36
|
+
labelNewLine: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 是否显示
|
|
39
|
+
*/
|
|
40
|
+
showFlag: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 显示条件
|
|
43
|
+
*/
|
|
44
|
+
showConditions?: Record<string, any>[];
|
|
45
|
+
/**
|
|
46
|
+
* 显示条件描述
|
|
47
|
+
*/
|
|
48
|
+
showConditionContent?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 显示条件表达式
|
|
51
|
+
*/
|
|
52
|
+
showConditionExpression?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 隐藏条件
|
|
55
|
+
*/
|
|
56
|
+
hiddenConditions?: Record<string, any>[];
|
|
57
|
+
/**
|
|
58
|
+
* 隐藏条件描述
|
|
59
|
+
*/
|
|
60
|
+
hiddenConditionContent?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 隐藏条件表达式
|
|
63
|
+
*/
|
|
64
|
+
hiddenConditionExpression?: string;
|
|
65
|
+
/**
|
|
66
|
+
* 左缩进
|
|
67
|
+
*/
|
|
68
|
+
paddingLeft?: number;
|
|
69
|
+
/**
|
|
70
|
+
* 项目说明/答案解析
|
|
71
|
+
*/
|
|
72
|
+
description?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 编辑类组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface editAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 输入框占位符
|
|
7
|
+
*/
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 是否可清空
|
|
11
|
+
*/
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 必填
|
|
15
|
+
*/
|
|
16
|
+
required?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 必填提示信息
|
|
19
|
+
*/
|
|
20
|
+
requiredMessage?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否禁用
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 禁用条件
|
|
27
|
+
*/
|
|
28
|
+
disabledConditions?: Record<string, any>[];
|
|
29
|
+
/**
|
|
30
|
+
* 禁用条件描述
|
|
31
|
+
*/
|
|
32
|
+
disabledConditionContent?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 禁用条件表达式
|
|
35
|
+
*/
|
|
36
|
+
disabledConditionExpression?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 是否只读
|
|
39
|
+
*/
|
|
40
|
+
readonly?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 只读条件
|
|
43
|
+
*/
|
|
44
|
+
readonlyConditions?: Record<string, any>[];
|
|
45
|
+
/**
|
|
46
|
+
* 只读条件描述
|
|
47
|
+
*/
|
|
48
|
+
readonlyConditionContent?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 只读条件表达式
|
|
51
|
+
*/
|
|
52
|
+
readonlyConditionExpression?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 默认值
|
|
55
|
+
*/
|
|
56
|
+
defaultValue?: any;
|
|
57
|
+
/**
|
|
58
|
+
* 是否参与统计
|
|
59
|
+
*/
|
|
60
|
+
statisticsFlag: boolean;
|
|
61
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { groupLayoutAttribute } from './advanced/groupLayoutAttribute';
|
|
2
|
+
import { uploadAttribute } from './advanced/uploadAttribute';
|
|
3
|
+
import { employeeAttribute } from './application/employeeAttribute';
|
|
4
|
+
import { gradeAttribute } from './application/gradeAttribute';
|
|
5
|
+
import { postAttribute } from './application/postAttribute';
|
|
6
|
+
import { checkboxAttribute } from './base/checkboxAttribute';
|
|
7
|
+
import { inputAttribute } from './base/inputAttribute';
|
|
8
|
+
import { radioAttribute } from './base/radioAttribute';
|
|
9
|
+
import { baseAttribute } from './baseAttribute';
|
|
10
|
+
import { editAttribute } from './editAttribute';
|
|
11
|
+
export type { baseAttribute, editAttribute, inputAttribute, radioAttribute, checkboxAttribute, gradeAttribute, employeeAttribute, postAttribute, uploadAttribute, groupLayoutAttribute };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 文档管理中文件上传参数类型
|
|
3
|
+
*/
|
|
4
|
+
export interface documentView {
|
|
5
|
+
/**
|
|
6
|
+
* 文档主内容
|
|
7
|
+
*/
|
|
8
|
+
documentMain: DocumentMainView;
|
|
9
|
+
/**
|
|
10
|
+
* 文档明细属性数据集合
|
|
11
|
+
*/
|
|
12
|
+
documentDetails: DocumentDetailView[];
|
|
13
|
+
/**
|
|
14
|
+
* 文档标签集合
|
|
15
|
+
*/
|
|
16
|
+
documentTags: DocumentTagView[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @description: 文档主内容
|
|
20
|
+
*/
|
|
21
|
+
declare interface DocumentMainView {
|
|
22
|
+
/**
|
|
23
|
+
* 来源系统
|
|
24
|
+
*/
|
|
25
|
+
sourceSystem: string;
|
|
26
|
+
/**
|
|
27
|
+
* 文档类型序号
|
|
28
|
+
*/
|
|
29
|
+
documentTypeID: number;
|
|
30
|
+
/**
|
|
31
|
+
* 上传人员
|
|
32
|
+
*/
|
|
33
|
+
userID: string;
|
|
34
|
+
/**
|
|
35
|
+
* 上传人员
|
|
36
|
+
*/
|
|
37
|
+
userName: string;
|
|
38
|
+
/**
|
|
39
|
+
* 文档标题
|
|
40
|
+
*/
|
|
41
|
+
documentTitle: string;
|
|
42
|
+
/**
|
|
43
|
+
* 文档封面图片地址
|
|
44
|
+
*/
|
|
45
|
+
documentCover?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 文档摘要
|
|
48
|
+
*/
|
|
49
|
+
documentAbstract?: string;
|
|
50
|
+
/**
|
|
51
|
+
* 文件扩展名
|
|
52
|
+
*/
|
|
53
|
+
filenameExtension: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @description: 文档明细属性数据
|
|
57
|
+
*/
|
|
58
|
+
declare interface DocumentDetailView {
|
|
59
|
+
/**
|
|
60
|
+
* 明细组号
|
|
61
|
+
*/
|
|
62
|
+
groupID?: number;
|
|
63
|
+
/**
|
|
64
|
+
* 明细序号
|
|
65
|
+
*/
|
|
66
|
+
itemID: number;
|
|
67
|
+
/**
|
|
68
|
+
* 明细值
|
|
69
|
+
*/
|
|
70
|
+
value: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @description: 文档标签
|
|
74
|
+
*/
|
|
75
|
+
declare interface DocumentTagView {
|
|
76
|
+
/**
|
|
77
|
+
* 文档标签序号
|
|
78
|
+
*/
|
|
79
|
+
documentTagListID?: number;
|
|
80
|
+
/**
|
|
81
|
+
* 标签类型
|
|
82
|
+
*/
|
|
83
|
+
tagType?: string;
|
|
84
|
+
/**
|
|
85
|
+
* 标签内容
|
|
86
|
+
*/
|
|
87
|
+
tagContent?: string;
|
|
88
|
+
/**
|
|
89
|
+
* 标签说明
|
|
90
|
+
*/
|
|
91
|
+
tagDescription?: string;
|
|
92
|
+
/**
|
|
93
|
+
* 标签颜色
|
|
94
|
+
*/
|
|
95
|
+
tagColor?: string;
|
|
96
|
+
/**
|
|
97
|
+
* 自定义标记
|
|
98
|
+
*/
|
|
99
|
+
customFlag?: boolean;
|
|
100
|
+
}
|
|
101
|
+
export {};
|