@aks-dev/easyui 1.0.147 → 1.0.149

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.
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-05-05 13:57:25
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-10-24 16:07:27
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: 2022-09-26 17:26:37
7
- # @FilePath: /@aks-dev/taro-h5/i.sh
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:22:12
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=>{
@@ -86,7 +86,7 @@ export default React.forwardRef((props: RefreshListProps, ref: React.Ref<any>) =
86
86
  )
87
87
 
88
88
  case 'SectionList':
89
- let sectionListProps:SectionListRefreshProps = props as SectionListRefreshProps;
89
+ let sectionListProps: SectionListRefreshProps = props as SectionListRefreshProps;
90
90
  const { ItemSeparatorComponent = (_) => (
91
91
  <View style={{ height: 1 }} />
92
92
  ) } = sectionListProps
@@ -115,12 +115,12 @@ export default React.forwardRef((props: RefreshListProps, ref: React.Ref<any>) =
115
115
  )
116
116
 
117
117
  case 'SwipeList':
118
- let swipeListProps:SwipeListViewRefreshProps = props as SwipeListViewRefreshProps
118
+ let swipeListProps: SwipeListViewRefreshProps = props as SwipeListViewRefreshProps
119
119
  const { renderHiddenItem = (data, rowMap) => (
120
120
  <View style={{ backgroundColor: 'red', height: '100%', alignItems: 'flex-end', justifyContent: "center" }}>
121
121
  <Text>Right </Text>
122
122
  </View>
123
- ) } = swipeListProps
123
+ ) } = swipeListProps
124
124
  return (
125
125
  <SwipeListView
126
126
  {...rest as SwipeListViewRefreshProps}
@@ -188,15 +188,8 @@ const ListFooterComponent = React.memo((props: RefreshListProps) => {
188
188
  case RefreshState.EmptyData:
189
189
  if (props.renderListEmptyComponent) return props.renderListEmptyComponent()
190
190
  return (
191
- <View style={{
192
- width: '100%', height: '100%',
193
- display: 'flex',
194
- justifyContent: 'center', alignItems: 'center'
195
- }}>
196
- <TouchableOpacity style={{ minHeight: 44 }}
197
- onPress={() => {
198
- reload && reload()
199
- }}>
191
+ <View style={styles.container}>
192
+ <TouchableOpacity onPress={() => reload && reload()}>
200
193
  <Text style={styles.text}>{RefreshText.EmptyData}</Text>
201
194
  </TouchableOpacity>
202
195
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.147",
3
+ "version": "1.0.149",
4
4
  "description": "工具箱",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
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: 2022-07-18 16:26:29
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: 2022-08-25 17:02:22
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
+ }