zhytech-ui-mobile 1.0.5 → 1.0.7

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.
Files changed (29) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/types/components/dynamicForm/components/advanced/index.d.ts +4 -0
  3. package/dist/types/components/dynamicForm/components/application/index.d.ts +5 -0
  4. package/dist/types/components/dynamicForm/components/base/index.d.ts +6 -0
  5. package/dist/types/components/dynamicForm/components/componentType.d.ts +5 -0
  6. package/dist/types/components/dynamicForm/components/layout/index.d.ts +3 -0
  7. package/dist/types/components/dynamicForm/index.d.ts +7 -0
  8. package/dist/types/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.d.ts +25 -0
  9. package/dist/types/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +33 -0
  10. package/dist/types/components/dynamicForm/types/componentAttribute/application/gradeAttribute.d.ts +45 -0
  11. package/dist/types/components/dynamicForm/types/componentAttribute/application/postAttribute.d.ts +33 -0
  12. package/dist/types/components/dynamicForm/types/componentAttribute/base/checkboxAttribute.d.ts +29 -0
  13. package/dist/types/components/dynamicForm/types/componentAttribute/base/inputAttribute.d.ts +21 -0
  14. package/dist/types/components/dynamicForm/types/componentAttribute/base/radioAttribute.d.ts +21 -0
  15. package/dist/types/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +101 -0
  16. package/dist/types/components/dynamicForm/types/componentAttribute/editAttribute.d.ts +61 -0
  17. package/dist/types/components/dynamicForm/types/componentAttribute/index.d.ts +12 -0
  18. package/dist/types/components/dynamicForm/types/componentAttribute/layout/groupLayoutAttribute.d.ts +29 -0
  19. package/dist/types/components/dynamicForm/types/documentView.d.ts +101 -0
  20. package/dist/types/components/dynamicForm/types/enum.d.ts +88 -0
  21. package/dist/types/components/dynamicForm/types/formAttribute.d.ts +84 -0
  22. package/dist/types/components/dynamicForm/types/uploadOption.d.ts +23 -0
  23. package/dist/types/hooks/useMessage.d.ts +16 -0
  24. package/dist/types/hooks/useToast.d.ts +10 -0
  25. package/dist/types/hooks/useUtils.d.ts +51 -0
  26. package/dist/types/index.d.ts +12 -0
  27. package/dist/zhytech-ui-mobile.es.js +45 -45
  28. package/dist/zhytech-ui-mobile.umd.js +1 -1
  29. package/package.json +9 -6
