@aks-dev/easyui 1.0.190 → 1.0.192

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.

Files changed (72) hide show
  1. package/dist/components/AnimationModal/AnimationModal.js +23 -41
  2. package/dist/components/Badge/Badge.js +7 -16
  3. package/dist/components/DottedLine/DottedLine.js +15 -20
  4. package/dist/components/Echarts/EchartsView.js +40 -77
  5. package/dist/components/Echarts/demo.js +201 -0
  6. package/dist/components/Echarts/helper.js +1 -16
  7. package/dist/components/Hud/AlertBottomView/AlertBottomView.js +49 -64
  8. package/dist/components/Hud/AlertSheetView/AlertSheetView.js +30 -34
  9. package/dist/components/Hud/AlertView/AlertView.js +52 -66
  10. package/dist/components/Hud/Hud.js +8 -19
  11. package/dist/components/Hud/Loading/Loading.js +7 -25
  12. package/dist/components/Hud/PopoverView/PopoverView.js +5 -20
  13. package/dist/components/Hud/Scanner/Scanner.js +71 -99
  14. package/dist/components/Hud/Toast/Toast.js +6 -16
  15. package/dist/components/MenuView/MenuView.js +32 -73
  16. package/dist/components/Modal/Modal.js +0 -7
  17. package/dist/components/MutiPictureView/MutiPictureView.js +78 -88
  18. package/dist/components/PictureViewer/PictureViewer.js +11 -32
  19. package/dist/components/RefreshList/RefreshList.js +43 -52
  20. package/dist/components/RefreshList/demo.js +9 -0
  21. package/dist/components/RefreshList/demo1.js +27 -0
  22. package/dist/components/RefreshList/demo2.js +9 -0
  23. package/dist/components/RichText/RichText.js +23 -23
  24. package/dist/components/StickHeaderView/StickHeaderView.js +2 -12
  25. package/dist/components/StickHeaderView/demo.js +37 -0
  26. package/dist/components/TableCell/TableCell.js +37 -53
  27. package/dist/components/TextInputArea/TextInputArea.js +22 -31
  28. package/dist/components/WithLoadingContainer/WithLoadingContainer.js +14 -31
  29. package/dist/index.js +0 -11
  30. package/dist/jsbridge/RNEasyui.js +1 -26
  31. package/dist/jsbridge/UpgradeModule.js +12 -21
  32. package/dist/jsbridge/index.js +0 -7
  33. package/dist/screen/index.js +0 -8
  34. package/dist/screen/px2dp.js +2 -25
  35. package/dist/screen/px2sp.js +5 -35
  36. package/dist/screen/text-fit.js +5 -21
  37. package/dist/utils/index.js +0 -7
  38. package/dist/utils/lazy.js +19 -71
  39. package/dist/utils/mode.js +0 -21
  40. package/package.json +3 -7
  41. package/types/components/AnimationModal/AnimationModal.d.ts +0 -8
  42. package/types/components/AnimationModal/AnimationModal.d.ts.map +1 -1
  43. package/types/components/Echarts/demo.d.ts +4 -0
  44. package/types/components/Echarts/demo.d.ts.map +1 -0
  45. package/types/components/Echarts/helper.d.ts +0 -5
  46. package/types/components/Echarts/helper.d.ts.map +1 -1
  47. package/types/components/MutiPictureView/MutiPictureView.d.ts +0 -9
  48. package/types/components/MutiPictureView/MutiPictureView.d.ts.map +1 -1
  49. package/types/components/RefreshList/demo.d.ts +2 -0
  50. package/types/components/RefreshList/demo.d.ts.map +1 -0
  51. package/types/components/RefreshList/demo1.d.ts +2 -0
  52. package/types/components/RefreshList/demo1.d.ts.map +1 -0
  53. package/types/components/RefreshList/demo2.d.ts +2 -0
  54. package/types/components/RefreshList/demo2.d.ts.map +1 -0
  55. package/types/components/StickHeaderView/StickHeaderView.d.ts +0 -6
  56. package/types/components/StickHeaderView/StickHeaderView.d.ts.map +1 -1
  57. package/types/components/StickHeaderView/demo.d.ts +4 -0
  58. package/types/components/StickHeaderView/demo.d.ts.map +1 -0
  59. package/types/components/TextInputArea/TextInputArea.d.ts +0 -1
  60. package/types/components/TextInputArea/TextInputArea.d.ts.map +1 -1
  61. package/types/jsbridge/RNEasyui.d.ts +0 -18
  62. package/types/jsbridge/RNEasyui.d.ts.map +1 -1
  63. package/types/jsbridge/UpgradeModule.d.ts +0 -15
  64. package/types/jsbridge/UpgradeModule.d.ts.map +1 -1
  65. package/types/screen/px2dp.d.ts +0 -11
  66. package/types/screen/px2dp.d.ts.map +1 -1
  67. package/types/screen/text-fit.d.ts +0 -3
  68. package/types/screen/text-fit.d.ts.map +1 -1
  69. package/types/utils/lazy.d.ts +0 -33
  70. package/types/utils/lazy.d.ts.map +1 -1
  71. package/types/utils/mode.d.ts +0 -14
  72. package/types/utils/mode.d.ts.map +1 -1
