重置 grid滚动条
This commit is contained in:
parent
811223c738
commit
4d4812e29b
|
@ -268,10 +268,17 @@ export default class menu extends React.Component {
|
|||
this.setState({ page: nextProps.page })
|
||||
this.setState({ page: nextProps.page, emptyText: nextProps.emptyText })
|
||||
this.setState({ dataCount: nextProps.dataCount })
|
||||
this.scrollPosition()
|
||||
this.gridPageLoad()
|
||||
}
|
||||
}
|
||||
|
||||
/* 重置grid滚动条 */
|
||||
scrollPosition() {
|
||||
document.getElementById('grid').scrollLeft = 0
|
||||
document.getElementById('grid').scrollTop = 0
|
||||
}
|
||||
|
||||
onConfirm = () => {}
|
||||
|
||||
onCancel = () => {}
|
||||
|
|
Loading…
Reference in New Issue