@@ -0,0 +1,4 @@
1
+ import { default as upload } from './upload';
2
+ import { default as uploadImage } from './uploadImage';
3
+
4
+ export { upload, uploadImage };
@@ -0,0 +1,5 @@
1
+ import { default as employee } from './employee';
2
+ import { default as grade } from './grade';
3
+ import { default as post } from './post';
4
+
5
+ export { employee, grade, post };
@@ -0,0 +1,6 @@
1
+ import { default as checkbox } from './checkbox';
2
+ import { default as input } from './input';
3
+ import { default as label } from './label';
4
+ import { default as radio } from './radio';
5
+
6
+ export { label, input, radio, checkbox };
@@ -0,0 +1,5 @@
1
+ import * as baseComponent from "./base/index";
2
+ import * as advancedComponent from "./advanced/index";
3
+ import * as applicationComponent from "./application/index";
4
+ import * as layoutComponent from "./layout/index";
5
+ export { baseComponent, advancedComponent, applicationComponent, layoutComponent };
@@ -0,0 +1,3 @@
1
+ import { default as groupLayout } from './groupLayout';
2
+
3
+ export { groupLayout };
@@ -0,0 +1,7 @@
1
+ import { default as formRenderer } from './formRenderer';
2
+ import { dynamicFormData, formAttribute, dictionaryData, dictionaryItem } from './types/formAttribute';
3
+ import { uploadOption } from './types/uploadOption';
4
+ import { documentView } from './types/documentView';
5
+
6
+ export type { dynamicFormData, formAttribute, dictionaryData, dictionaryItem, uploadOption, documentView };
7
+ export { formRenderer };
@@ -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
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @description: 人员(employee)组件属性
3
+ */
4
+ export interface employeeAttribute {
5
+ /**
6
+ * 部门ID
7
+ */
8
+ departmentID: number;
9
+ /**
10
+ * 显示类型
11
+ */
12
+ type: "radio" | "checkbox" | "selector";
13
+ /**
14
+ * displayType!=selector时人员是否换行
15
+ */
16
+ newLine: boolean;
17
+ /**
18
+ * displayType=checkbox时最少选择个数
19
+ */
20
+ min?: number;
21
+ /**
22
+ * displayType=checkbox时最多选择个数
23
+ */
24
+ max?: number;
25
+ /**
26
+ * displayType=selector时是否可以多选
27
+ */
28
+ multiple?: boolean;
29
+ /**
30
+ * 人员列表
31
+ */
32
+ options: Record<string, any>[];
33
+ }
@@ -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
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @description: 岗位(post)组件属性
3
+ */
4
+ export interface postAttribute {
5
+ /**
6
+ * 部门ID
7
+ */
8
+ departmentID: number;
9
+ /**
10
+ * 显示类型
11
+ */
12
+ type: "radio" | "checkbox" | "selector";
13
+ /**
14
+ * displayType!=selector时岗位是否换行
15
+ */
16
+ newLine: boolean;
17
+ /**
18
+ * displayType=checkbox时最少选择个数
19
+ */
20
+ min?: number;
21
+ /**
22
+ * displayType=checkbox时最多选择个数
23
+ */
24
+ max?: number;
25
+ /**
26
+ * displayType=selector时是否可以多选
27
+ */
28
+ multiple?: boolean;
29
+ /**
30
+ * 岗位列表
31
+ */
32
+ options: Record<string, any>[];
33
+ }
@@ -0,0 +1,29 @@
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
+ /**
22
+ * 试卷模式时,正确答案选项的值
23
+ */
24
+ correctOptions?: string[];
25
+ /**
26
+ * 试卷模式时,答案状态
27
+ */
28
+ examinationStatus?: number;
29
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @description: 输入框组件(input)独有属性
3
+ */
4
+ export interface inputAttribute {
5
+ /**
6
+ * 类型 文本:text、密码:password
7
+ */
8
+ type: any;
9
+ /**
10
+ * 是否显示密码
11
+ */
12
+ showPassword: boolean;
13
+ /**
14
+ * 正则表达式
15
+ */
16
+ pattern?: string;
17
+ /**
18
+ * 正则验证提示信息
19
+ */
20
+ patternMessage?: string;
21
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @description: 单选框(radio)组件属性
3
+ */
4
+ export interface radioAttribute {
5
+ /**
6
+ * 选项是否换行
7
+ */
8
+ newLine: boolean;
9
+ /**
10
+ * 选项
11
+ */
12
+ options: Record<string, any>[];
13
+ /**
14
+ * 试卷模式时,正确答案选项的值
15
+ */
16
+ correctOptions?: string[];
17
+ /**
18
+ * 试卷模式时,答案状态
19
+ */
20
+ examinationStatus?: number;
21
+ }
@@ -0,0 +1,101 @@
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
+ height?: number;
37
+ /**
38
+ * 高度单位
39
+ */
40
+ heightUnit?: string;
41
+ /**
42
+ * 标题换行
43
+ */
44
+ labelNewLine: boolean;
45
+ /**
46
+ * 是否显示
47
+ */
48
+ showFlag: boolean;
49
+ /**
50
+ * 显示条件
51
+ */
52
+ showConditions?: Record<string, any>[];
53
+ /**
54
+ * 显示条件描述
55
+ */
56
+ showConditionContent?: string;
57
+ /**
58
+ * 显示条件表达式
59
+ */
60
+ showConditionExpression?: string;
61
+ /**
62
+ * 隐藏条件
63
+ */
64
+ hiddenConditions?: Record<string, any>[];
65
+ /**
66
+ * 隐藏条件描述
67
+ */
68
+ hiddenConditionContent?: string;
69
+ /**
70
+ * 隐藏条件表达式
71
+ */
72
+ hiddenConditionExpression?: string;
73
+ /**
74
+ * 左缩进
75
+ */
76
+ paddingLeft?: number;
77
+ /**
78
+ * 项目说明/答案解析
79
+ */
80
+ description?: string;
81
+ /**
82
+ * 所属tabs组件的页签ID
83
+ */
84
+ pageID?: string;
85
+ /**
86
+ * 所属tabs组件的页签ID
87
+ */
88
+ componentWidth?: number;
89
+ /**
90
+ * 获取数据接口
91
+ */
92
+ fetchDataInterface?: string;
93
+ /**
94
+ * 获取远端数据接口参数
95
+ */
96
+ dataInterfaceParameter?: Record<string, any>[];
97
+ /**
98
+ * 远端数据属性映射
99
+ */
100
+ dataAttributeMapping?: Record<string, string>;
101
+ }
@@ -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,12 @@
1
+ import { baseAttribute } from './baseAttribute';
2
+ import { editAttribute } from './editAttribute';
3
+ import { checkboxAttribute } from './base/checkboxAttribute';
4
+ import { inputAttribute } from './base/inputAttribute';
5
+ import { radioAttribute } from './base/radioAttribute';
6
+ import { uploadAttribute } from './advanced/uploadAttribute';
7
+ import { employeeAttribute } from './application/employeeAttribute';
8
+ import { postAttribute } from './application/postAttribute';
9
+ import { gradeAttribute } from './application/gradeAttribute';
10
+ import { groupLayoutAttribute } from './layout/groupLayoutAttribute';
11
+
12
+ export type { baseAttribute, editAttribute, checkboxAttribute, inputAttribute, radioAttribute, employeeAttribute, postAttribute, gradeAttribute, uploadAttribute, groupLayoutAttribute };
@@ -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
+ }
@@ -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
+ fileExtensionName: 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 {};
@@ -0,0 +1,88 @@
1
+ /**
2
+ * 表单类型
3
+ */
4
+ export declare enum formTypeEnum {
5
+ /**
6
+ * 问卷
7
+ */
8
+ Form = "1",
9
+ /**
10
+ * 试卷
11
+ */
12
+ Examination = "2"
13
+ }
14
+ /**
15
+ * 试卷答案状态
16
+ */
17
+ export declare enum examinationStatusEnum {
18
+ /**
19
+ * 未作答
20
+ */
21
+ NotAnswered = 1,
22
+ /**
23
+ * 正确
24
+ */
25
+ Correct = 2,
26
+ /**
27
+ * 错误
28
+ */
29
+ Error = 3
30
+ }
31
+ /**
32
+ * 组件类型
33
+ */
34
+ export declare enum componentTypeEnum {
35
+ /**
36
+ * 标签
37
+ */
38
+ LABEL = "label",
39
+ /**
40
+ * 输入框
41
+ */
42
+ INPUT = "input",
43
+ /**
44
+ * 复选框
45
+ */
46
+ CHECKBOX = "checkbox",
47
+ /**
48
+ * 单选框
49
+ */
50
+ RADIO = "radio",
51
+ /**
52
+ * 数字输入框
53
+ */
54
+ INPUT_NUMBER = "inputNumber",
55
+ /**
56
+ * 日期选择器
57
+ */
58
+ DATE = "date",
59
+ /**
60
+ * 时间选择器
61
+ */
62
+ TIME = "time",
63
+ /**
64
+ * 上传组件
65
+ */
66
+ UPLOAD = "upload",
67
+ /**
68
+ * 图片上传组件
69
+ */
70
+ UPLOAD_IMAGE = "uploadImage",
71
+ /**
72
+ * 评分组件
73
+ */
74
+ GRADE = "grade",
75
+ /**
76
+ * 人员组件
77
+ */
78
+ EMPLOYEE = "employee",
79
+ /**
80
+ * 岗位组件
81
+ */
82
+ POST = "post",
83
+ GROUP_LAYOUT = "groupLayout",
84
+ /**
85
+ * 页签
86
+ */
87
+ TABS = "tabs"
88
+ }