重置 grid滚动条

This commit is contained in:
wangsongsole 2022-08-24 10:57:37 +08:00
parent 811223c738
commit 4d4812e29b
1 changed files with 7 additions and 0 deletions

View File

@ -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 = () => {}