监听滚动条、上下联动
document.getElementById('scrollTopFormp').addEventListener('scroll',(e)=>{ var left = e.target.scrollLeft; this.$refs.tableOne.scrollLeft = left; }) this.$refs.tableOne.addEventListener('scroll',(e)=>{ var bottom = e.target.scrollLeft; document.getElementById('scrollTopFormp').scrollLeft = bottom; })