内容过多的时候,肯定是要换行显示,如果列宽不够,就会将列的高度拉长,导致非常难看。

解决方法:

el-table 列超出的时候,显示...,移上去显示全部内容

 

el-table 列超出的时候,显示...,移上去显示全部内容

 

 

 

 

 

1、在el-table上面增加代码tooltip-effect="dark"(默认,不加也是可以。)或者tooltip-effect="light"

2、el-table-column 增加  show-overflow-tooltip 或 :show-overflow-tooltip="true"

 

这样就可以实现。

 

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2022-01-18
  • 2021-10-19
  • 2021-07-06
  • 2022-02-15
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2021-12-24
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案