Table表格动态列抛异常Error in render function: "TypeError: _self.$scopedSlots.default is not a function"
发送成功短信数:{{scope.row.sentUserCount}}
</div>
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.
最新版本也有这样的问题,怎么解决?
请问解决了吗
https://forum.vuejs.org/t/weird-vuejs-error-with-elementui-table--self-scopedslots-default-is-not-a-function/12933
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。
https://forum.vuejs.org/t/weird-vuejs-error-with-elementui-table--self-scopedslots-default-is-not-a-function/12933
完美解决! 使用v-show代替v-if