vue 报错Invalid prop: type check failed for prop “span“. Expected Number, with value 2, got String wit
控制台报错:
错误代码如下:
<el-col span="2"><el-buttontype="primary"@click="handleFunc">打印</el-button>
</el-col>
错误原因是:span类型是Number,需要在span前面加上冒号,element-UI文档如下:
Element文档传送门: https://element.eleme.io/#/zh-CN/component/layout
修改后代码:
<el-col :span="2"><el-buttontype="primary"@click="handleFunc">打印</el-button>
</el-col>
添加:以后,再无报错。
vue 报错Invalid prop: type check failed for prop “span“. Expected Number, with value 2, got String wit相关推荐
- 【vue警告坑】 Invalid prop: type check failed for prop resultChild. Expected Object, got String with v
[Vue warn]: Invalid prop: type check failed for prop "resultChild". Expected Object, got ...
- vue: Invalid prop: type check failed for prop “action“. Expected String with valu
出现 Invalid prop: type check failed for prop "action". Expected String with value错误 原因:使用el ...
- Invalid prop: type check failed for prop “total“. Expected Number with value x, got String with valu
一.问题 在做vue项目分页功能中,出现了Invalid prop: type check failed for prop "total". Expected Number wit ...
- Invalid prop: type check failed for prop “total“. Expected Number with value 0, got String with valu
Invalid prop: type check failed for prop "total". Expected Number with value 0, got String ...
- vue使用elementUI报错:custom validator check failed for prop “index“
在elementUI中使用el-menu-item时,给index绑定index的值时,报错custom validator check failed for prop "index&quo ...
- Vant报错:[Vue warn]: Invalid prop: type check failed for prop “lazyLoad“. Expected Boolean, got String
使用vant懒加载设置lazy-load后报错信息: 这里很奇怪,对比官方文档看了下,是设置true没错啊,为什么怎么改都报错 解决:v-for循环中要用v-bind,即:绑定属性设置
- vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop “data“.问题的简单解决 通俗易懂
整体报错翻译过来为: vue.runtime.esm.js吗?2b0e:619 [Vue警告]:道具无效:道具"数据"类型检查失败.期望数组,得到值为""的字符 ...
- vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop “uniqueOpened“. Exp
报错信息: 报错代码 原因分析 期布尔值,得到值为"真"的字符串. 修改
- Invalid prop: type check failed for prop centered. Expected Boolean, got String with value true
使用Vue + antDesign的时候,出现这个错误 我需要使用的antDesign的组件是modal,官网api介绍为 代码中书写: <a-modaltitle="手动添加展位&q ...
最新文章
- HDU2049 不容易系列之(4)——考新郎
- Java 有关于线程
- 自己建服务器 语音盒子_如何自己搭建一个服务器?
- TF之LSTM:利用基于顺序的LSTM回归算法对DIY数据集sin曲线(蓝虚)预测cos(红实)(matplotlib动态演示)—daiding
- 分享一个自用的,随便找到的组件,留作记录
- 津津的储蓄计划(信息学奥赛一本通-T1074)
- ES6-使用 super 关键字访问原型对象
- Elasticsearch SQL插件
- JS函数assign
- 从0开始学习 GitHub 系列之「07.GitHub 常见的几种操作」
- qcc3020定制、qcc3020软件开发tws耳机的注意事项
- kafka 修改分区_kafka分区
- android逆向笔记 -- 记一次解决飞天助手未知模拟器方法
- scratch编程打字机
- js转换时间戳一直转换成1970的解决方法
- 在录音等情况下保持屏幕长亮
- ERROR: PyAudio-0.2.11-cp37-cp37m-win32.whl is not a supported wheel on this platform.问题解决方法
- PLL与DLL锁相环介绍
- 使用vite + SSR使用依赖碰到document is not defined的解决方法
- android dts配置_「7.1」[RK3399][Android7.1] 移植笔记 --- 音频Codec RT5640添加 - seo实验室...