优化gird代码 loading时间延长
This commit is contained in:
parent
a0d124b525
commit
24d8c1e754
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue