element [Bug Report] The drop-down of el-select in Table does not appear when using :popper-append-to-body="false"

zed5wv10  于 2022-11-02  发布在  其他
关注(0)|答案(1)|浏览(237)

Element UI version

2.15.7

OS/Browsers version

Windows10 20H2, Chrome 97.0.4692.99

Vue version

2.6.11

https://codepen.io/weitao2515/pen/rNYjoaq

Steps to reproduce

Table组件自定义列模板使用el-select添加属性:popper-append-to-body="false"时,下拉框没有出现

What is Expected?

下拉框出现

What is actually happening?

下拉框没出现

f87krz0w

f87krz0w1#

因为el-table里的cell是overflow:hidden的,把你的下拉框给藏了,找到dom摆弄一下top值就知道了

相关问题