Extraneous children found when component already has explicitly named default slot. These children
vue3报错:Extraneous children found when component already has explicitly named default slot. These children will be ignored.
·
🔥🔥🔥欢迎关注csdn前端领域博主: 前端小王hs
🔥🔥🔥email: 337674757@qq.com
🔥🔥🔥前端交流群: 598778642
Vue3+element-plus报错
Extraneous children found when component already has explicitly named default slot. These children will be ignored.
大概意思就是已经有默认的插槽,后代会被忽略
目前全网还没有这个报错的反映,估计是错误太低级了
问题原因是在使用插槽的时候忘记打上尾标签
例如下面错误例子
<el-colunm />
<template #defalut='scope'>
解决办法就是加上尾标签
<el-colunm>
<template #defalut='scope'>
</el-colunm>
更多推荐
已为社区贡献9条内容
所有评论(0)