<el-table ref="tableRolling" height="632px" style="width: 100%;font-size: 24px;color: whitesmoke">
</el-table>
// 方法
rollingTable() {
const tableWrapper = this.$refs.tableRolling.$el.querySelector('.el-table__body-wrapper');
tableWrapper.scrollTop += this.step;
this.scrollAmount += this.step;
if (this.scrollAmount < tableWrapper.scrollHeight - tableWrapper.clientHeight) {
setTimeout(this.autoScroll, this.delay);
}
},
ElementUi Table无限滚动
最新推荐文章于 2024-07-11 00:15:48 发布