elementUI中table组件expand会渲染两次模板内容

今天开发的时候遇到一个问题,<el-table>中的expand模板中嵌套一个table,这个table会被渲染两次

原因: The fixed attribute in <el-table-column> will causes <el-table-body> to be rendered twice

具有fixed属性的table会这样,因为现在 fixed table 的实现方式就是用多个 table 拼装而成的,实现方式不一样,去掉fixed属性就好了

https://github.com/ElemeFE/element/issues/12177

posted @ 2019-03-07 21:37  maomao^_^  阅读(3646)  评论(0编辑  收藏  举报