@aks-dev/easyui 1.0.148 → 1.0.150

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-19 10:23:01
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-11-18 19:09:00
5
+ * @LastEditTime: 2023-03-10 14:05:17
6
6
  * @FilePath: /@aks-dev/easyui/jsbridge/RNEasyui.ts
7
7
  */
8
8
 
@@ -36,3 +36,7 @@ export const getNavigationBarHeight = () => {
36
36
  export const gotoDesktop = () => {
37
37
  if (Platform.OS == 'android') RNEasyui?.gotoDesktop();
38
38
  }
39
+
40
+
41
+
42
+
@@ -100,6 +100,7 @@ export default React.forwardRef<AlertViewOptions.RefAttributes, {}>((_, ref) =>
100
100
  <TouchableOpacity
101
101
  style={[styles.cancel, { marginRight: state.confirmText ? px2dp(15) : 0 }, state.cancelContainerStyle]}
102
102
  activeOpacity={0.8}
103
+ disabled={state.cancelDisabled}
103
104
  onPress={() => {
104
105
  hide()
105
106
  cancelCallbackRef.current && cancelCallbackRef.current()
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-22 17:30:32
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-09-09 10:53:51
6
- * @FilePath: /@aks-dev/easyui/lib/Hud/AlertView/index.ts
5
+ * @LastEditTime: 2023-03-10 12:21:30
6
+ * @FilePath: /@aks-dev/easyui/lib/Hud/AlertView/index.d.ts
7
7
  */
8
8
  import * as React from 'react'
9
9
 
@@ -19,6 +19,7 @@ export declare type AlertViewOptions = {
19
19
  cancelContainerStyle: StyleProp<ViewStyle>;
20
20
  cancelTextStyle: StyleProp<TextStyle>;
21
21
  cancel: () => void;
22
+ cancelDisabled:boolean;
22
23
  confirmText: string;
23
24
  confirmContainerStyle: StyleProp<ViewStyle>;
24
25
  confirmTextStyle: StyleProp<TextStyle>;
@@ -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.148",
3
+ "version": "1.0.150",
4
4
  "description": "工具箱",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
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: 2023-02-28 12:07:28
5
+ * @LastEditTime: 2023-03-10 14:04:08
6
6
  * @FilePath: /@aks-dev/easyui/utils/lazy.ts
7
7
  */
8
8
  import type { SyncLoopCallBack } from '.'
@@ -334,3 +334,5 @@ export const getUuid = () => {
334
334
  var uuid = s.join("");
335
335
  return uuid
336
336
  }
337
+
338
+