|
@@ -1,6 +1,5 @@
|
1
|
1
|
import React, { useEffect, useRef, useState, useImperativeHandle, useMemo } from 'react';
|
2
|
|
-import SpinBox from "@/components/Spin/SpinBox";
|
3
|
|
-
|
|
2
|
+import Spin3 from '@/components/Spin/Spin3';
|
4
|
3
|
import { ScrollView } from '@tarojs/components';
|
5
|
4
|
import Taro from '@tarojs/taro';
|
6
|
5
|
|
|
@@ -94,24 +93,24 @@ export default React.forwardRef((props, ref) => {
|
94
|
93
|
}))
|
95
|
94
|
|
96
|
95
|
return (
|
97
|
|
- <SpinBox loading={loading}>
|
98
|
|
- <ScrollView
|
99
|
|
- scrollY
|
100
|
|
- enhanced
|
101
|
|
- onScrollToLower={handleScrollToLower}
|
102
|
|
- {...leftProps}
|
103
|
|
- className={`${className} ${uqCls} list-view`}
|
104
|
|
- >
|
105
|
|
- {!render
|
106
|
|
- ? props.children
|
107
|
|
- : list.map((item, index) => render({ item, index }))
|
108
|
|
- }
|
109
|
|
- {!list || !list.length && noData}
|
110
|
|
-
|
111
|
|
- {list && list.length > 0 && !hasMore &&
|
112
|
|
- <view className='botton'>这是我的底线</view>
|
113
|
|
- }
|
114
|
|
- </ScrollView>
|
115
|
|
- </SpinBox>
|
|
96
|
+ <ScrollView
|
|
97
|
+ scrollY
|
|
98
|
+ enhanced
|
|
99
|
+ onScrollToLower={handleScrollToLower}
|
|
100
|
+ {...leftProps}
|
|
101
|
+ className={`${className} ${uqCls} list-view`}
|
|
102
|
+ >
|
|
103
|
+ {!render
|
|
104
|
+ ? props.children
|
|
105
|
+ : list.map((item, index) => render({ item, index }))
|
|
106
|
+ }
|
|
107
|
+ {!list || !list.length && noData}
|
|
108
|
+
|
|
109
|
+ <Spin3 show={loading} />
|
|
110
|
+
|
|
111
|
+ {list && list.length > 0 && !hasMore &&
|
|
112
|
+ <view className='botton'>这是我的底线</view>
|
|
113
|
+ }
|
|
114
|
+ </ScrollView>
|
116
|
115
|
)
|
117
|
116
|
})
|