控制台报错:

错误代码如下:

<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相关推荐

  1. 【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 ...

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. vue使用elementUI报错:custom validator check failed for prop “index“

    在elementUI中使用el-menu-item时,给index绑定index的值时,报错custom validator check failed for prop "index&quo ...

  6. Vant报错:[Vue warn]: Invalid prop: type check failed for prop “lazyLoad“. Expected Boolean, got String

    使用vant懒加载设置lazy-load后报错信息: 这里很奇怪,对比官方文档看了下,是设置true没错啊,为什么怎么改都报错 解决:v-for循环中要用v-bind,即:绑定属性设置

  7. vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop “data“.问题的简单解决 通俗易懂

    整体报错翻译过来为: vue.runtime.esm.js吗?2b0e:619 [Vue警告]:道具无效:道具"数据"类型检查失败.期望数组,得到值为""的字符 ...

  8. vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop “uniqueOpened“. Exp

    报错信息: 报错代码 原因分析 期布尔值,得到值为"真"的字符串. 修改

  9. Invalid prop: type check failed for prop centered. Expected Boolean, got String with value true

    使用Vue + antDesign的时候,出现这个错误 我需要使用的antDesign的组件是modal,官网api介绍为 代码中书写: <a-modaltitle="手动添加展位&q ...

最新文章

  1. HDU2049 不容易系列之(4)——考新郎
  2. Java 有关于线程
  3. 自己建服务器 语音盒子_如何自己搭建一个服务器?
  4. TF之LSTM:利用基于顺序的LSTM回归算法对DIY数据集sin曲线(蓝虚)预测cos(红实)(matplotlib动态演示)—daiding
  5. 分享一个自用的,随便找到的组件,留作记录
  6. 津津的储蓄计划(信息学奥赛一本通-T1074)
  7. ES6-使用 super 关键字访问原型对象
  8. Elasticsearch SQL插件
  9. JS函数assign
  10. 从0开始学习 GitHub 系列之「07.GitHub 常见的几种操作」
  11. qcc3020定制、qcc3020软件开发tws耳机的注意事项
  12. kafka 修改分区_kafka分区
  13. android逆向笔记 -- 记一次解决飞天助手未知模拟器方法
  14. scratch编程打字机
  15. js转换时间戳一直转换成1970的解决方法
  16. 在录音等情况下保持屏幕长亮
  17. ERROR: PyAudio-0.2.11-cp37-cp37m-win32.whl is not a supported wheel on this platform.问题解决方法
  18. PLL与DLL锁相环介绍
  19. 使用vite + SSR使用依赖碰到document is not defined的解决方法
  20. android dts配置_「7.1」[RK3399][Android7.1] 移植笔记 --- 音频Codec RT5640添加 - seo实验室...

热门文章

  1. 军犬舆情每日热点:广西自治区成立60周年;首批5G手机价格8000元
  2. 谁动了你的五元组-nf_conntrack与NAT的性能
  3. 腾讯T2大牛亲自讲解!Android猿面试(附视频)
  4. Week 2 打牌 —— 多关键字排序
  5. VSCode打开文件时出现乱码怎么办?
  6. 思细级恐,一段手机号就能获取个人信息
  7. HVR数据复制软件部署之(一)--HUB端部署
  8. 第76天-Python 开发-内外网收集 Socket子域名
  9. 打开并导出注册表步骤
  10. 回归预测 | MATLAB实现WOA-GRU鲸鱼算法优化门控循环单元多输入单输出回归预测