@aks-dev/easyui 1.0.148 → 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.
|
@@ -86,7 +86,7 @@ export default React.forwardRef((props: RefreshListProps, ref: React.Ref<any>) =
|
|
|
86
86
|
)
|
|
87
87
|
|
|
88
88
|
case 'SectionList':
|
|
89
|
-
|
|
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
|
-
|
|
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>
|