zhytech-ui-mobile 1.0.1 → 1.0.2
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/.eslintignore +11 -0
- package/.eslintrc.cjs +253 -0
- package/.prettierignore +0 -0
- package/.prettierrc.json +9 -0
- package/.vscode/settings.json +131 -0
- package/index.html +39 -0
- package/package.json +3 -7
- package/shims-uni.d.ts +7 -0
- package/src/App.vue +24 -0
- package/src/components/dynamicForm/componentRenderer.vue +207 -0
- package/src/components/dynamicForm/components/advanced/index.ts +13 -0
- package/src/components/dynamicForm/components/advanced/upload.vue +108 -0
- package/src/components/dynamicForm/components/advanced/uploadImage.vue +107 -0
- package/src/components/dynamicForm/components/answerSheetPopup/answerSheetItem.vue +58 -0
- package/src/components/dynamicForm/components/answerSheetPopup/index.vue +111 -0
- package/src/components/dynamicForm/components/application/employee.vue +140 -0
- package/src/components/dynamicForm/components/application/grade.vue +183 -0
- package/src/components/dynamicForm/components/application/index.ts +14 -0
- package/src/components/dynamicForm/components/application/post.vue +136 -0
- package/src/components/dynamicForm/components/base/checkbox.vue +143 -0
- package/src/components/dynamicForm/components/base/index.ts +15 -0
- package/src/components/dynamicForm/components/base/input.vue +99 -0
- package/src/components/dynamicForm/components/base/label.vue +29 -0
- package/src/components/dynamicForm/components/base/radio.vue +155 -0
- package/src/components/dynamicForm/components/componentType.ts +16 -0
- package/src/components/dynamicForm/components/layout/groupLayout.vue +103 -0
- package/src/components/dynamicForm/components/layout/index.ts +12 -0
- package/src/components/dynamicForm/formRenderer.vue +567 -0
- package/src/components/dynamicForm/index.ts +21 -0
- package/src/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.ts +35 -0
- package/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.ts +42 -0
- package/src/components/dynamicForm/types/componentAttribute/application/gradeAttribute.ts +54 -0
- package/src/components/dynamicForm/types/componentAttribute/application/postAttribute.ts +42 -0
- package/src/components/dynamicForm/types/componentAttribute/base/checkboxAttribute.ts +38 -0
- package/src/components/dynamicForm/types/componentAttribute/base/inputAttribute.ts +31 -0
- package/src/components/dynamicForm/types/componentAttribute/base/radioAttribute.ts +30 -0
- package/src/components/dynamicForm/types/componentAttribute/baseAttribute.ts +110 -0
- package/src/components/dynamicForm/types/componentAttribute/editAttribute.ts +70 -0
- package/src/components/dynamicForm/types/componentAttribute/index.ts +37 -0
- package/src/components/dynamicForm/types/componentAttribute/layout/groupLayoutAttribute.ts +39 -0
- package/src/components/dynamicForm/types/documentView.ts +110 -0
- package/src/components/dynamicForm/types/enum.ts +109 -0
- package/src/components/dynamicForm/types/formAttribute.ts +93 -0
- package/src/components/dynamicForm/types/uploadOption.ts +31 -0
- package/src/env.d.ts +8 -0
- package/src/hooks/useMessage.ts +44 -0
- package/src/hooks/useToast.ts +29 -0
- package/src/hooks/useUtils.ts +201 -0
- package/src/index.ts +59 -0
- package/src/main.ts +19 -0
- package/src/manifest.json +72 -0
- package/src/pages/dynamicFormDemo.vue +1260 -0
- package/src/pages/dynamicFormExaminationDemo.vue +567 -0
- package/src/pages.json +58 -0
- package/src/shime-uni.d.ts +6 -0
- package/src/uni.scss +76 -0
- package/src/unocss/index.ts +20 -0
- package/src/unocss/rules.ts +139 -0
- package/src/unocss/shortcuts.ts +53 -0
- package/src/unocss/theme/index.ts +13 -0
- package/src/unocss/theme/themeOption/dark.ts +35 -0
- package/src/unocss/theme/themeOption/primary.ts +33 -0
- package/src/unocss/variants.ts +110 -0
- package/tsconfig.json +19 -0
- package/uno.config.ts +63 -0
- package/vite.config.ts +83 -0
- package/dist/build/h5/style.css +0 -1
- package/dist/build/h5/zhytech-ui-mobile.es.js +0 -19690
- package/dist/build/h5/zhytech-ui-mobile.umd.js +0 -6
- /package/{dist/build/h5 → src}/static/iconfont/iconfont.css +0 -0
- /package/{dist/build/h5 → src}/static/iconfont/iconfont.ttf +0 -0
- /package/{dist/build/h5 → src}/static/iconfont/iconfont.woff +0 -0
- /package/{dist/build/h5 → src}/static/iconfont/iconfont.woff2 +0 -0
- /package/{dist/build/h5 → src}/static/scss/actionSheet.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/button.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/checkbox.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/form.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/index.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/input.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/picker.scss +0 -0
- /package/{dist/build/h5 → src}/static/scss/radio.scss +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\application\gradeAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 18:54
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2024-07-20 16:19
|
|
7
|
+
* Description : 考评分数(grade)组件属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @description: 考评分数(grade)组件属性
|
|
12
|
+
*/
|
|
13
|
+
export interface gradeAttribute {
|
|
14
|
+
/**
|
|
15
|
+
* 最大分数
|
|
16
|
+
*/
|
|
17
|
+
maxScore: number;
|
|
18
|
+
/**
|
|
19
|
+
* 是否显示0分
|
|
20
|
+
*/
|
|
21
|
+
showZero: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 显示不考评项
|
|
24
|
+
*/
|
|
25
|
+
showNotGrade: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 分数是否换行
|
|
28
|
+
*/
|
|
29
|
+
newLine: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否显示问题
|
|
32
|
+
*/
|
|
33
|
+
showProblem: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 是否显示亮点
|
|
36
|
+
*/
|
|
37
|
+
showBrightSpot: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 分数倒序
|
|
40
|
+
*/
|
|
41
|
+
scoreReverseFlag: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 备注 选项
|
|
44
|
+
*/
|
|
45
|
+
remarkOptions?: Record<string, string>[];
|
|
46
|
+
/**
|
|
47
|
+
* 是否显示备注
|
|
48
|
+
*/
|
|
49
|
+
showRemark?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 是否显示单项否决选项
|
|
52
|
+
*/
|
|
53
|
+
showVeto?: boolean;
|
|
54
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\application\postAttribute.ts
|
|
3
|
+
* Author : 郭鹏超
|
|
4
|
+
* Date : 2024-04-23 09:03
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2024-06-11 15:26
|
|
7
|
+
* Description :
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @description: 岗位(post)组件属性
|
|
12
|
+
*/
|
|
13
|
+
export interface postAttribute {
|
|
14
|
+
/**
|
|
15
|
+
* 部门ID
|
|
16
|
+
*/
|
|
17
|
+
departmentID: number;
|
|
18
|
+
/**
|
|
19
|
+
* 显示类型
|
|
20
|
+
*/
|
|
21
|
+
type: "radio" | "checkbox" | "selector";
|
|
22
|
+
/**
|
|
23
|
+
* displayType!=selector时岗位是否换行
|
|
24
|
+
*/
|
|
25
|
+
newLine: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* displayType=checkbox时最少选择个数
|
|
28
|
+
*/
|
|
29
|
+
min?: number;
|
|
30
|
+
/**
|
|
31
|
+
* displayType=checkbox时最多选择个数
|
|
32
|
+
*/
|
|
33
|
+
max?: number;
|
|
34
|
+
/**
|
|
35
|
+
* displayType=selector时是否可以多选
|
|
36
|
+
*/
|
|
37
|
+
multiple?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 岗位列表
|
|
40
|
+
*/
|
|
41
|
+
options: Record<string, any>[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\base\checkboxAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 18:54
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2025-05-16 16:08
|
|
7
|
+
* Description : 多选框(checkbox)组件属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @description: 多选框(checkbox)组件属性类型
|
|
12
|
+
*/
|
|
13
|
+
export interface checkboxAttribute {
|
|
14
|
+
/**
|
|
15
|
+
* 选项是否换行
|
|
16
|
+
*/
|
|
17
|
+
newLine: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 最少选几个
|
|
20
|
+
*/
|
|
21
|
+
min?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 最多选几个
|
|
24
|
+
*/
|
|
25
|
+
max?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 选项
|
|
28
|
+
*/
|
|
29
|
+
options: Record<string, any>[];
|
|
30
|
+
/**
|
|
31
|
+
* 试卷模式时,正确答案选项的值
|
|
32
|
+
*/
|
|
33
|
+
correctOptions?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* 试卷模式时,答案状态
|
|
36
|
+
*/
|
|
37
|
+
examinationStatus?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\textAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 16:46
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2024-03-04 19:00
|
|
7
|
+
* Description : 输入框组件(input)独有属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @description: 输入框组件(input)独有属性
|
|
13
|
+
*/
|
|
14
|
+
export interface inputAttribute {
|
|
15
|
+
/**
|
|
16
|
+
* 类型 文本:text、密码:password
|
|
17
|
+
*/
|
|
18
|
+
type: any;
|
|
19
|
+
/**
|
|
20
|
+
* 是否显示密码
|
|
21
|
+
*/
|
|
22
|
+
showPassword: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 正则表达式
|
|
25
|
+
*/
|
|
26
|
+
pattern?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 正则验证提示信息
|
|
29
|
+
*/
|
|
30
|
+
patternMessage?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\base\radioAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 18:54
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2025-05-16 16:09
|
|
7
|
+
* Description : 单选框(radio)组件属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @description: 单选框(radio)组件属性
|
|
12
|
+
*/
|
|
13
|
+
export interface radioAttribute {
|
|
14
|
+
/**
|
|
15
|
+
* 选项是否换行
|
|
16
|
+
*/
|
|
17
|
+
newLine: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 选项
|
|
20
|
+
*/
|
|
21
|
+
options: Record<string, any>[];
|
|
22
|
+
/**
|
|
23
|
+
* 试卷模式时,正确答案选项的值
|
|
24
|
+
*/
|
|
25
|
+
correctOptions?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* 试卷模式时,答案状态
|
|
28
|
+
*/
|
|
29
|
+
examinationStatus?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\baseAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 18:54
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2025-05-16 16:49
|
|
7
|
+
* Description : 组件基础属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @description: 组件基本属性类型
|
|
12
|
+
*/
|
|
13
|
+
export interface baseAttribute {
|
|
14
|
+
/**
|
|
15
|
+
* 是否显示标题
|
|
16
|
+
*/
|
|
17
|
+
showLabel: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 标题宽度
|
|
20
|
+
*/
|
|
21
|
+
labelWidth?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 标题
|
|
24
|
+
*/
|
|
25
|
+
label: string;
|
|
26
|
+
/**
|
|
27
|
+
* 字体大小
|
|
28
|
+
*/
|
|
29
|
+
fontSize: number;
|
|
30
|
+
/**
|
|
31
|
+
* 是否加粗
|
|
32
|
+
*/
|
|
33
|
+
isBold: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 文字颜色
|
|
36
|
+
*/
|
|
37
|
+
color: string;
|
|
38
|
+
/**
|
|
39
|
+
* 宽度
|
|
40
|
+
*/
|
|
41
|
+
width: number;
|
|
42
|
+
/**
|
|
43
|
+
* 高度
|
|
44
|
+
*/
|
|
45
|
+
height?: number;
|
|
46
|
+
/**
|
|
47
|
+
* 高度单位
|
|
48
|
+
*/
|
|
49
|
+
heightUnit?: string;
|
|
50
|
+
/**
|
|
51
|
+
* 标题换行
|
|
52
|
+
*/
|
|
53
|
+
labelNewLine: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 是否显示
|
|
56
|
+
*/
|
|
57
|
+
showFlag: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 显示条件
|
|
60
|
+
*/
|
|
61
|
+
showConditions?: Record<string, any>[];
|
|
62
|
+
/**
|
|
63
|
+
* 显示条件描述
|
|
64
|
+
*/
|
|
65
|
+
showConditionContent?: string;
|
|
66
|
+
/**
|
|
67
|
+
* 显示条件表达式
|
|
68
|
+
*/
|
|
69
|
+
showConditionExpression?: string;
|
|
70
|
+
/**
|
|
71
|
+
* 隐藏条件
|
|
72
|
+
*/
|
|
73
|
+
hiddenConditions?: Record<string, any>[];
|
|
74
|
+
/**
|
|
75
|
+
* 隐藏条件描述
|
|
76
|
+
*/
|
|
77
|
+
hiddenConditionContent?: string;
|
|
78
|
+
/**
|
|
79
|
+
* 隐藏条件表达式
|
|
80
|
+
*/
|
|
81
|
+
hiddenConditionExpression?: string;
|
|
82
|
+
/**
|
|
83
|
+
* 左缩进
|
|
84
|
+
*/
|
|
85
|
+
paddingLeft?: number;
|
|
86
|
+
/**
|
|
87
|
+
* 项目说明/答案解析
|
|
88
|
+
*/
|
|
89
|
+
description?: string;
|
|
90
|
+
/**
|
|
91
|
+
* 所属tabs组件的页签ID
|
|
92
|
+
*/
|
|
93
|
+
pageID?: string;
|
|
94
|
+
/**
|
|
95
|
+
* 所属tabs组件的页签ID
|
|
96
|
+
*/
|
|
97
|
+
componentWidth?: number;
|
|
98
|
+
/**
|
|
99
|
+
* 获取数据接口
|
|
100
|
+
*/
|
|
101
|
+
fetchDataInterface?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 获取远端数据接口参数
|
|
104
|
+
*/
|
|
105
|
+
dataInterfaceParameter?: Record<string, any>[];
|
|
106
|
+
/**
|
|
107
|
+
* 远端数据属性映射
|
|
108
|
+
*/
|
|
109
|
+
dataAttributeMapping?: Record<string, string>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\editAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 18:56
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2024-03-20 11:54
|
|
7
|
+
* Description : 编辑类组件公共属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @description: 编辑类组件属性
|
|
12
|
+
*/
|
|
13
|
+
export interface editAttribute {
|
|
14
|
+
/**
|
|
15
|
+
* 输入框占位符
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 是否可清空
|
|
20
|
+
*/
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 必填
|
|
24
|
+
*/
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 必填提示信息
|
|
28
|
+
*/
|
|
29
|
+
requiredMessage?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 是否禁用
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 禁用条件
|
|
36
|
+
*/
|
|
37
|
+
disabledConditions?: Record<string, any>[];
|
|
38
|
+
/**
|
|
39
|
+
* 禁用条件描述
|
|
40
|
+
*/
|
|
41
|
+
disabledConditionContent?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 禁用条件表达式
|
|
44
|
+
*/
|
|
45
|
+
disabledConditionExpression?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 是否只读
|
|
48
|
+
*/
|
|
49
|
+
readonly?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 只读条件
|
|
52
|
+
*/
|
|
53
|
+
readonlyConditions?: Record<string, any>[];
|
|
54
|
+
/**
|
|
55
|
+
* 只读条件描述
|
|
56
|
+
*/
|
|
57
|
+
readonlyConditionContent?: string;
|
|
58
|
+
/**
|
|
59
|
+
* 只读条件表达式
|
|
60
|
+
*/
|
|
61
|
+
readonlyConditionExpression?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 默认值
|
|
64
|
+
*/
|
|
65
|
+
defaultValue?: any;
|
|
66
|
+
/**
|
|
67
|
+
* 是否参与统计
|
|
68
|
+
*/
|
|
69
|
+
statisticsFlag: boolean;
|
|
70
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\index.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-03-04 18:54
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2025-08-24 19:45
|
|
7
|
+
* Description : 组件属性集合
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
// 基础类
|
|
11
|
+
import type { baseAttribute } from "./baseAttribute";
|
|
12
|
+
import type { editAttribute } from "./editAttribute";
|
|
13
|
+
// 基础组件类型
|
|
14
|
+
import type { checkboxAttribute } from "./base/checkboxAttribute";
|
|
15
|
+
import type { inputAttribute } from "./base/inputAttribute";
|
|
16
|
+
import type { radioAttribute } from "./base/radioAttribute";
|
|
17
|
+
// 高级组件类型
|
|
18
|
+
import type { uploadAttribute } from "./advanced/uploadAttribute";
|
|
19
|
+
// 应用组件类型
|
|
20
|
+
import type { employeeAttribute } from "./application/employeeAttribute";
|
|
21
|
+
import type { postAttribute } from "./application/postAttribute";
|
|
22
|
+
import type { gradeAttribute } from "./application/gradeAttribute";
|
|
23
|
+
// 布局组件类型
|
|
24
|
+
import type { groupLayoutAttribute } from "./layout/groupLayoutAttribute";
|
|
25
|
+
|
|
26
|
+
export type {
|
|
27
|
+
baseAttribute,
|
|
28
|
+
editAttribute,
|
|
29
|
+
checkboxAttribute,
|
|
30
|
+
inputAttribute,
|
|
31
|
+
radioAttribute,
|
|
32
|
+
employeeAttribute,
|
|
33
|
+
postAttribute,
|
|
34
|
+
gradeAttribute,
|
|
35
|
+
uploadAttribute,
|
|
36
|
+
groupLayoutAttribute
|
|
37
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\componentAttribute\advanced\groupLayoutAttribute.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-06-14 11:25
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2024-07-11 09:40
|
|
7
|
+
* Description : 分组面板(groupLayout)组件属性
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @description: 分组面板(groupLayout)组件属性
|
|
13
|
+
*/
|
|
14
|
+
export interface groupLayoutAttribute {
|
|
15
|
+
/**
|
|
16
|
+
* 背景色
|
|
17
|
+
*/
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否显示边框
|
|
21
|
+
*/
|
|
22
|
+
showBorder: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 边框样式
|
|
25
|
+
*/
|
|
26
|
+
borderStyle?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 边框颜色
|
|
29
|
+
*/
|
|
30
|
+
borderWidth: number;
|
|
31
|
+
/**
|
|
32
|
+
* 边框颜色
|
|
33
|
+
*/
|
|
34
|
+
borderColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 边框圆角大小,0为直角
|
|
37
|
+
*/
|
|
38
|
+
borderRadius: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\documentView.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2024-06-20 09:38
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2024-12-31 10:11
|
|
7
|
+
* Description : 文档管理中文件上传参数类型
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
/**
|
|
12
|
+
* @description: 文档管理中文件上传参数类型
|
|
13
|
+
*/
|
|
14
|
+
export interface documentView {
|
|
15
|
+
/**
|
|
16
|
+
* 文档主内容
|
|
17
|
+
*/
|
|
18
|
+
documentMain: DocumentMainView;
|
|
19
|
+
/**
|
|
20
|
+
* 文档明细属性数据集合
|
|
21
|
+
*/
|
|
22
|
+
documentDetails: DocumentDetailView[];
|
|
23
|
+
/**
|
|
24
|
+
* 文档标签集合
|
|
25
|
+
*/
|
|
26
|
+
documentTags: DocumentTagView[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @description: 文档主内容
|
|
30
|
+
*/
|
|
31
|
+
declare interface DocumentMainView {
|
|
32
|
+
/**
|
|
33
|
+
* 来源系统
|
|
34
|
+
*/
|
|
35
|
+
sourceSystem: string;
|
|
36
|
+
/**
|
|
37
|
+
* 文档类型序号
|
|
38
|
+
*/
|
|
39
|
+
documentTypeID: number;
|
|
40
|
+
/**
|
|
41
|
+
* 上传人员
|
|
42
|
+
*/
|
|
43
|
+
userID: string;
|
|
44
|
+
/**
|
|
45
|
+
* 上传人员
|
|
46
|
+
*/
|
|
47
|
+
userName: string;
|
|
48
|
+
/**
|
|
49
|
+
* 文档标题
|
|
50
|
+
*/
|
|
51
|
+
documentTitle: string;
|
|
52
|
+
/**
|
|
53
|
+
* 文档封面图片地址
|
|
54
|
+
*/
|
|
55
|
+
documentCover?: string;
|
|
56
|
+
/**
|
|
57
|
+
* 文档摘要
|
|
58
|
+
*/
|
|
59
|
+
documentAbstract?: string;
|
|
60
|
+
/**
|
|
61
|
+
* 文件扩展名
|
|
62
|
+
*/
|
|
63
|
+
fileExtensionName: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @description: 文档明细属性数据
|
|
67
|
+
*/
|
|
68
|
+
declare interface DocumentDetailView {
|
|
69
|
+
/**
|
|
70
|
+
* 明细组号
|
|
71
|
+
*/
|
|
72
|
+
groupID?: number;
|
|
73
|
+
/**
|
|
74
|
+
* 明细序号
|
|
75
|
+
*/
|
|
76
|
+
itemID: number;
|
|
77
|
+
/**
|
|
78
|
+
* 明细值
|
|
79
|
+
*/
|
|
80
|
+
value: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @description: 文档标签
|
|
84
|
+
*/
|
|
85
|
+
declare interface DocumentTagView {
|
|
86
|
+
/**
|
|
87
|
+
* 文档标签序号
|
|
88
|
+
*/
|
|
89
|
+
documentTagListID?: number;
|
|
90
|
+
/**
|
|
91
|
+
* 标签类型
|
|
92
|
+
*/
|
|
93
|
+
tagType?: string;
|
|
94
|
+
/**
|
|
95
|
+
* 标签内容
|
|
96
|
+
*/
|
|
97
|
+
tagContent?: string;
|
|
98
|
+
/**
|
|
99
|
+
* 标签说明
|
|
100
|
+
*/
|
|
101
|
+
tagDescription?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 标签颜色
|
|
104
|
+
*/
|
|
105
|
+
tagColor?: string;
|
|
106
|
+
/**
|
|
107
|
+
* 自定义标记
|
|
108
|
+
*/
|
|
109
|
+
customFlag?: boolean;
|
|
110
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FilePath : \src\components\dynamicForm\types\enum.ts
|
|
3
|
+
* Author : 苏军志
|
|
4
|
+
* Date : 2025-05-16 16:51
|
|
5
|
+
* LastEditors : 苏军志
|
|
6
|
+
* LastEditTime : 2025-08-25 17:54
|
|
7
|
+
* Description : 枚举
|
|
8
|
+
* CodeIterationRecord:
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* 表单类型
|
|
12
|
+
*/
|
|
13
|
+
export enum formTypeEnum {
|
|
14
|
+
/**
|
|
15
|
+
* 问卷
|
|
16
|
+
*/
|
|
17
|
+
Form = "1",
|
|
18
|
+
/**
|
|
19
|
+
* 试卷
|
|
20
|
+
*/
|
|
21
|
+
Examination = "2"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 试卷答案状态
|
|
26
|
+
*/
|
|
27
|
+
export enum examinationStatusEnum {
|
|
28
|
+
/**
|
|
29
|
+
* 未作答
|
|
30
|
+
*/
|
|
31
|
+
NotAnswered = 1,
|
|
32
|
+
/**
|
|
33
|
+
* 正确
|
|
34
|
+
*/
|
|
35
|
+
Correct = 2,
|
|
36
|
+
/**
|
|
37
|
+
* 错误
|
|
38
|
+
*/
|
|
39
|
+
Error = 3
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 组件类型
|
|
43
|
+
*/
|
|
44
|
+
export enum componentTypeEnum {
|
|
45
|
+
//#region 基础组件
|
|
46
|
+
/**
|
|
47
|
+
* 标签
|
|
48
|
+
*/
|
|
49
|
+
LABEL = "label",
|
|
50
|
+
/**
|
|
51
|
+
* 输入框
|
|
52
|
+
*/
|
|
53
|
+
INPUT = "input",
|
|
54
|
+
/**
|
|
55
|
+
* 复选框
|
|
56
|
+
*/
|
|
57
|
+
CHECKBOX = "checkbox",
|
|
58
|
+
/**
|
|
59
|
+
* 单选框
|
|
60
|
+
*/
|
|
61
|
+
RADIO = "radio",
|
|
62
|
+
/**
|
|
63
|
+
* 数字输入框
|
|
64
|
+
*/
|
|
65
|
+
INPUT_NUMBER = "inputNumber",
|
|
66
|
+
/**
|
|
67
|
+
* 日期选择器
|
|
68
|
+
*/
|
|
69
|
+
DATE = "date",
|
|
70
|
+
/**
|
|
71
|
+
* 时间选择器
|
|
72
|
+
*/
|
|
73
|
+
TIME = "time",
|
|
74
|
+
//#endregion
|
|
75
|
+
|
|
76
|
+
//#region 高级组件
|
|
77
|
+
/**
|
|
78
|
+
* 上传组件
|
|
79
|
+
*/
|
|
80
|
+
UPLOAD = "upload",
|
|
81
|
+
/**
|
|
82
|
+
* 图片上传组件
|
|
83
|
+
*/
|
|
84
|
+
UPLOAD_IMAGE = "uploadImage",
|
|
85
|
+
//#endregion
|
|
86
|
+
|
|
87
|
+
//#region 应用组件
|
|
88
|
+
/**
|
|
89
|
+
* 评分组件
|
|
90
|
+
*/
|
|
91
|
+
GRADE = "grade",
|
|
92
|
+
/**
|
|
93
|
+
* 人员组件
|
|
94
|
+
*/
|
|
95
|
+
EMPLOYEE = "employee",
|
|
96
|
+
/**
|
|
97
|
+
* 岗位组件
|
|
98
|
+
*/
|
|
99
|
+
POST = "post",
|
|
100
|
+
//#endregion
|
|
101
|
+
|
|
102
|
+
//#region 布局组件
|
|
103
|
+
GROUP_LAYOUT = "groupLayout",
|
|
104
|
+
/**
|
|
105
|
+
* 页签
|
|
106
|
+
*/
|
|
107
|
+
TABS = "tabs"
|
|
108
|
+
//#endregion
|
|
109
|
+
}
|