zhytech-ui-mobile 1.1.6 → 1.1.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/README.md +12 -0
- package/dist/types/components/dynamicForm/types/componentAttribute/base/inputAttribute.d.ts +12 -0
- package/dist/types/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +6 -8
- package/dist/types/components/dynamicForm/types/enum.d.ts +17 -0
- package/dist/types/components/dynamicForm/types/httpSettingView.d.ts +35 -0
- package/dist/types/hooks/useUtils.d.ts +10 -0
- package/dist/types/utils/eventBus.d.ts +7 -0
- package/dist/zhytech-ui-mobile.es.js +365 -253
- package/dist/zhytech-ui-mobile.umd.js +9 -9
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -79,6 +79,18 @@ npm install --legacy-peer-deps
|
|
|
79
79
|
|
|
80
80
|
> #### 版本更新清单:
|
|
81
81
|
|
|
82
|
+
**V 1.1.8**
|
|
83
|
+
```html
|
|
84
|
+
1.zhy-dynamic-renderer组件的input组件新增支持设置动态请求数据
|
|
85
|
+
2.绑定字典选择时添加fixedItemID赋值
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**V 1.1.7**
|
|
89
|
+
```html
|
|
90
|
+
1.调整zhyFormRenderer组件的单选、多选组件支持分数显示,在getData方法中返回分数
|
|
91
|
+
2.调整zhyFormRenderer组件的getData新增valueContent属性,和PC端组件保持一致
|
|
92
|
+
```
|
|
93
|
+
|
|
82
94
|
**V 1.1.6**
|
|
83
95
|
```html
|
|
84
96
|
1.zhyFilePreview组件新增extensionName属性,用于指定文件类型
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { httpSettingView } from '../httpSettingView';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @description: 组件基本属性类型
|
|
3
5
|
*/
|
|
@@ -87,15 +89,11 @@ export interface baseAttribute {
|
|
|
87
89
|
*/
|
|
88
90
|
componentWidth?: number;
|
|
89
91
|
/**
|
|
90
|
-
*
|
|
92
|
+
* 组件换行
|
|
91
93
|
*/
|
|
92
|
-
|
|
94
|
+
lineBreak?: boolean;
|
|
93
95
|
/**
|
|
94
|
-
*
|
|
96
|
+
* HTTP请求设置
|
|
95
97
|
*/
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* 远端数据属性映射
|
|
99
|
-
*/
|
|
100
|
-
dataAttributeMapping?: Record<string, string>;
|
|
98
|
+
httpSettings?: httpSettingView[];
|
|
101
99
|
}
|
|
@@ -133,3 +133,20 @@ export declare enum relevanceType {
|
|
|
133
133
|
*/
|
|
134
134
|
autoCancel = "\u81EA\u52A8\u53D6\u6D88"
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* @description: 事件类型
|
|
138
|
+
*/
|
|
139
|
+
export declare enum eventTypeEnum {
|
|
140
|
+
/**
|
|
141
|
+
* 改变事件
|
|
142
|
+
*/
|
|
143
|
+
Change = "change",
|
|
144
|
+
/**
|
|
145
|
+
* 点击事件
|
|
146
|
+
*/
|
|
147
|
+
Click = "click",
|
|
148
|
+
/**
|
|
149
|
+
* 查询事件
|
|
150
|
+
*/
|
|
151
|
+
Query = "query"
|
|
152
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { eventTypeEnum } from './enum';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description: HTTP请求设置
|
|
5
|
+
*/
|
|
6
|
+
export interface httpSettingView {
|
|
7
|
+
/**
|
|
8
|
+
* HTTP请求类型
|
|
9
|
+
*/
|
|
10
|
+
eventType: eventTypeEnum;
|
|
11
|
+
/**
|
|
12
|
+
* HTTP基础URL
|
|
13
|
+
*/
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
/**
|
|
16
|
+
* HTTP函数URL
|
|
17
|
+
*/
|
|
18
|
+
functionUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* HTTP请求方法
|
|
21
|
+
*/
|
|
22
|
+
method?: "POST" | "GET";
|
|
23
|
+
/**
|
|
24
|
+
* HTTP请求参数
|
|
25
|
+
*/
|
|
26
|
+
parameters?: Record<string, any>[];
|
|
27
|
+
/**
|
|
28
|
+
* 是否映射到组件实例
|
|
29
|
+
*/
|
|
30
|
+
dataMappingSelf?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* HTTP数据映射
|
|
33
|
+
*/
|
|
34
|
+
dataMappings?: Record<string, string>[];
|
|
35
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { httpSettingView } from '../components/dynamicForm/types/httpSettingView';
|
|
2
|
+
|
|
1
3
|
export declare function useUtils(): {
|
|
2
4
|
/**
|
|
3
5
|
* @description: 判断是否是微信浏览器打开
|
|
@@ -60,4 +62,12 @@ export declare function useUtils(): {
|
|
|
60
62
|
* @return
|
|
61
63
|
*/
|
|
62
64
|
toQueryParams(params: Record<string, any>): string;
|
|
65
|
+
/**
|
|
66
|
+
* @description: 调用api
|
|
67
|
+
* @param httpSetting 接口配置
|
|
68
|
+
* @param datas 接口参数替换数据
|
|
69
|
+
* @param autoDealResult 是否自动处理结果
|
|
70
|
+
* @return
|
|
71
|
+
*/
|
|
72
|
+
callApi(httpSetting: httpSettingView, datas: Record<string, any>, autoDealResult?: boolean): Promise<Record<string, any>>;
|
|
63
73
|
};
|