1.Scrollbars是react-custom-scrollbars插件暴露出来的组件
scrollRef.current.view.scroll({
top: 0,
left: 0,
behavior: 'smooth',
});
2.原生js scroll平滑效果
// left 是文档中的横轴坐标。
// top 是文档中的纵轴坐标。
window.scrollTo({
top: 1000,
left: 0,
behavior: "smooth"
})