esoftplay 0.0.141-a → 0.0.141-b
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.
- package/modules/lib/infinite.tsx +2 -0
- package/package.json +1 -1
package/modules/lib/infinite.tsx
CHANGED
|
@@ -130,6 +130,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>
|
|
|
130
130
|
this.isStop = true
|
|
131
131
|
this.setState((state: LibInfiniteState, props: LibInfiniteProps) => {
|
|
132
132
|
return {
|
|
133
|
+
isStop: this.isStop,
|
|
133
134
|
error: this.props.error || esp.lang("lib/infinite", "empty_data"),
|
|
134
135
|
data: page == 0
|
|
135
136
|
? []
|
|
@@ -142,6 +143,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>
|
|
|
142
143
|
this.setState((state: LibInfiniteState, props: LibInfiniteProps) => {
|
|
143
144
|
const latestData = [...state.data, ...mainIndex.list]
|
|
144
145
|
return {
|
|
146
|
+
isStop: this.isStop,
|
|
145
147
|
error: '',
|
|
146
148
|
data: page == 0
|
|
147
149
|
? (typeof this.props?.filterData == 'function' ? mainIndex.list.filter(this.props.filterData) : mainIndex.list)
|