@aks-dev/easyui 1.0.146 → 1.0.148
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/android/src/main/java/com/easyui/UpgradeModule.java +1 -3
- package/i.sh +3 -3
- package/lib/Echarts/EchartsView.tsx +2 -2
- package/lib/MenuView/index.ts +2 -2
- package/package.json +1 -1
- package/utils/index.ts +10 -2
- package/utils/lazy.ts +17 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-05-05 13:57:25
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2023-02-16 16:52:19
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/android/src/main/java/com/easyui/UpgradeModule.java
|
|
7
7
|
*/
|
|
8
8
|
package com.easyui;
|
|
@@ -44,7 +44,6 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
|
44
44
|
import com.facebook.react.bridge.ReactMethod;
|
|
45
45
|
import com.facebook.react.bridge.ReadableMap;
|
|
46
46
|
|
|
47
|
-
import org.jetbrains.annotations.NotNull;
|
|
48
47
|
import org.w3c.dom.Text;
|
|
49
48
|
|
|
50
49
|
import java.io.File;
|
|
@@ -70,7 +69,6 @@ public class UpgradeModule extends ReactContextBaseJavaModule {
|
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
@NonNull
|
|
73
|
-
@NotNull
|
|
74
72
|
@Override
|
|
75
73
|
public String getName() {
|
|
76
74
|
return "UpgradeModule";
|
package/i.sh
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
# @Author: shiguo
|
|
4
4
|
# @Date: 2022-09-26 17:09:38
|
|
5
5
|
# @LastEditors: shiguo
|
|
6
|
-
# @LastEditTime:
|
|
7
|
-
# @FilePath: /@aks-dev/
|
|
6
|
+
# @LastEditTime: 2023-02-06 17:08:37
|
|
7
|
+
# @FilePath: /@aks-dev/easyui/i.sh
|
|
8
8
|
###
|
|
9
9
|
|
|
10
10
|
#chmod u+x *.sh
|
|
11
11
|
git add .
|
|
12
12
|
git commit -m '脚本更新'
|
|
13
13
|
npm version patch
|
|
14
|
-
npm publish
|
|
14
|
+
npm publish
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-05-05 14:52:53
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2023-01-03 17:
|
|
5
|
+
* @LastEditTime: 2023-01-03 17:50:43
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/lib/Echarts/EchartsView.tsx
|
|
7
7
|
*/
|
|
8
8
|
import * as React from 'react'
|
|
@@ -148,7 +148,7 @@ const EchartsView: React.FC<EchartsViewProps> = (props) => {
|
|
|
148
148
|
}} // 设置空View,修复ioswebview闪白
|
|
149
149
|
style={{
|
|
150
150
|
backgroundColor: (props.style as ViewStyle)?.backgroundColor || 'transparent',
|
|
151
|
-
opacity: 0.99
|
|
151
|
+
opacity: 0.99,//解决闪退的办法
|
|
152
152
|
}} // 设置背景色透明,修复android闪白
|
|
153
153
|
scrollEnabled={false}
|
|
154
154
|
// onMessage={e=>{
|
package/lib/MenuView/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-07-14 18:09:02
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2023-01-03 17:
|
|
5
|
+
* @LastEditTime: 2023-01-03 17:30:04
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/lib/MenuView/index.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ export type MenuProps = {
|
|
|
24
24
|
data?: MenuItem[];
|
|
25
25
|
onItemClick?: (index: number, extra?: any) => void;
|
|
26
26
|
onContainerClick?:Function;
|
|
27
|
-
activeOpacity
|
|
27
|
+
activeOpacity?:number;
|
|
28
28
|
} & Readonly<{ children?: React.ReactNode | undefined }> & TouchableOpacityProps
|
|
29
29
|
|
|
30
30
|
|
package/package.json
CHANGED
package/utils/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-19 10:25:43
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2023-02-28 12:07:51
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/utils/index.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -85,4 +85,12 @@ export declare const isChainChar: (str: string) => boolean;
|
|
|
85
85
|
export declare const isHaveChartCount: (str: string) => number;
|
|
86
86
|
export declare const isHaveNumberCount: (str: string) => number;
|
|
87
87
|
export declare const isHaveChinese: (text: string) => boolean;
|
|
88
|
-
export declare const isHaveEmojiCharact: (substring: string) => boolean;
|
|
88
|
+
export declare const isHaveEmojiCharact: (substring: string) => boolean;
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description: 获得32位随机字符
|
|
93
|
+
* @return {*}
|
|
94
|
+
*/
|
|
95
|
+
export declare const getUuid: () => string;
|
|
96
|
+
|
package/utils/lazy.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-27 18:17:54
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2023-02-28 12:07:28
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/utils/lazy.ts
|
|
7
7
|
*/
|
|
8
8
|
import type { SyncLoopCallBack } from '.'
|
|
@@ -318,3 +318,19 @@ export const isHaveEmojiCharact = (substring: string) => {
|
|
|
318
318
|
|
|
319
319
|
return false
|
|
320
320
|
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
export const getUuid = () => {
|
|
325
|
+
let s: any[] = [];
|
|
326
|
+
let hexDigits = "0123456789abcdef";
|
|
327
|
+
for (var i = 0; i < 36; i++) {
|
|
328
|
+
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
|
329
|
+
}
|
|
330
|
+
s[14] = "4"; // bits 12-15 of the time_hi_and_version field to 0010
|
|
331
|
+
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
|
|
332
|
+
s[8] = s[13] = s[18] = s[23] = "-";
|
|
333
|
+
` ][poi]`
|
|
334
|
+
var uuid = s.join("");
|
|
335
|
+
return uuid
|
|
336
|
+
}
|