1.iview表格高度自适应只需要三步即可

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

2。iview表格高度自适应只需要三步即可在return 定义一个默认高度 即可

3.iview表格高度自适应只需要三步即可 

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2022-03-05
  • 2022-12-23
  • 2021-07-20
  • 2021-09-09
  • 2021-12-30
猜你喜欢
  • 2022-03-10
  • 2021-09-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案