element-plus [Component] [table-column] el-table-column在flex布局下由于隐藏 出现导致宽度无限拉长

ukxgm1gy  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(27)

Bug Type: Component

Environment

  • Vue Version: 3.3.4
  • Element Plus Version: 2.3.7
  • Browser / OS: Chrome 114.0.5735.198 / macOS 14.0.0
  • Build Tool: Vite

Reproduction

  • el-table-column

Element Plus Playground

Steps to reproduce

当来回切换tab时,会发现表格把宽度撑的越来越大

What is Expected?

不会破坏flex布局

What is actually happening?

破坏flex布局的宽度

Additional comments

(empty)

tyky79it

tyky79it1#

或许你可以试试这种写法
Element Plus Playground

nfs0ujit

nfs0ujit2#

这样写也行
Element Plus Playground

ddrv8njm

ddrv8njm3#

给flex:1加上overflow: auto即可

相关问题