@aks-dev/easyui 1.0.20 → 1.0.23

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.
@@ -177,9 +177,10 @@ const ListFooterComponent = React.memo((props: RefreshListProps) => {
177
177
  display: 'flex',
178
178
  justifyContent: 'center', alignItems: 'center'
179
179
  }}>
180
- <TouchableOpacity onPress={() => {
181
- reload && reload()
182
- }}>
180
+ <TouchableOpacity style={{ minHeight: 44 }}
181
+ onPress={() => {
182
+ reload && reload()
183
+ }}>
183
184
  <Text style={styles.text}>{RefreshText.EmptyData}</Text>
184
185
  </TouchableOpacity>
185
186
  </View>
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author: your name
3
3
  * @Date: 2022-04-20 14:56:05
4
- * @LastEditTime: 2022-05-16 15:29:35
4
+ * @LastEditTime: 2022-05-16 15:50:31
5
5
  * @LastEditors: shiguo
6
6
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7
7
  * @FilePath: /@aks/easyui/lib/RefreshList/index.ts
@@ -25,9 +25,9 @@ import { IPropsSwipeListView } from 'react-native-swipe-list-view/types'
25
25
 
26
26
  type CommonProps = {
27
27
  // mode: keyof easyui.Mode;
28
- onHeaderRefresh: Function;
28
+ onHeaderRefresh: (info: any) => void;
29
29
  onFooterRefresh: (info: any) => void;
30
- reload: Function;
30
+ reload: () => void;
31
31
  refreshState: RefreshState;
32
32
  renderListEmptyComponent: () => React.ReactElement;
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.20",
3
+ "version": "1.0.23",
4
4
  "description": "爱科森开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
package/screen/index.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:25:14
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-04-26 11:53:21
6
- * @FilePath: /@aks/easy/screen/index.ts
5
+ * @LastEditTime: 2022-05-16 17:58:40
6
+ * @FilePath: /@aks/easyui/screen/index.ts
7
7
  */
8
8
  export declare const deviceWidth: number; //设备的宽度
9
9
  export declare const deviceHeight: number; //设备的高度
@@ -12,5 +12,15 @@ export declare const isIos: boolean;
12
12
  export declare const px2dp: (uiElePx: number) => number;
13
13
  export declare const px2sp: (fontSize: number) => number;
14
14
  export declare const isiPhoneX: boolean;
15
+ /**
16
+ * @description: 状态栏的高度
17
+ * @param {*}
18
+ * @return {*}
19
+ */
15
20
  export declare const statusBarHeight: number;
21
+ /**
22
+ * @description: 顶部导航条的高度
23
+ * @param {*}
24
+ * @return {*}
25
+ */
16
26
  export declare const navigationBarHeight: number;
package/screen/px2dp.tsx CHANGED
@@ -1,3 +1,10 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-18 14:32:25
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-05-16 17:46:40
6
+ * @FilePath: /@aks/easyui/screen/px2dp.tsx
7
+ */
1
8
  import { Dimensions, StatusBar, Platform } from 'react-native';
2
9
 
3
10