1.

需要增加到table表格里的 highlight-row :height="tableHeight" ref="table" 

2。在return 定义一个默认高度 即可

3. 

直接放入即可 this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160(可根据页面调整)        window.innerHeight是浏览器的可用高度,this.$refs.table.$el.offsetTop是表格距离浏览器可用高度顶部的距离

 

posted on 2018-08-14 15:17  鄢宁  阅读(2572)  评论(0编辑  收藏  举报