优化gird代码 loading时间延长

This commit is contained in:
wangsongsole 2022-08-24 09:37:53 +08:00
parent a0d124b525
commit 24d8c1e754
1 changed files with 1 additions and 4 deletions

View File

@ -303,7 +303,7 @@ export default class menu extends React.Component {
this.setState({ pageLoading: true }) this.setState({ pageLoading: true })
setTimeout(() => { setTimeout(() => {
this.setState({ pageLoading: false }) this.setState({ pageLoading: false })
}, 500) }, 800)
} }
pageShow(e) {} pageShow(e) {}
gridEditChange(e) {} gridEditChange(e) {}
@ -558,17 +558,14 @@ export default class menu extends React.Component {
count: this.props.dataCount count: this.props.dataCount
}} }}
onPrevClick={(e) => { onPrevClick={(e) => {
this.gridPageLoad()
this.props.pageChange(e) this.props.pageChange(e)
}} }}
page={this.props.page} page={this.props.page}
pageFn={(e) => this.setState({ page: e })} pageFn={(e) => this.setState({ page: e })}
onNextClick={(e) => { onNextClick={(e) => {
this.gridPageLoad()
this.props.pageChange(e) this.props.pageChange(e)
}} }}
onJumpPage={(e) => { onJumpPage={(e) => {
this.gridPageLoad()
this.props.pageChange(e) this.props.pageChange(e)
}} }}
onCountChange={(e) => { onCountChange={(e) => {