废话不多说,直接上代码:
<el-table ref="table" ></el-table>
this.$refs.table.$refs.scrollWrapper.setScrollTop(0);
打印出来各种看,终于找到,亲测有效~~
废话不多说,直接上代码:
<el-table ref="table" ></el-table>
this.$refs.table.$refs.scrollWrapper.setScrollTop(0);
打印出来各种看,终于找到,亲测有效~~