1.设置table的ref为tableList
2.设置滚动至顶部
this.$refs.tableList.bodyWrapper.scrollTop =0;
3.设置滚动至底部
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper. scrollHeight;
element-ui——el-table 组件设置滚动位置
最新推荐文章于 2024-04-28 16:06:11 发布