element-plus [Component] [table-column] el-table-column 设置 min-width / max-width 不生效

neekobn8  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(114)

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.27
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46
  • Build Tool: Vite

Reproduction

  • el-table-column

Element Plus Playground

Steps to reproduce

参考复现链接

What is Expected?

/

What is actually happening?

/

Additional comments

(empty)

58wvjzkj

58wvjzkj1#

min-width 试下把里面文字改少,屏幕宽度弄小,的确可以触发最小宽度
max-width 文档和源码里都没有这个属性,急用的话可以先用样式去实现

<style>
  table tr td:nth-of-type(4){
    max-width: 70px;
    display:block
  }
</style>

相关问题