@aks-dev/easyui 1.0.113 → 1.0.114
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.
|
@@ -170,7 +170,7 @@ const ListFooterComponent = React.memo((props: RefreshListProps) => {
|
|
|
170
170
|
</View>
|
|
171
171
|
)
|
|
172
172
|
case RefreshState.EmptyData:
|
|
173
|
-
if (props.
|
|
173
|
+
if (props.ListEmptyComponent) return props.ListEmptyComponent()
|
|
174
174
|
return (
|
|
175
175
|
<View style={{
|
|
176
176
|
width: '100%', height: '100%',
|
package/lib/RefreshList/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: your name
|
|
3
3
|
* @Date: 2022-04-20 14:56:05
|
|
4
|
-
* @LastEditTime: 2022-
|
|
4
|
+
* @LastEditTime: 2022-11-03 10:34:30
|
|
5
5
|
* @LastEditors: shiguo
|
|
6
6
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
7
|
-
* @FilePath: /@aks/easyui/lib/RefreshList/index.ts
|
|
7
|
+
* @FilePath: /@aks-dev/easyui/lib/RefreshList/index.ts
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import * as React from 'react'
|
|
@@ -29,7 +29,7 @@ type CommonProps = {
|
|
|
29
29
|
onFooterRefresh: (info: any) => void;
|
|
30
30
|
reload: () => void;
|
|
31
31
|
refreshState: RefreshState;
|
|
32
|
-
|
|
32
|
+
ListEmptyComponent: () => React.ReactElement;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|