@aks-dev/easyui 1.0.195 → 1.0.197
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.
Potentially problematic release.
This version of @aks-dev/easyui might be problematic. Click here for more details.
- package/dist/components/AnimationModal/AnimationModal.js +41 -23
- package/dist/components/Badge/Badge.js +16 -7
- package/dist/components/DottedLine/DottedLine.js +20 -15
- package/dist/components/Echarts/EchartsView.js +77 -40
- package/dist/components/Echarts/helper.js +16 -1
- package/dist/components/Hud/AlertBottomView/AlertBottomView.js +64 -49
- package/dist/components/Hud/AlertSheetView/AlertSheetView.js +34 -30
- package/dist/components/Hud/AlertView/AlertView.js +66 -52
- package/dist/components/Hud/Hud.js +19 -8
- package/dist/components/Hud/Loading/Loading.js +25 -7
- package/dist/components/Hud/PopoverView/PopoverView.js +20 -5
- package/dist/components/Hud/Scanner/Scanner.js +99 -71
- package/dist/components/Hud/Toast/Toast.js +16 -6
- package/dist/components/MenuView/MenuView.js +73 -32
- package/dist/components/Modal/Modal.js +7 -0
- package/dist/components/MutiPictureView/MutiPictureView.js +88 -78
- package/dist/components/PictureViewer/PictureViewer.js +32 -11
- package/dist/components/RefreshList/RefreshList.js +52 -43
- package/dist/components/RichText/RichText.js +23 -23
- package/dist/components/StickHeaderView/StickHeaderView.js +12 -2
- package/dist/components/TableCell/TableCell.js +53 -37
- package/dist/components/TextInputArea/TextInputArea.js +31 -22
- package/dist/components/WithLoadingContainer/WithLoadingContainer.js +31 -14
- package/dist/index.js +11 -0
- package/dist/jsbridge/RNEasyui.js +26 -1
- package/dist/jsbridge/UpgradeModule.js +21 -12
- package/dist/jsbridge/index.js +7 -0
- package/dist/screen/index.js +8 -0
- package/dist/screen/px2dp.js +25 -2
- package/dist/screen/px2sp.js +35 -5
- package/dist/screen/text-fit.js +21 -5
- package/dist/utils/index.js +7 -0
- package/dist/utils/lazy.js +71 -19
- package/dist/utils/mode.js +21 -0
- package/package.json +2 -3
- package/types/components/AnimationModal/AnimationModal.d.ts +8 -0
- package/types/components/AnimationModal/AnimationModal.d.ts.map +1 -1
- package/types/components/Echarts/helper.d.ts +5 -0
- package/types/components/Echarts/helper.d.ts.map +1 -1
- package/types/components/MutiPictureView/MutiPictureView.d.ts +9 -0
- package/types/components/MutiPictureView/MutiPictureView.d.ts.map +1 -1
- package/types/components/StickHeaderView/StickHeaderView.d.ts +6 -0
- package/types/components/StickHeaderView/StickHeaderView.d.ts.map +1 -1
- package/types/components/TextInputArea/TextInputArea.d.ts +1 -0
- package/types/components/TextInputArea/TextInputArea.d.ts.map +1 -1
- package/types/jsbridge/RNEasyui.d.ts +18 -0
- package/types/jsbridge/RNEasyui.d.ts.map +1 -1
- package/types/jsbridge/UpgradeModule.d.ts +15 -0
- package/types/jsbridge/UpgradeModule.d.ts.map +1 -1
- package/types/screen/px2dp.d.ts +11 -0
- package/types/screen/px2dp.d.ts.map +1 -1
- package/types/screen/text-fit.d.ts +3 -0
- package/types/screen/text-fit.d.ts.map +1 -1
- package/types/utils/lazy.d.ts +33 -0
- package/types/utils/lazy.d.ts.map +1 -1
- package/types/utils/mode.d.ts +14 -0
- package/types/utils/mode.d.ts.map +1 -1
- package/dist/components/Echarts/demo.js +0 -201
- package/dist/components/RefreshList/demo.js +0 -9
- package/dist/components/RefreshList/demo1.js +0 -27
- package/dist/components/RefreshList/demo2.js +0 -9
- package/dist/components/StickHeaderView/demo.js +0 -37
- package/types/components/Echarts/demo.d.ts +0 -4
- package/types/components/Echarts/demo.d.ts.map +0 -1
- package/types/components/RefreshList/demo.d.ts +0 -2
- package/types/components/RefreshList/demo.d.ts.map +0 -1
- package/types/components/RefreshList/demo1.d.ts +0 -2
- package/types/components/RefreshList/demo1.d.ts.map +0 -1
- package/types/components/RefreshList/demo2.d.ts +0 -2
- package/types/components/RefreshList/demo2.d.ts.map +0 -1
- package/types/components/StickHeaderView/demo.d.ts +0 -4
- package/types/components/StickHeaderView/demo.d.ts.map +0 -1
package/dist/utils/lazy.js
CHANGED
|
@@ -1,33 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: shiguo
|
|
3
|
+
* @Date: 2022-04-27 18:17:54
|
|
4
|
+
* @LastEditors: shiguo
|
|
5
|
+
* @LastEditTime: 2023-03-23 15:07:44
|
|
6
|
+
* @FilePath: /@aks-dev/easyui/utils/lazy.ts
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @description: 睡眠时间
|
|
10
|
+
* @param {*}毫秒值
|
|
11
|
+
* @return {*}
|
|
12
|
+
*/
|
|
10
13
|
export const sleep = (msec) => {
|
|
11
14
|
return new Promise((resolve) => {
|
|
12
15
|
setTimeout(resolve, msec || 350);
|
|
13
16
|
});
|
|
14
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* @description: 获取随机色
|
|
20
|
+
* @param {*}
|
|
21
|
+
* @return {*}
|
|
22
|
+
*/
|
|
15
23
|
export const randomcolor = () => {
|
|
16
24
|
return `rgba(${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${1})`;
|
|
17
25
|
};
|
|
18
|
-
|
|
26
|
+
/**
|
|
27
|
+
* @description: 同步循环
|
|
28
|
+
* @param {*} dataList:数据源
|
|
29
|
+
* @return {*}
|
|
30
|
+
*/
|
|
31
|
+
export const syncLoop = async (dataList, callback) => {
|
|
19
32
|
const length = dataList.length;
|
|
20
33
|
const O = Object(dataList);
|
|
21
34
|
let k = 0;
|
|
22
35
|
while (k < length) {
|
|
23
36
|
if (k in O) {
|
|
24
37
|
const kValue = O[k];
|
|
25
|
-
|
|
38
|
+
await callback(kValue, k);
|
|
26
39
|
}
|
|
27
40
|
k++;
|
|
28
41
|
}
|
|
29
42
|
return Promise.resolve("SyncForeach loop over");
|
|
30
|
-
}
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @description: 对11位手机号码加*
|
|
46
|
+
* @return {*}
|
|
47
|
+
*/
|
|
31
48
|
export const encryptMobilePhoneNumber = (text) => {
|
|
32
49
|
if (text && text.length == 11) {
|
|
33
50
|
let y1 = text.slice(0, 3);
|
|
@@ -36,21 +53,31 @@ export const encryptMobilePhoneNumber = (text) => {
|
|
|
36
53
|
}
|
|
37
54
|
return text;
|
|
38
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* @description: 判断对象
|
|
58
|
+
* @return {*}
|
|
59
|
+
*/
|
|
60
|
+
//判断是否为对象(仅为对象,不是数组也不是null)
|
|
39
61
|
export const isObject = (exp) => {
|
|
40
62
|
return Object.prototype.toString.call(exp) == "[object Object]";
|
|
41
63
|
};
|
|
64
|
+
//判断是否为数组(仅为数组,不是对象也不是null)
|
|
42
65
|
export const isArray = (exp) => {
|
|
43
66
|
return Object.prototype.toString.call(exp) == "[object Array]";
|
|
44
67
|
};
|
|
68
|
+
//判断是否为字符串
|
|
45
69
|
export const isString = (exp) => {
|
|
46
70
|
return Object.prototype.toString.call(exp) == "[object String]";
|
|
47
71
|
};
|
|
72
|
+
//判断是否为数字(包括整数和实数)
|
|
48
73
|
export const isNumber = (exp) => {
|
|
49
74
|
return Object.prototype.toString.call(exp) == "[object Number]";
|
|
50
75
|
};
|
|
76
|
+
//判断是否为null
|
|
51
77
|
export const isNull = (exp) => {
|
|
52
78
|
return Object.prototype.toString.call(exp) == "[object Null]";
|
|
53
79
|
};
|
|
80
|
+
//判断是否为空对象
|
|
54
81
|
export const isNullObject = (obj) => {
|
|
55
82
|
if (obj == null || obj == undefined)
|
|
56
83
|
return true;
|
|
@@ -59,10 +86,14 @@ export const isNullObject = (obj) => {
|
|
|
59
86
|
}
|
|
60
87
|
return true;
|
|
61
88
|
};
|
|
89
|
+
//判断是否为undefined
|
|
62
90
|
export const isUndefined = (exp) => {
|
|
63
91
|
return Object.prototype.toString.call(exp) == "[object Undefined]";
|
|
64
92
|
};
|
|
93
|
+
/**判断两个对象是否相同 */
|
|
65
94
|
export const isObjectValueEqual = (a, b) => {
|
|
95
|
+
// Object.getOwnPropertyNames()方法返回一个由指定对象的所有自身属性的属性名(包括不可枚举属性但不包括Symbol值作为名称的属性)组成的数组
|
|
96
|
+
// 换句话来说 Object.getOwnPropertyNames()方法返回的是对象所有 key 组成的数组 list
|
|
66
97
|
let aProps = Object.getOwnPropertyNames(a);
|
|
67
98
|
let bProps = Object.getOwnPropertyNames(b);
|
|
68
99
|
if (aProps.length != bProps.length) {
|
|
@@ -94,6 +125,7 @@ export const deepEqual = (x, y) => {
|
|
|
94
125
|
if (prototype_x != prototype_y) {
|
|
95
126
|
return false;
|
|
96
127
|
}
|
|
128
|
+
/**以下类型相同比较 */
|
|
97
129
|
if (prototype_x == "[object Object]") {
|
|
98
130
|
if (Object.keys(x).length != Object.keys(y).length) {
|
|
99
131
|
return false;
|
|
@@ -115,38 +147,50 @@ export const deepEqual = (x, y) => {
|
|
|
115
147
|
}
|
|
116
148
|
}
|
|
117
149
|
else if (prototype_x == "[object Function]") {
|
|
150
|
+
/**过滤对函数的深比较 */
|
|
118
151
|
return true;
|
|
119
152
|
}
|
|
120
153
|
else {
|
|
154
|
+
/**其它类型值比较 */
|
|
121
155
|
return x == y;
|
|
122
156
|
}
|
|
123
157
|
return true;
|
|
124
158
|
};
|
|
159
|
+
// 定义一个深拷贝函数 接收目标target参数
|
|
125
160
|
export function deepClone(target) {
|
|
161
|
+
// 定义一个变量
|
|
126
162
|
let result;
|
|
163
|
+
// 如果当前需要深拷贝的是一个对象的话
|
|
127
164
|
if (typeof target === "object") {
|
|
165
|
+
// 如果是一个数组的话
|
|
128
166
|
if (Array.isArray(target)) {
|
|
129
|
-
result = [];
|
|
167
|
+
result = []; // 将result赋值为一个数组,并且执行遍历
|
|
130
168
|
for (let i in target) {
|
|
169
|
+
// 递归克隆数组中的每一项
|
|
131
170
|
result.push(deepClone(target[i]));
|
|
132
171
|
}
|
|
172
|
+
// 判断如果当前的值是null的话;直接赋值为null
|
|
133
173
|
}
|
|
134
174
|
else if (target === null) {
|
|
135
175
|
result = null;
|
|
176
|
+
// 判断如果当前的值是一个RegExp对象的话,直接赋值
|
|
136
177
|
}
|
|
137
178
|
else if (target.constructor === RegExp) {
|
|
138
179
|
result = target;
|
|
139
180
|
}
|
|
140
181
|
else {
|
|
182
|
+
// 否则是普通对象,直接for in循环,递归赋值对象的所有值
|
|
141
183
|
result = {};
|
|
142
184
|
for (let i in target) {
|
|
143
185
|
result[i] = deepClone(target[i]);
|
|
144
186
|
}
|
|
145
187
|
}
|
|
188
|
+
// 如果不是对象的话,就是基本数据类型,那么直接赋值
|
|
146
189
|
}
|
|
147
190
|
else {
|
|
148
191
|
result = target;
|
|
149
192
|
}
|
|
193
|
+
// 返回最终结果
|
|
150
194
|
return result;
|
|
151
195
|
}
|
|
152
196
|
export const isPhoneNumber = (str) => {
|
|
@@ -156,7 +200,13 @@ export const isPhoneNumber = (str) => {
|
|
|
156
200
|
}
|
|
157
201
|
return true;
|
|
158
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @param dateStr yyyy-MM-dd HH:mm:ss
|
|
206
|
+
* @returns {string}
|
|
207
|
+
*/
|
|
159
208
|
export const toDateFriendly = (dateStr) => {
|
|
209
|
+
//af-测试可用
|
|
160
210
|
if (!dateStr) {
|
|
161
211
|
return "";
|
|
162
212
|
}
|
|
@@ -203,16 +253,14 @@ export const isChainChar = (str) => {
|
|
|
203
253
|
return true;
|
|
204
254
|
};
|
|
205
255
|
export const isHaveChartCount = (str) => {
|
|
206
|
-
var _a;
|
|
207
256
|
if (/[a-z]/i.test(str)) {
|
|
208
|
-
return
|
|
257
|
+
return str.match(/[a-z]/gi)?.length;
|
|
209
258
|
}
|
|
210
259
|
return 0;
|
|
211
260
|
};
|
|
212
261
|
export const isHaveNumberCount = (str) => {
|
|
213
|
-
var _a;
|
|
214
262
|
if (/[0-9]/i.test(str)) {
|
|
215
|
-
return
|
|
263
|
+
return str.match(/[0-9]/gi)?.length;
|
|
216
264
|
}
|
|
217
265
|
return 0;
|
|
218
266
|
};
|
|
@@ -270,14 +318,18 @@ export const isHaveEmojiCharact = (substring) => {
|
|
|
270
318
|
}
|
|
271
319
|
return false;
|
|
272
320
|
};
|
|
321
|
+
/**
|
|
322
|
+
* @description: 获得32位随机字符
|
|
323
|
+
* @return {*}
|
|
324
|
+
*/
|
|
273
325
|
export const getUuid = () => {
|
|
274
326
|
let s = [];
|
|
275
327
|
let hexDigits = "0123456789abcdef";
|
|
276
328
|
for (var i = 0; i < 36; i++) {
|
|
277
329
|
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
|
278
330
|
}
|
|
279
|
-
s[14] = "4";
|
|
280
|
-
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
|
|
331
|
+
s[14] = "4"; // bits 12-15 of the time_hi_and_version field to 0010
|
|
332
|
+
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
|
|
281
333
|
s[8] = s[13] = s[18] = s[23] = "-";
|
|
282
334
|
` ][poi]`;
|
|
283
335
|
var uuid = s.join("");
|
package/dist/utils/mode.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: shiguo
|
|
3
|
+
* @Date: 2022-04-18 18:40:07
|
|
4
|
+
* @LastEditors: shiguo
|
|
5
|
+
* @LastEditTime: 2023-03-23 15:07:57
|
|
6
|
+
* @FilePath: /@aks-dev/easyui/utils/mode.ts
|
|
7
|
+
*/
|
|
1
8
|
import { PanResponder, Keyboard, Linking } from "react-native";
|
|
9
|
+
/**
|
|
10
|
+
* @description: 通过手势关闭键盘
|
|
11
|
+
* @return {*}
|
|
12
|
+
*/
|
|
2
13
|
export const keyboardDismissHandlers = PanResponder.create({
|
|
3
14
|
onStartShouldSetPanResponder: () => true,
|
|
4
15
|
onPanResponderGrant: Keyboard.dismiss,
|
|
5
16
|
}).panHandlers;
|
|
17
|
+
/**
|
|
18
|
+
* @description: 手势动作回调
|
|
19
|
+
* @param {*}
|
|
20
|
+
* @return {*}
|
|
21
|
+
*/
|
|
6
22
|
export const panHandlersCallback = (props) => {
|
|
7
23
|
return PanResponder.create({
|
|
8
24
|
onStartShouldSetPanResponder: () => true,
|
|
@@ -12,6 +28,11 @@ export const panHandlersCallback = (props) => {
|
|
|
12
28
|
onPanResponderRelease: props.ReleaseCallback,
|
|
13
29
|
}).panHandlers;
|
|
14
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @description: 拨打电话
|
|
33
|
+
* @param {number} phone
|
|
34
|
+
* @return {*}
|
|
35
|
+
*/
|
|
15
36
|
export const callTelephone = (phone) => {
|
|
16
37
|
let tel = "tel:" + phone;
|
|
17
38
|
Linking.canOpenURL(tel)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aks-dev/easyui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.197",
|
|
4
4
|
"description": "工具箱",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"release": "yarn semantic-release",
|
|
14
14
|
"cp": "cp -r -v src/assets dist/assets",
|
|
15
15
|
"rsync": "rsync -av --include='*/' --exclude='*.tsx' --exclude='demo.tsx' --exclude='*.ts' src/ dist/",
|
|
16
|
-
"build": "tsc && rsync -
|
|
16
|
+
"build": "tsc && rsync -rv --include='*/' --exclude='*.tsx' --exclude='demo.tsx' --exclude='*.ts' src/ dist/",
|
|
17
17
|
"types": "tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./types",
|
|
18
18
|
"dev": "tsc --watch",
|
|
19
19
|
"test:ts": "tsc --noEmit"
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@aks-dev/react-native-syan-image-picker": "^0.5.58",
|
|
65
|
-
"@tsconfig/react-native": "^3.0.9",
|
|
66
65
|
"@tsconfig/node22": "^22.0.5",
|
|
67
66
|
"@types/react": "^19.2.14",
|
|
68
67
|
"react": "^19.2.4",
|
|
@@ -2,7 +2,15 @@ import * as React from "react";
|
|
|
2
2
|
import { ColorValue } from "react-native";
|
|
3
3
|
export type AnimationModalProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* 动画方向,默认 'from-bottom'
|
|
7
|
+
* center-in 动画暂未实现
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
5
10
|
animationType?: "from-bottom" | "center-in";
|
|
11
|
+
/**
|
|
12
|
+
* 是否有遮罩,默认没有
|
|
13
|
+
*/
|
|
6
14
|
mask?: boolean;
|
|
7
15
|
style?: {
|
|
8
16
|
backgroundColor?: ColorValue | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationModal.d.ts","sourceRoot":"","sources":["../../../src/components/AnimationModal/AnimationModal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAUL,UAAU,EACX,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"AnimationModal.d.ts","sourceRoot":"","sources":["../../../src/components/AnimationModal/AnimationModal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAUL,UAAU,EACX,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,KAAK,CAAC,EAAE;QACN,eAAe,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KAC1C,CAAC;CACH,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,aAAa,CAAC;IAC1B,IAAI,EAAE,MAAM,aAAa,CAAC;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,aAAa,CAAC;IACvC,OAAO,EAAE,MAAM,GAAG,CAAC;CACpB,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,yBAAyB,CAC1D,KAAK,CAAC,eAAe,CAAC,mBAAmB,CAAC,GACxC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAkIpC,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export declare const getHtml: (props: {
|
|
2
2
|
backgroundColor: any;
|
|
3
3
|
}) => string;
|
|
4
|
+
/**
|
|
5
|
+
* https://res.actiiot.com/echarts/5.0.2/echarts.min.js
|
|
6
|
+
*
|
|
7
|
+
* https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.1/echarts.min.js
|
|
8
|
+
*/
|
|
4
9
|
export declare const toString: (obj: object) => string;
|
|
5
10
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/Echarts/helper.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO,GAAI,OAAO;IAAE,eAAe,EAAE,GAAG,CAAA;CAAE,WAoCpD,CAAA;
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/Echarts/helper.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO,GAAI,OAAO;IAAE,eAAe,EAAE,GAAG,CAAA;CAAE,WAoCpD,CAAA;AAED;;;;GAIG;AAEH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAcnC,CAAA"}
|
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { ImageSourcePropType, StyleProp, ViewStyle, ImageStyle, TextStyle } from "react-native";
|
|
3
3
|
type ViewModelProps = {
|
|
4
4
|
photos?: any[];
|
|
5
|
+
/**@deprecated disabled 图片点击状态,已弃用*/
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
imageViewer: {
|
|
7
8
|
imageUrls: any[];
|
|
@@ -14,9 +15,12 @@ type BindProps = {
|
|
|
14
15
|
setViewModel: (intent: Partial<ViewModelProps>) => void;
|
|
15
16
|
};
|
|
16
17
|
export type MutiPictureViewProps = {
|
|
18
|
+
/**@deprecated title 标题 ,已弃用*/
|
|
17
19
|
title?: string;
|
|
18
20
|
bind: BindProps;
|
|
21
|
+
/**default maxCount is 6 */
|
|
19
22
|
maxCount?: number;
|
|
23
|
+
/**default type is showImagePicker */
|
|
20
24
|
type?: "showImagePicker" | "openCamera";
|
|
21
25
|
style?: StyleProp<ViewStyle>;
|
|
22
26
|
addIcon?: ImageSourcePropType;
|
|
@@ -27,12 +31,17 @@ export type MutiPictureViewProps = {
|
|
|
27
31
|
itemContainerStyle?: StyleProp<ViewStyle>;
|
|
28
32
|
delIcon?: ImageSourcePropType;
|
|
29
33
|
delIconStyle?: StyleProp<ImageStyle>;
|
|
34
|
+
/**外边距 */
|
|
30
35
|
spacingHorizontal?: number;
|
|
36
|
+
/**内边距 */
|
|
31
37
|
spacingInner?: number;
|
|
38
|
+
/**仅仅看看,不增减图片 */
|
|
32
39
|
editable?: boolean;
|
|
40
|
+
/**这个属性会覆盖bind.viewModel.photos */
|
|
33
41
|
value?: (string | {
|
|
34
42
|
uri: string;
|
|
35
43
|
})[];
|
|
44
|
+
/**default false 空视图占位 */
|
|
36
45
|
showEmptyPlaceHolder?: boolean;
|
|
37
46
|
emptyPlaceHolderStyle?: StyleProp<ViewStyle>;
|
|
38
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutiPictureView.d.ts","sourceRoot":"","sources":["../../../src/components/MutiPictureView/MutiPictureView.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,mBAAmB,EAInB,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACV,MAAM,cAAc,CAAC;AAMtB,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"MutiPictureView.d.ts","sourceRoot":"","sources":["../../../src/components/MutiPictureView/MutiPictureView.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,mBAAmB,EAInB,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACV,MAAM,cAAc,CAAC;AAMtB,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE;QACX,SAAS,EAAE,GAAG,EAAE,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,cAAc,CAAC;IAC1B,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACzD,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,IAAI,CAAC,EAAE,iBAAiB,GAAG,YAAY,CAAC;IACxC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,YAAY,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,kBAAkB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,YAAY,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACrC,SAAS;IACT,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS;IACT,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACrC,yBAAyB;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9C,CAAC;;AAuVF,wBAA4E"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Animated, ViewProps } from "react-native";
|
|
3
3
|
export type StickHeaderViewProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 头部高度
|
|
6
|
+
*/
|
|
4
7
|
stickyHeaderY: number;
|
|
8
|
+
/**
|
|
9
|
+
* 滑动距离
|
|
10
|
+
*/
|
|
5
11
|
stickyScrollY: Animated.Value;
|
|
6
12
|
} & ViewProps;
|
|
7
13
|
declare const _default: React.NamedExoticComponent<StickHeaderViewProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickHeaderView.d.ts","sourceRoot":"","sources":["../../../src/components/StickHeaderView/StickHeaderView.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,QAAQ,EAER,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,oBAAoB,GAAG;
|
|
1
|
+
{"version":3,"file":"StickHeaderView.d.ts","sourceRoot":"","sources":["../../../src/components/StickHeaderView/StickHeaderView.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,QAAQ,EAER,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC;CAC/B,GAAG,SAAS,CAAC;;AA4Cd,wBAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextInputArea/TextInputArea.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,SAAS,EACT,SAAS,EACT,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAItB,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5B,cAAc,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInputArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextInputArea/TextInputArea.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,SAAS,EACT,SAAS,EACT,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAItB,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5B,cAAc,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,WAAW;IACX,YAAY,EAAE,MAAM,CAAC;IAErB,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,GAAG,cAAc,CAAC;;AAEnB,wBAmDE"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 获取设备品牌
|
|
3
|
+
* @return {*}
|
|
4
|
+
*/
|
|
1
5
|
export declare const getDeviceBrand: () => any;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated 测量不准确,已放弃
|
|
8
|
+
* @description: 获取status_bar_height
|
|
9
|
+
* @return {*}
|
|
10
|
+
*/
|
|
2
11
|
export declare const getStatusBarHeight: () => any;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated 测量不准确,已放弃
|
|
14
|
+
* @description: 获取navigation_bar_height
|
|
15
|
+
* @return {*}
|
|
16
|
+
*/
|
|
3
17
|
export declare const getNavigationBarHeight: () => any;
|
|
18
|
+
/**
|
|
19
|
+
* only android
|
|
20
|
+
* 返回桌面
|
|
21
|
+
*/
|
|
4
22
|
export declare const gotoDesktop: () => void;
|
|
5
23
|
//# sourceMappingURL=RNEasyui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNEasyui.d.ts","sourceRoot":"","sources":["../../src/jsbridge/RNEasyui.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RNEasyui.d.ts","sourceRoot":"","sources":["../../src/jsbridge/RNEasyui.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,eAAO,MAAM,cAAc,WAAkC,CAAC;AAC9D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,WAO9B,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,WAIlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,YAEvB,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 获取App版本号
|
|
3
|
+
* @param {*}
|
|
4
|
+
* @return {*}
|
|
5
|
+
*/
|
|
1
6
|
export declare const getAppVersion: () => any;
|
|
7
|
+
/**
|
|
8
|
+
* @description: 获取操作系统版本
|
|
9
|
+
*
|
|
10
|
+
react-native-device-info
|
|
11
|
+
* @return {*}
|
|
12
|
+
*/
|
|
2
13
|
export declare const getOSVersion: () => any;
|
|
14
|
+
/**
|
|
15
|
+
* @description: app升级
|
|
16
|
+
* @return {*}
|
|
17
|
+
*/
|
|
3
18
|
export type UpgradeOptions = {
|
|
4
19
|
title?: string;
|
|
5
20
|
version: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpgradeModule.d.ts","sourceRoot":"","sources":["../../src/jsbridge/UpgradeModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpgradeModule.d.ts","sourceRoot":"","sources":["../../src/jsbridge/UpgradeModule.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,aAAa,WAAsC,CAAC;AACjE;;;;;GAKG;AACH,eAAO,MAAM,YAAY,WAAqC,CAAC;AAC/D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,SAAS,cAAc,iBA0BpD,CAAC"}
|
package/types/screen/px2dp.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
/**设备宽度,单位 dp */
|
|
1
2
|
export declare const deviceWidth: number;
|
|
2
3
|
export declare const deviceHeight: number;
|
|
3
4
|
export declare const isAndroid: boolean;
|
|
4
5
|
export declare const isIos: boolean;
|
|
5
6
|
export declare const isiPhoneX: boolean;
|
|
6
7
|
export declare const px2dp: (uiElePx: number) => number;
|
|
8
|
+
/**
|
|
9
|
+
* @description: 状态栏的高度
|
|
10
|
+
* @param {*}
|
|
11
|
+
* @return {*}
|
|
12
|
+
*/
|
|
7
13
|
export declare const statusBarHeight: number;
|
|
14
|
+
/**
|
|
15
|
+
* @description: 顶部导航条的高度,高度不包含statusBarHeight
|
|
16
|
+
* @param {*}
|
|
17
|
+
* @return {*}
|
|
18
|
+
*/
|
|
8
19
|
export declare const navigationBarHeight: number;
|
|
9
20
|
//# sourceMappingURL=px2dp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"px2dp.d.ts","sourceRoot":"","sources":["../../src/screen/px2dp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"px2dp.d.ts","sourceRoot":"","sources":["../../src/screen/px2dp.ts"],"names":[],"mappings":"AASA,gBAAgB;AAChB,eAAO,MAAM,WAAW,QAAiC,CAAC;AAC1D,eAAO,MAAM,YAAY,QAAkC,CAAC;AAC5D,eAAO,MAAM,SAAS,SAA4B,CAAC;AACnD,eAAO,MAAM,KAAK,SAAwB,CAAC;AAC3C,eAAO,MAAM,SAAS,SAA8B,CAAC;AAUrD,eAAO,MAAM,KAAK,GAAI,SAAS,MAAM,WAEpC,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAIxB,CAAC;AACL;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAG5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-fit.d.ts","sourceRoot":"","sources":["../../src/screen/text-fit.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"text-fit.d.ts","sourceRoot":"","sources":["../../src/screen/text-fit.ts"],"names":[],"mappings":"AAOA;;GAEG"}
|
package/types/utils/lazy.d.ts
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 睡眠时间
|
|
3
|
+
* @param {*}毫秒值
|
|
4
|
+
* @return {*}
|
|
5
|
+
*/
|
|
1
6
|
export declare const sleep: (msec?: number) => Promise<unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* @description: 获取随机色
|
|
9
|
+
* @param {*}
|
|
10
|
+
* @return {*}
|
|
11
|
+
*/
|
|
2
12
|
export declare const randomcolor: () => string;
|
|
3
13
|
type SyncLoopCallBack = (item: any, index: number) => void;
|
|
14
|
+
/**
|
|
15
|
+
* @description: 同步循环
|
|
16
|
+
* @param {*} dataList:数据源
|
|
17
|
+
* @return {*}
|
|
18
|
+
*/
|
|
4
19
|
export declare const syncLoop: (dataList: any[], callback: SyncLoopCallBack) => Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* @description: 对11位手机号码加*
|
|
22
|
+
* @return {*}
|
|
23
|
+
*/
|
|
5
24
|
export declare const encryptMobilePhoneNumber: (text: string) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @description: 判断对象
|
|
27
|
+
* @return {*}
|
|
28
|
+
*/
|
|
6
29
|
export declare const isObject: (exp: any) => boolean;
|
|
7
30
|
export declare const isArray: (exp: any) => boolean;
|
|
8
31
|
export declare const isString: (exp: any) => boolean;
|
|
@@ -10,16 +33,26 @@ export declare const isNumber: (exp: any) => boolean;
|
|
|
10
33
|
export declare const isNull: (exp: any) => boolean;
|
|
11
34
|
export declare const isNullObject: (obj: any) => boolean;
|
|
12
35
|
export declare const isUndefined: (exp: any) => boolean;
|
|
36
|
+
/**判断两个对象是否相同 */
|
|
13
37
|
export declare const isObjectValueEqual: (a: any, b: any) => boolean;
|
|
14
38
|
export declare const deepEqual: (x: any, y: any) => boolean;
|
|
15
39
|
export declare function deepClone(target: any): any;
|
|
16
40
|
export declare const isPhoneNumber: (str: string) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param dateStr yyyy-MM-dd HH:mm:ss
|
|
44
|
+
* @returns {string}
|
|
45
|
+
*/
|
|
17
46
|
export declare const toDateFriendly: (dateStr: string) => string;
|
|
18
47
|
export declare const isChainChar: (str: string) => boolean;
|
|
19
48
|
export declare const isHaveChartCount: (str: string) => number | undefined;
|
|
20
49
|
export declare const isHaveNumberCount: (str: string) => number | undefined;
|
|
21
50
|
export declare const isHaveChinese: (text: string) => boolean;
|
|
22
51
|
export declare const isHaveEmojiCharact: (substring: string) => boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @description: 获得32位随机字符
|
|
54
|
+
* @return {*}
|
|
55
|
+
*/
|
|
23
56
|
export declare const getUuid: () => string;
|
|
24
57
|
export {};
|
|
25
58
|
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/utils/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/utils/lazy.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,qBAIlC,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,WAAW,cAEvB,CAAC;AAEF,KAAK,gBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAC3D;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAU,UAAU,GAAG,EAAE,EAAE,UAAU,gBAAgB,oBAazE,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,WAOpD,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,QAAQ,GAAI,KAAK,GAAG,YAEhC,CAAC;AAGF,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,YAE/B,CAAC;AAGF,eAAO,MAAM,QAAQ,GAAI,KAAK,GAAG,YAEhC,CAAC;AAGF,eAAO,MAAM,QAAQ,GAAI,KAAK,GAAG,YAEhC,CAAC;AAGF,eAAO,MAAM,MAAM,GAAI,KAAK,GAAG,YAE9B,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,KAAK,GAAG,YAOpC,CAAC;AAGF,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,YAEnC,CAAC;AACF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,GAAI,GAAG,GAAG,EAAE,GAAG,GAAG,YAqBhD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,GAAG,GAAG,EAAE,GAAG,GAAG,YA4CvC,CAAC;AAGF,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,CA+B1C;AAED,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,YAMxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,WAmC7C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,YAKtC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,uBAK3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,uBAK5C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,YAOzC,CAAC;AACF,eAAO,MAAM,kBAAkB,GAAI,WAAW,MAAM,YAyCnD,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,OAAO,cAYnB,CAAC"}
|
package/types/utils/mode.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
type CallBack = (...args: any[]) => void;
|
|
2
|
+
/**
|
|
3
|
+
* @description: 通过手势关闭键盘
|
|
4
|
+
* @return {*}
|
|
5
|
+
*/
|
|
2
6
|
export declare const keyboardDismissHandlers: import("react-native").GestureResponderHandlers;
|
|
7
|
+
/**
|
|
8
|
+
* @description: 手势动作回调
|
|
9
|
+
* @param {*}
|
|
10
|
+
* @return {*}
|
|
11
|
+
*/
|
|
3
12
|
export declare const panHandlersCallback: (props: {
|
|
4
13
|
GrantCallback: CallBack;
|
|
5
14
|
MoveCallback: CallBack;
|
|
6
15
|
ReleaseCallback: CallBack;
|
|
7
16
|
}) => import("react-native").GestureResponderHandlers;
|
|
17
|
+
/**
|
|
18
|
+
* @description: 拨打电话
|
|
19
|
+
* @param {number} phone
|
|
20
|
+
* @return {*}
|
|
21
|
+
*/
|
|
8
22
|
export declare const callTelephone: (phone: number | string) => void;
|
|
9
23
|
export {};
|
|
10
24
|
//# sourceMappingURL=mode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../src/utils/mode.ts"],"names":[],"mappings":"AASA,KAAK,QAAQ,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../src/utils/mode.ts"],"names":[],"mappings":"AASA,KAAK,QAAQ,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AACzC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,iDAGtB,CAAC;AACf;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO;IACzC,aAAa,EAAE,QAAQ,CAAC;IACxB,YAAY,EAAE,QAAQ,CAAC;IACvB,eAAe,EAAE,QAAQ,CAAC;CAC3B,oDAQA,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,GAAG,MAAM,SAanD,CAAC"}
|