我做了一个el-table全屏展示的功能, 然后里面的el-popover在全屏后无法展示, 刚开始以为是写唯一的key或者ref, 发现写了也不行, 后来以为要写’:append-to-body=“false”, 最后发现是我的外层的层级写得太高了; position: fixed; z-index: 9999;
<div class="box"> <el-table :data="tableData"><el-table-columnlabel="Name"prop="name"><template slot="header" slot-scope="scope"><span>Name</span><el-popover trigger="hover" content="内容"><el-button slot="reference">hit</el-button></el-popover></template></el-table-column></el-table>
</div>