@@ -1,25 +1,10 @@
1
- /*
2
- * @Author: shiguo
3
- * @Date: 2022-04-15 14:15:07
4
- * @LastEditors: shiguo
5
- * @LastEditTime: 2022-06-02 11:03:59
6
- * @FilePath: /@aks-dev/easyui/screen/text-fit.tsx
7
- */
8
- /**
9
- * 全局配置Text
10
- */
11
1
  import React from 'react';
12
2
  import { Platform, Text as Text_spaceName, TextInput as TextInput_spaceName } from 'react-native';
13
3
  const Text = Text_spaceName;
14
4
  const TextInput = TextInput_spaceName;
15
- const textDefaultStyle = {
16
- ...Platform.select({
17
- android: { fontFamily: 'DroidSansFallback' }
18
- }),
19
- allowFontScaling: false,
20
- paddingVertical: 0,
21
- paddingHorizontal: 0,
22
- };
5
+ const textDefaultStyle = Object.assign(Object.assign({}, Platform.select({
6
+ android: { fontFamily: 'DroidSansFallback' }
7
+ })), { allowFontScaling: false, paddingVertical: 0, paddingHorizontal: 0 });
23
8
  const textRender = Text.render;
24
9
  Text.render = function (...args) {
25
10
  const origin = textRender.call(this, ...args);
@@ -31,8 +16,8 @@ const textInputDefaultStyle = {
31
16
  defaultProps: false,
32
17
  paddingVertical: 0,
33
18
  paddingHorizontal: 0,
34
- autoCapitalize: "none", //不自动大写
35
- autoCorrect: false, //不自动纠正拼写
19
+ autoCapitalize: "none",
20
+ autoCorrect: false,
36
21
  };
37
22
  const textInputRender = TextInput.render;
38
23
  TextInput.render = function (...args) {
@@ -41,7 +26,6 @@ TextInput.render = function (...args) {
41
26
  style: [textInputDefaultStyle, origin.props.style]
42
27
  });
43
28
  };
44
- /**关闭字体缩放 */
45
29
  if (!Text.defaultProps)
46
30
  Text.defaultProps = {};
47
31
  if (!TextInput.defaultProps)
@@ -1,9 +1,2 @@
1
- /*
2
- * @Author: shiguo
3
- * @Date: 2022-04-19 10:25:43
4
- * @LastEditors: shiguo
5
- * @LastEditTime: 2023-03-23 15:08:21
6
- * @FilePath: /@aks-dev/easyui/utils/index.ts
7
- */
8
1
  export * from '../utils/mode';
9
2
  export * from '../utils/lazy';
@@ -1,50 +1,33 @@
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
- */
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
13
10
  export const sleep = (msec) => {
14
11
  return new Promise((resolve) => {
15
12
  setTimeout(resolve, msec || 350);
16
13
  });
17
14
  };
18
- /**
19
- * @description: 获取随机色
20
- * @param {*}
21
- * @return {*}
22
- */
23
15
  export const randomcolor = () => {
24
16
  return `rgba(${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${1})`;
25
17
  };
