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

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

parent 2803f6b4
...@@ -310,9 +310,11 @@ export default { ...@@ -310,9 +310,11 @@ export default {
if(this.isLoad){ if(this.isLoad){
let thead = this.$refs['thead']; let thead = this.$refs['thead'];
let tbody = this.$refs['tbody']; let tbody = this.$refs['tbody'];
if(this.LIST.length > 0){
tbody.scrollTo(this.x,this.y); tbody.scrollTo(this.x,this.y);
thead.scrollTo(this.x,0); thead.scrollTo(this.x,0);
} }
}
this.isLoad = true; this.isLoad = true;
}, },
beforeDestroy(){ beforeDestroy(){
......
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