element icon indicating copy to clipboard operation
element copied to clipboard

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

Open 5kywa1ker opened this issue 9 years ago • 7 comments

        </div>

5kywa1ker avatar Sep 30 '17 10:09 5kywa1ker

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.

element-bot avatar Sep 30 '17 10:09 element-bot

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

aflext avatar Nov 06 '17 13:11 aflext

请问解决了吗

wang22123467469 avatar Jan 17 '18 08:01 wang22123467469

https://forum.vuejs.org/t/weird-vuejs-error-with-elementui-table--self-scopedslots-default-is-not-a-function/12933

Cc9410 avatar Feb 26 '18 12:02 Cc9410

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

WayneGongCN avatar May 23 '18 08:05 WayneGongCN

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

nekorice avatar Jun 13 '18 08:06 nekorice

https://forum.vuejs.org/t/weird-vuejs-error-with-elementui-table--self-scopedslots-default-is-not-a-function/12933

完美解决! 使用v-show代替v-if

1078559858 avatar Dec 24 '18 03:12 1078559858