Element: Table表格动态列抛异常Error in render function: "TypeError: _self.$scopedSlots.default is not a function"

Created on 30 Sep 2017  ·  7Comments  ·  Source: ElemeFE/element

Most helpful comment

<el-table-column v-if="isShowName" key="name" prop="name" label="姓名" width="120"></el-table-column>
我遇到的是el-table-column引起的,
有重复的兄弟元素,用v-if控制显示, 都要带上 key。

All 7 comments

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

最新版本也有这样的问题,怎么解决?

请问解决了吗

you can add a key props to table like this:
<el-table key='aTable' v-if="firstTabActive"></el-table>

<el-table-column v-if="isShowName" key="name" prop="name" label="姓名" width="120"></el-table-column>
我遇到的是el-table-column引起的,
有重复的兄弟元素,用v-if控制显示, 都要带上 key。

Was this page helpful?
0 / 5 - 0 ratings