提交 4b05126c authored 作者: 王绍森's avatar 王绍森

ListViewDiy组件修改

上级 7a4237fb
.loadingWrapper {
text-align: center;
padding: 1em 0;
padding: 1em 0 100px;
:global {
.am-activity-indicator {
justify-content: center;
......
......@@ -73,6 +73,7 @@ export class ListViewDiy extends Component {
...searchValues,
};
this.props.request(params).then(res => {
this.setState({ hasSearched: true, })
if (res) {
const { rows, pageNo, pageSize, hasNextPage, } = res;
this.setState(({ dataSource, listViewData, }) => {
......@@ -83,7 +84,6 @@ export class ListViewDiy extends Component {
pageNo,
pageSize,
hasNextPage,
hasSearched: true,
};
});
responseCallback && responseCallback(res,)
......@@ -124,6 +124,7 @@ export class ListViewDiy extends Component {
pageSize={pageSize}
initialListSize={pageSize}
onEndReachedThreshold={10}
contentContainerStyle={{height: '100%', width: '100%'}}
style={{
height: '100%',
overflow: 'scroll',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论