26
- /**
27
- * @description: 同步循环
28
- * @param {*} dataList:数据源
29
- * @return {*}
30
- */
31
- export const syncLoop = async (dataList, callback) => {
18
+ export const syncLoop = (dataList, callback) => __awaiter(void 0, void 0, void 0, function* () {
32
19
  const length = dataList.length;
33
20
  const O = Object(dataList);
34
21
  let k = 0;
35
22
  while (k < length) {
36
23
  if (k in O) {
37
24
  const kValue = O[k];
38
- await callback(kValue, k);
25
+ yield callback(kValue, k);
39
26
  }
40
27
  k++;
41
28
  }
42
29
  return Promise.resolve("SyncForeach loop over");
43
- };
44
- /**
45
- * @description: 对11位手机号码加*
46
- * @return {*}
47
- */
30
+ });
48
31
  export const encryptMobilePhoneNumber = (text) => {
49
32
  if (text && text.length == 11) {
50
33
  let y1 = text.slice(0, 3);
@@ -53,31 +36,21 @@ export const encryptMobilePhoneNumber = (text) => {
53
36
  }
54
37
  return text;
55
38
  };
56
- /**
57
- * @description: 判断对象
58
- * @return {*}
59
- */
60
- //判断是否为对象(仅为对象,不是数组也不是null)
61
39
  export const isObject = (exp) => {
62
40
  return Object.prototype.toString.call(exp) == "[object Object]";
63
41
  };
64
- //判断是否为数组(仅为数组,不是对象也不是null)
65
42
  export const isArray = (exp) => {
66
43
  return Object.prototype.toString.call(exp) == "[object Array]";
67
44
  };
68
- //判断是否为字符串
69
45
  export const isString = (exp) => {
70
46
  return Object.prototype.toString.call(exp) == "[object String]";
71
47
  };
72
- //判断是否为数字(包括整数和实数)
73
48
  export const isNumber = (exp) => {
74
49
  return Object.prototype.toString.call(exp) == "[object Number]";
75
50
  };
76
- //判断是否为null
77
51
  export const isNull = (exp) => {
78
52
  return Object.prototype.toString.call(exp) == "[object Null]";
79
53
  };
80
- //判断是否为空对象
81
54
  export const isNullObject = (obj) => {
82
55
  if (obj == null || obj == undefined)
83
56
  return true;
@@ -86,14 +59,10 @@ export const isNullObject = (obj) => {
86
59
  }
87
60
  return true;
88
61
  };
89
- //判断是否为undefined
90
62
  export const isUndefined = (exp) => {
91
63
  return Object.prototype.toString.call(exp) == "[object Undefined]";
92
64
  };
93
- /**判断两个对象是否相同 */
94
65
  export const isObjectValueEqual = (a, b) => {
95
- // Object.getOwnPropertyNames()方法返回一个由指定对象的所有自身属性的属性名(包括不可枚举属性但不包括Symbol值作为名称的属性)组成的数组
96
- // 换句话来说 Object.getOwnPropertyNames()方法返回的是对象所有 key 组成的数组 list
97
66
  let aProps = Object.getOwnPropertyNames(a);
98
67
  let bProps = Object.getOwnPropertyNames(b);
99
68
  if (aProps.length != bProps.length) {
@@ -125,7 +94,6 @@ export const deepEqual = (x, y) => {
125
94
  if (prototype_x != prototype_y) {
126
95
  return false;
127
96
  }
128
- /**以下类型相同比较 */
129
97
  if (prototype_x == "[object Object]") {
130
98
  if (Object.keys(x).length != Object.keys(y).length) {
131
99
  return false;
@@ -147,50 +115,38 @@ export const deepEqual = (x, y) => {
147
115
  }
148
116
  }
149
117
  else if (prototype_x == "[object Function]") {
150
- /**过滤对函数的深比较 */
151
118
  return true;
152
119
  }
153
120
  else {
154
- /**其它类型值比较 */
155
121
  return x == y;
156
122
  }
157
123
  return true;
158
124
  };
159
- // 定义一个深拷贝函数 接收目标target参数
160
125
  export function deepClone(target) {
161
- // 定义一个变量
162
126
  let result;
163
- // 如果当前需要深拷贝的是一个对象的话
164
127
  if (typeof target === "object") {
165
- // 如果是一个数组的话
166
128
  if (Array.isArray(target)) {
167
- result = []; // 将result赋值为一个数组,并且执行遍历
129
+ result = [];
168
130
  for (let i in target) {
169
- // 递归克隆数组中的每一项
170
131
  result.push(deepClone(target[i]));
171
132
  }
172
- // 判断如果当前的值是null的话;直接赋值为null
173
133
  }
174
134
  else if (target === null) {
175
135
  result = null;
176
- // 判断如果当前的值是一个RegExp对象的话,直接赋值
177
136
  }
178
137
  else if (target.constructor === RegExp) {
179
138
  result = target;
180
139
  }
181
140
  else {
182
- // 否则是普通对象,直接for in循环,递归赋值对象的所有值
183
141
  result = {};
184
142
  for (let i in target) {
185
143
  result[i] = deepClone(target[i]);
186
144
  }
187
145
  }
188
- // 如果不是对象的话,就是基本数据类型,那么直接赋值
189
146
  }
190
147
  else {
191
148
  result = target;
192
149
  }
193
- // 返回最终结果
194
150
  return result;
195
151
  }
196
152
  export const isPhoneNumber = (str) => {
@@ -200,13 +156,7 @@ export const isPhoneNumber = (str) => {
200
156
  }
201
157
  return true;
202
158
  };
203
- /**
204
- *
205
- * @param dateStr yyyy-MM-dd HH:mm:ss
206
- * @returns {string}
207
- */
208
159
  export const toDateFriendly = (dateStr) => {
209
- //af-测试可用
210
160
  if (!dateStr) {
211
161
  return "";
212
162
  }
@@ -253,14 +203,16 @@ export const isChainChar = (str) => {
253
203
  return true;
254
204
  };
255
205
  export const isHaveChartCount = (str) => {
206
+ var _a;
256
207
  if (/[a-z]/i.test(str)) {
257
- return str.match(/[a-z]/gi)?.length;
208
+ return (_a = str.match(/[a-z]/gi)) === null || _a === void 0 ? void 0 : _a.length;
258
209
  }
259
210
  return 0;
260
211
  };
261
212
  export const isHaveNumberCount = (str) => {
213
+ var _a;
262
214
  if (/[0-9]/i.test(str)) {
263
- return str.match(/[0-9]/gi)?.length;
215
+ return (_a = str.match(/[0-9]/gi)) === null || _a === void 0 ? void 0 : _a.length;
264
216
  }
265
217
  return 0;
266
218
  };
@@ -318,18 +270,14 @@ export const isHaveEmojiCharact = (substring) => {
318
270
  }
319
271
  return false;
320
272
  };
321
- /**
322
- * @description: 获得32位随机字符
323
- * @return {*}
324
- */
325
273
  export const getUuid = () => {
326
274
  let s = [];
327
275
  let hexDigits = "0123456789abcdef";
328
276
  for (var i = 0; i < 36; i++) {
329
277
  s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
330
278
  }
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
279
+ s[14] = "4";
280
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
333
281
  s[8] = s[13] = s[18] = s[23] = "-";
334
282
  ` ][poi]`;
335
283
  var uuid = s.join("");
@@ -1,24 +1,8 @@
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
- */
8
1
  import { PanResponder, Keyboard, Linking } from "react-native";
9
- /**
10
- * @description: 通过手势关闭键盘
11
- * @return {*}
12
- */
13
2
  export const keyboardDismissHandlers = PanResponder.create({
14
3
  onStartShouldSetPanResponder: () => true,
15
4
  onPanResponderGrant: Keyboard.dismiss,
16
5
  }).panHandlers;
17
- /**
18
- * @description: 手势动作回调
19
- * @param {*}
20
- * @return {*}
21
- */
22
6
  export const panHandlersCallback = (props) => {
23
7
  return PanResponder.create({
24
8
  onStartShouldSetPanResponder: () => true,
@@ -28,11 +12,6 @@ export const panHandlersCallback = (props) => {
28
12
  onPanResponderRelease: props.ReleaseCallback,
29
13
  }).panHandlers;
30
14
  };
31
- /**
32
- * @description: 拨打电话
33
- * @param {number} phone
34
- * @return {*}
35
- */
36
15
  export const callTelephone = (phone) => {
37
16
  let tel = "tel:" + phone;
38
17
  Linking.canOpenURL(tel)
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.190",
3
+ "version": "1.0.192",
4
4
  "description": "工具箱",
5
- "exports": {
6
- ".": {
7
- "types": "./types/index.d.ts",
8
- "import": "./dist/index.js"
9
- }
10
- },
5
+ "main": "./dist/index.js",
6
+ "types": "./types/index.d.ts",
11
7
  "scripts": {
12
8
  "test": "yarn run lint",
13
9
  "release": "yarn semantic-release",
@@ -2,15 +2,7 @@ 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
- */
10
5
  animationType?: "from-bottom" | "center-in";
11
- /**
12
- * 是否有遮罩,默认没有
13
- */
14
6
  mask?: boolean;
15
7
  style?: {
16
8
  backgroundColor?: ColorValue | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationModal.d.ts","sourceRoot":"","sources":["../../../src/components/AnimationModal/AnimationModal.tsx"],"names":[],"mappings":"AAQA,OAAO,K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1B,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"}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
4
+ //# sourceMappingURL=demo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../src/components/Echarts/demo.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAM/B,wBAsME"}
@@ -1,10 +1,5 @@
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
- */
9
4
  export declare const toString: (obj: object) => string;
10
5
  //# 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;AAED;;;;GAIG;AAEH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAcnC,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;AAQD,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,WAcnC,CAAA"}
@@ -2,7 +2,6 @@ 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 图片点击状态,已弃用*/
6
5
  disabled?: boolean;
7
6
  imageViewer: {
8
7
  imageUrls: any[];
@@ -15,12 +14,9 @@ type BindProps = {
15
14
  setViewModel: (intent: Partial<ViewModelProps>) => void;
16
15
  };
17
16
  export type MutiPictureViewProps = {
18
- /**@deprecated title 标题 ,已弃用*/
19
17
  title?: string;
20
18
  bind: BindProps;
21
- /**default maxCount is 6 */
22
19
  maxCount?: number;
23
- /**default type is showImagePicker */
24
20
  type?: "showImagePicker" | "openCamera";
25
21
  style?: StyleProp<ViewStyle>;
26
22
  addIcon?: ImageSourcePropType;
@@ -31,17 +27,12 @@ export type MutiPictureViewProps = {
31
27
  itemContainerStyle?: StyleProp<ViewStyle>;
32
28
  delIcon?: ImageSourcePropType;
33
29
  delIconStyle?: StyleProp<ImageStyle>;
34
- /**外边距 */
35
30
  spacingHorizontal?: number;
36
- /**内边距 */
37
31
  spacingInner?: number;
38
- /**仅仅看看,不增减图片 */
39
32
  editable?: boolean;
40
- /**这个属性会覆盖bind.viewModel.photos */
41
33
  value?: (string | {
42
34
  uri: string;
43
35
  })[];
44
- /**default false 空视图占位 */
45
36
  showEmptyPlaceHolder?: boolean;
46
37
  emptyPlaceHolderStyle?: StyleProp<ViewStyle>;
47
38
  };
@@ -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,cAA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AC,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;IAErC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAErC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9C,CAAC;;AAuVF,wBAA4E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=demo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../src/components/RefreshList/demo.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=demo1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo1.d.ts","sourceRoot":"","sources":["../../../src/components/RefreshList/demo1.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=demo2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo2.d.ts","sourceRoot":"","sources":["../../../src/components/RefreshList/demo2.tsx"],"names":[],"mappings":""}
@@ -1,13 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Animated, ViewProps } from "react-native";
3
3
  export type StickHeaderViewProps = {
4
- /**
5
- * 头部高度
6
- */
7
4
  stickyHeaderY: number;
8
- /**
9
- * 滑动距离
10
- */
11
5
  stickyScrollY: Animated.Value;
12
6
  } & ViewProps;
13
7
  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;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
+ {"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;IAIjC,aAAa,EAAE,MAAM,CAAC;IAKtB,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC;CAC/B,GAAG,SAAS,CAAC;;AA4Cd,wBAA+B"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ declare const _default: ({}: {}) => React.JSX.Element;
3
+ export default _default;
4
+ //# sourceMappingURL=demo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../src/components/StickHeaderView/demo.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;yBAcV,MAAE;AAAlB,wBAoEE"}
@@ -8,7 +8,6 @@ export type TextInputAreaProps = {
8
8
  maxLength: number;
9
9
  style: StyleProp<ViewStyle>;
10
10
  textInputStyle: StyleProp<TextStyle>;
11
- /**设置默认值 */
12
11
  defaultValue: string;
13
12
  on: (content: string) => void;
14
13
  } & TextInputProps;
@@ -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;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
+ {"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;IAErC,YAAY,EAAE,MAAM,CAAC;IAErB,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,GAAG,cAAc,CAAC;;AAEnB,wBAmDE"}
@@ -1,23 +1,5 @@
1
- /**
2
- * @description: 获取设备品牌
3
- * @return {*}
4
- */
5
1
  export declare const getDeviceBrand: () => any;
6
- /**
7
- * @deprecated 测量不准确,已放弃
8
- * @description: 获取status_bar_height
9
- * @return {*}
10
- */
11
2
  export declare const getStatusBarHeight: () => any;
12
- /**
13
- * @deprecated 测量不准确,已放弃
14
- * @description: 获取navigation_bar_height
15
- * @return {*}
16
- */
17
3
  export declare const getNavigationBarHeight: () => any;
18
- /**
19
- * only android
20
- * 返回桌面
21
- */
22
4
  export declare const gotoDesktop: () => void;
23
5
  //# sourceMappingURL=RNEasyui.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"RNEasyui.d.ts","sourceRoot":"","sources":["../../src/jsbridge/RNEasyui.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc,WAAkC,CAAC;AAM9D,eAAO,MAAM,kBAAkB,WAO9B,CAAC;AAMF,eAAO,MAAM,sBAAsB,WAIlC,CAAC;AAMF,eAAO,MAAM,WAAW,YAEvB,CAAC"}
@@ -1,20 +1,5 @@
1
- /**
2
- * @description: 获取App版本号
3
- * @param {*}
4
- * @return {*}
5
- */
6
1
  export declare const getAppVersion: () => any;
7
- /**
8
- * @description: 获取操作系统版本
9
- *
10
- react-native-device-info
11
- * @return {*}
12
- */
13
2
  export declare const getOSVersion: () => any;
14
- /**
15
- * @description: app升级
16
- * @return {*}
17
- */
18
3
  export type UpgradeOptions = {
19
4
  title?: string;
20
5
  version: string;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"UpgradeModule.d.ts","sourceRoot":"","sources":["../../src/jsbridge/UpgradeModule.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa,WAAsC,CAAC;AAOjE,eAAO,MAAM,YAAY,WAAqC,CAAC;AAK/D,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"}
@@ -1,20 +1,9 @@
1
- /**设备宽度,单位 dp */
2
1
  export declare const deviceWidth: number;
3
2
  export declare const deviceHeight: number;
4
3
  export declare const isAndroid: boolean;
5
4
  export declare const isIos: boolean;
6
5
  export declare const isiPhoneX: boolean;
7
6
  export declare const px2dp: (uiElePx: number) => number;
8
- /**
9
- * @description: 状态栏的高度
10
- * @param {*}
11
- * @return {*}
12
- */
13
7
  export declare const statusBarHeight: number;
14
- /**
15
- * @description: 顶部导航条的高度,高度不包含statusBarHeight
16
- * @param {*}
17
- * @return {*}
18
- */
19
8
  export declare const navigationBarHeight: number;
20
9
  //# sourceMappingURL=px2dp.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"px2dp.d.ts","sourceRoot":"","sources":["../../src/screen/px2dp.ts"],"names":[],"mappings":"AAUA,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;AAMF,eAAO,MAAM,eAAe,QAIxB,CAAC;AAML,eAAO,MAAM,mBAAmB,QAG5B,CAAC"}
@@ -1,5 +1,2 @@
1
- /**
2
- * 全局配置Text
3
- */
4
1
  export {};
5
2
  //# sourceMappingURL=text-fit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-fit.d.ts","sourceRoot":"","sources":["../../src/screen/text-fit.ts"],"names":[],"mappings":"AAOA;;GAEG"}
1
+ {"version":3,"file":"text-fit.d.ts","sourceRoot":"","sources":["../../src/screen/text-fit.ts"],"names":[],"mappings":""}