Vue Element遇警告:[Vue warn]: Invalid prop: custom validator check failed for prop "type".(代码
Posted aguncn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Vue Element遇警告:[Vue warn]: Invalid prop: custom validator check failed for prop "type".(代码相关的知识,希望对你有一定的参考价值。
更详细的信息如下:
[Vue warn]: Invalid prop: custom validator check failed for prop "type". found in ---> <ElBadge> at packages/badge/src/main.vue <ElMenuItem> at packages/menu/src/menu-item.vue <ElMenu> at packages/menu/src/menu.vue <HeadBar> at src/views/HeadBar.vue <Home> at src/views/Home.vue <App> at src/App.vue <Root>
那我的错误 ,就集中在网页进而的menu及menu-item标签里的type类型了。
后来发现,如下编码,是不受elementUI支持的type属性。
<el-badge :value="4" :max="99" class="badge" type="error">
更改成如下之后,错误消失。
<el-badge :value="4" :max="99" class="badge" type="danger">
type属性可以为:primary / success / warning / danger / info
参考URL:
https://blog.csdn.net/weixin_34220623/article/details/92407005
以上是关于Vue Element遇警告:[Vue warn]: Invalid prop: custom validator check failed for prop "type".(代码的主要内容,如果未能解决你的问题,请参考以下文章
[vue遇错记录] vue.js:569 [Vue warn]: Cannot find element: #app
[Vue warn] Unknown custom element <el-image>
[Vue warn]: Cannot find element: #app
vue 编译大量空格警告问题总结 warning: Replace `??` with `··`
[Vue warn]: Unknown custom element: did you register the component correctly?
[Vue warn]: Unknown custom element: <Top> - did you register the component correctly?