Commit 2ab781a5 authored by 张锡奇's avatar 张锡奇

接触表格组建滚动报错问题

parent 2803f6b4
......@@ -310,8 +310,10 @@ export default {
if(this.isLoad){
let thead = this.$refs['thead'];
let tbody = this.$refs['tbody'];
tbody.scrollTo(this.x,this.y);
thead.scrollTo(this.x,0);
if(this.LIST.length > 0){
tbody.scrollTo(this.x,this.y);
thead.scrollTo(this.x,0);
}
}
this.isLoad = true;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment