@aks-dev/easyui 1.0.67 → 1.0.70

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-04-25 17:57:29
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-07 09:19:52
5
+ * @LastEditTime: 2022-07-07 10:40:51
6
6
  * @FilePath: /@aks-dev/easyui/android/src/main/java/com/easyui/RNEasyuiModule.java
7
7
  */
8
8
 
@@ -68,7 +68,7 @@ public class RNEasyuiModule extends ReactContextBaseJavaModule {
68
68
 
69
69
 
70
70
  @ReactMethod
71
- public void toDesktop() {
71
+ public void gotoDesktop() {
72
72
  //启动一个意图,回到桌面
73
73
  Intent desktop = new Intent(Intent.ACTION_MAIN);
74
74
  desktop.addCategory(Intent.CATEGORY_HOME);
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:23:01
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-07 09:20:05
5
+ * @LastEditTime: 2022-07-07 10:41:19
6
6
  * @FilePath: /@aks-dev/easyui/jsbridge/RNEasyui.ts
7
7
  */
8
8
 
@@ -30,6 +30,6 @@ export const getNavigationBarHeight = () => {
30
30
  }
31
31
 
32
32
 
33
- export const toDesktop = () => {
34
- if (Platform.OS == 'android') RNEasyui?.goHome();
33
+ export const gotoDesktop = () => {
34
+ if (Platform.OS == 'android') RNEasyui?.gotoDesktop();
35
35
  }
package/jsbridge/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:23:01
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-07 09:21:12
5
+ * @LastEditTime: 2022-07-07 10:41:01
6
6
  * @FilePath: /@aks-dev/easyui/jsbridge/index.ts
7
7
  */
8
8
 
@@ -50,4 +50,4 @@ export declare const getNavigationBarHeight: () => Promise<number>;
50
50
  * only android
51
51
  * 返回桌面
52
52
  */
53
- export declare const toDesktop : ()=>void;
53
+ export declare const gotoDesktop: ()=>void;
@@ -61,10 +61,12 @@ export default (props: Partial<TableCellProps>) => {
61
61
  return undefined
62
62
  })()}
63
63
  </View>
64
- {showNav && <Image
65
- style={{ width: px2dp(9), height: px2dp(16), marginLeft: px2dp(8) }}
66
- source={require('./back.png')}
67
- />}
64
+ {showNav && (
65
+ props.nav || <Image
66
+ style={{ width: px2dp(9), height: px2dp(16), marginLeft: px2dp(8) }}
67
+ source={require('./back.png')}
68
+ />
69
+ )}
68
70
  </View>
69
71
 
70
72
  </TouchableOpacity>
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-21 15:30:07
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-07 17:11:32
6
- * @FilePath: /@aks/easyui/lib/TableCell/index.ts
5
+ * @LastEditTime: 2022-07-07 16:06:57
6
+ * @FilePath: /@aks-dev/easyui/lib/TableCell/index.ts
7
7
  */
8
8
 
9
9
  import * as React from 'react'
@@ -39,6 +39,7 @@ export type TableCellProps = {
39
39
  borderBottomWidth?: number | undefined;
40
40
  }
41
41
  showNav: boolean;
42
+ nav:React.ReactElement;
42
43
  }
43
44
 
44
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.67",
3
+ "version": "1.0.70",
4
4
  "description": "移动端App开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",