zhytech-ui-mobile 1.0.8 → 1.0.10
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/README.md +4 -4
- package/dist/static/scss/index.scss +1 -0
- package/dist/static/scss/tabs.scss +18 -0
- package/dist/style.css +1 -1
- package/dist/types/components/dynamicForm/components/base/index.d.ts +2 -1
- package/dist/types/components/dynamicForm/components/layout/index.d.ts +2 -1
- package/dist/types/components/dynamicForm/types/abnormalCheckView.d.ts +19 -0
- package/dist/types/components/dynamicForm/types/componentAttribute/base/inputNumberAttribute.d.ts +28 -0
- package/dist/types/components/dynamicForm/types/componentAttribute/index.d.ts +3 -1
- package/dist/types/components/dynamicForm/types/componentAttribute/layout/tabsLayoutAttribute.d.ts +21 -0
- package/dist/types/components/dynamicForm/types/enum.d.ts +43 -0
- package/dist/types/components/dynamicForm/types/relevanceConditionView.d.ts +22 -0
- package/dist/types/hooks/useUtils.d.ts +6 -0
- package/dist/types/index.d.ts +780 -4
- package/dist/zhytech-ui-mobile.es.js +7360 -3247
- package/dist/zhytech-ui-mobile.umd.js +2 -2
- package/package.json +2 -3
|
@@ -2,5 +2,6 @@ import { default as checkbox } from './checkbox';
|
|
|
2
2
|
import { default as input } from './input';
|
|
3
3
|
import { default as label } from './label';
|
|
4
4
|
import { default as radio } from './radio';
|
|
5
|
+
import { default as inputNumber } from './inputNumber';
|
|
5
6
|
|
|
6
|
-
export { label, input, radio, checkbox };
|
|
7
|
+
export { label, input, radio, checkbox, inputNumber };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { abnormalCheckType, checkLevelType } from './enum';
|
|
2
|
+
|
|
3
|
+
type abnormalCheck = keyof typeof abnormalCheckType;
|
|
4
|
+
type checkLevel = keyof typeof checkLevelType;
|
|
5
|
+
export interface abnormalCheckView {
|
|
6
|
+
/**
|
|
7
|
+
* 类型
|
|
8
|
+
*/
|
|
9
|
+
type: abnormalCheck;
|
|
10
|
+
/**
|
|
11
|
+
* 检核值
|
|
12
|
+
*/
|
|
13
|
+
value: number;
|
|
14
|
+
/**
|
|
15
|
+
* 检核级别
|
|
16
|
+
*/
|
|
17
|
+
level: checkLevel;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/dist/types/components/dynamicForm/types/componentAttribute/base/inputNumberAttribute.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { abnormalCheckView } from '../../abnormalCheckView';
|
|
2
|
+
import { relevanceConditionView } from '../../relevanceConditionView';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description: 数字框组件(inputNumber)独有属性
|
|
6
|
+
*/
|
|
7
|
+
export interface inputNumberAttribute {
|
|
8
|
+
/**
|
|
9
|
+
* 单位
|
|
10
|
+
*/
|
|
11
|
+
unit: string;
|
|
12
|
+
/**
|
|
13
|
+
* 是否允许输入文本
|
|
14
|
+
*/
|
|
15
|
+
allowText: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 允许输入的文本
|
|
18
|
+
*/
|
|
19
|
+
allowTextOptions?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* 异常值检核列表
|
|
22
|
+
*/
|
|
23
|
+
abnormalCheckList?: abnormalCheckView[];
|
|
24
|
+
/**
|
|
25
|
+
* 关联条件列表
|
|
26
|
+
*/
|
|
27
|
+
relevanceConditionList?: relevanceConditionView[];
|
|
28
|
+
}
|
|
@@ -3,10 +3,12 @@ import { editAttribute } from './editAttribute';
|
|
|
3
3
|
import { checkboxAttribute } from './base/checkboxAttribute';
|
|
4
4
|
import { inputAttribute } from './base/inputAttribute';
|
|
5
5
|
import { radioAttribute } from './base/radioAttribute';
|
|
6
|
+
import { inputNumberAttribute } from './base/inputNumberAttribute';
|
|
6
7
|
import { uploadAttribute } from './advanced/uploadAttribute';
|
|
7
8
|
import { employeeAttribute } from './application/employeeAttribute';
|
|
8
9
|
import { postAttribute } from './application/postAttribute';
|
|
9
10
|
import { gradeAttribute } from './application/gradeAttribute';
|
|
10
11
|
import { groupLayoutAttribute } from './layout/groupLayoutAttribute';
|
|
12
|
+
import { tabsLayoutAttribute } from './layout/tabsLayoutAttribute';
|
|
11
13
|
|
|
12
|
-
export type { baseAttribute, editAttribute, checkboxAttribute, inputAttribute, radioAttribute, employeeAttribute, postAttribute, gradeAttribute, uploadAttribute, groupLayoutAttribute };
|
|
14
|
+
export type { baseAttribute, editAttribute, checkboxAttribute, inputAttribute, radioAttribute, inputNumberAttribute, employeeAttribute, postAttribute, gradeAttribute, uploadAttribute, groupLayoutAttribute, tabsLayoutAttribute };
|
package/dist/types/components/dynamicForm/types/componentAttribute/layout/tabsLayoutAttribute.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 标签页(tabsLayout)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface tabsLayoutAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 标签类型
|
|
7
|
+
*/
|
|
8
|
+
tabType: "" | "card" | "border-card";
|
|
9
|
+
/**
|
|
10
|
+
* 标签集合
|
|
11
|
+
*/
|
|
12
|
+
pages: Record<string, any>[];
|
|
13
|
+
/**
|
|
14
|
+
* 标签位置
|
|
15
|
+
*/
|
|
16
|
+
tabPosition: "top" | "right" | "bottom" | "left";
|
|
17
|
+
/**
|
|
18
|
+
* 是否显示导航按钮
|
|
19
|
+
*/
|
|
20
|
+
showNavigation?: boolean;
|
|
21
|
+
}
|
|
@@ -86,3 +86,46 @@ export declare enum componentTypeEnum {
|
|
|
86
86
|
*/
|
|
87
87
|
TABS = "tabs"
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* @description: 异常值检核类型
|
|
91
|
+
*/
|
|
92
|
+
export declare enum abnormalCheckType {
|
|
93
|
+
/**
|
|
94
|
+
* 上限
|
|
95
|
+
*/
|
|
96
|
+
upperLimit = "\u4E0A\u9650\u503C",
|
|
97
|
+
/**
|
|
98
|
+
* 下限
|
|
99
|
+
*/
|
|
100
|
+
lowerLimit = "\u4E0B\u9650\u503C",
|
|
101
|
+
/**
|
|
102
|
+
* 小数位数
|
|
103
|
+
*/
|
|
104
|
+
decimalPlace = "\u5C0F\u6570\u4F4D"
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @description: 异常值检核级别类型
|
|
108
|
+
*/
|
|
109
|
+
export declare enum checkLevelType {
|
|
110
|
+
/**
|
|
111
|
+
* 错误
|
|
112
|
+
*/
|
|
113
|
+
error = "\u9519\u8BEF",
|
|
114
|
+
/**
|
|
115
|
+
* 警告
|
|
116
|
+
*/
|
|
117
|
+
warning = "\u8B66\u544A"
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @description: 关联类型
|
|
121
|
+
*/
|
|
122
|
+
export declare enum relevanceType {
|
|
123
|
+
/**
|
|
124
|
+
* 自动选择
|
|
125
|
+
*/
|
|
126
|
+
autoSelect = "\u81EA\u52A8\u9009\u62E9",
|
|
127
|
+
/**
|
|
128
|
+
* 自动取消
|
|
129
|
+
*/
|
|
130
|
+
autoCancel = "\u81EA\u52A8\u53D6\u6D88"
|
|
131
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { relevanceType } from './enum';
|
|
2
|
+
|
|
3
|
+
type relevance = keyof typeof relevanceType;
|
|
4
|
+
export interface relevanceConditionView {
|
|
5
|
+
/**
|
|
6
|
+
* 类型
|
|
7
|
+
*/
|
|
8
|
+
type: relevance;
|
|
9
|
+
/**
|
|
10
|
+
* 上限值
|
|
11
|
+
*/
|
|
12
|
+
upperLimit: number;
|
|
13
|
+
/**
|
|
14
|
+
* 下限值
|
|
15
|
+
*/
|
|
16
|
+
lowerLimit: number;
|
|
17
|
+
/**
|
|
18
|
+
* 目标项目序号
|
|
19
|
+
*/
|
|
20
|
+
targetItemID: string;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -41,6 +41,12 @@ export declare function useUtils(): {
|
|
|
41
41
|
* @return
|
|
42
42
|
*/
|
|
43
43
|
checkFile(file: any, files: [], size: number, unit: string, isImage: boolean): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @description: 将数据对象转换为文件对象
|
|
46
|
+
* @param files
|
|
47
|
+
* @return
|
|
48
|
+
*/
|
|
49
|
+
dataToFile(files: Record<string, any>[]): Promise<File[]>;
|
|
44
50
|
/**
|
|
45
51
|
* @description: 将对象格式化为页面跳转参数字符串
|
|
46
52
|
* @param params
|