子传父warning报错问题

网上找了很多方法,一直没找出这个报错的原因,

最后发现是粗心了

const emit = defineEmits(["toJump"]);
const emit = defineEmits("toJump");

看出上面两行的区别了吗?

忘记加中括号了!!!记得仔细哟

Extraneous non-emits event listeners (onJump) were passed to component but could not be automaticall相关推荐

  1. [vue]Extraneous non-emits event listeners (x) were passed to component but could not be automatica

    vue报错说: [Vue warn]: Extraneous non-emits event listeners (addToCart) were passed to component but co ...

  2. Vue3报错:Extraneous non-props attributes (ref_key) were passed to component but could not be automatic

    Vue3报错:Extraneous non-props attributes (ref_key) were passed to component but could not be automatic ...

  3. 让页面滑动流畅得飞起的新特性:Passive Event Listeners

    声明:本文来自腾讯增值产品部官方公众号小时光茶社,为CSDN原创投稿,未经许可,禁止任何形式的转载. 作者:陈志兴,腾讯高级工程师,11年毕业后加入腾讯,期间主要负责过QQ文件传输质量优化.本地文件共 ...

  4. Passive Event Listeners

    vue3中写项目时,Chrome提示以下信息: [Violation] Added non-passive event listener to a scroll-blocking 'wheel' ev ...

  5. were passed to component but could not be automatically inherited because component renders fragment

    自定义VUE子组件需要用div包裹 <div> <selfcontrol /> </div>

  6. Vue3+ Vue-cli (2) 组件篇

    目录 一.全局组件定义和复用性讲解 二.Vue3中的局部组件 三.父子组件的静态和动态传值 四.组件传值时的校验操作 五.组件中重要机制 - 单项数据流 六.Non-props使用技巧 七.组件中通过 ...

  7. WebKit DOM Event (一)

    DOM Event 规范 DOM Event 主要定义了三类接口: EventTarget, 所有DOM节点和XMLHttpRequest 都实现EventTarget接口 class EventTa ...

  8. [Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel‘ event.

    在基于 Element-ui 写项目的时候,Chrome 提醒: [Violation] Added non-passive event listener to a scroll-blocking ' ...

  9. 【难得偷闲动动笔】开发问题记录(二):Extraneous non-props attributes

    1.今天在用vue3时,遇到了一个警告: Extraneous non-props attributes (class) were passed to component but could not ...

  10. [Violation]Added non-passive event listener to a scroll-blocking ‘touchstart‘ event.

    Chrome警告: Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking ...

最新文章

  1. python跟php如何共用mysql_Python 3 多个函数共用一个mysql连接
  2. 三维重建:SLAM的粒度和工程化问题
  3. 学习笔记(19):Python网络编程并发编程-互斥锁
  4. pip安装的库导入pycharm中
  5. KindleConverter:Word批量转换为6寸PDF
  6. VMware Fusion中使用迅雷的问题
  7. oracle11g的adg需要付费嘛,Oracle11g ADG 搭建
  8. Visual Assist X 10.8.2001 破解版 支持VC2013及以下版本
  9. 小程序loding动画组件封装及源码
  10. Visual Studio 2017 企业版密匙
  11. 【无标题】c语言指针2333
  12. ivor horton《c语言入门经典》,《C语言入门经典》Ivor Horton第九章练习题
  13. linux系统的文件句柄数
  14. java正则基本用法
  15. 什么是拦截器?什么是过滤器?
  16. 前端实践小项目(一)五星好评与暂停取值
  17. PHP通过phpspreadsheet读取Excel文件
  18. 驱动程序(10) Windriver实现DMA传输时分配超大内存Buffer的办法
  19. 从0到1,如何从知乎赚到第一笔佣金
  20. 如何用Python自动检测微信中谁把你拉黑了?

热门文章

  1. 使用腾讯tapd工具,进行创建迭代任务、任务拆解、、制定整体发布计划、多维度甘特图进度把控
  2. 机房收费系统(一)可行性研究报告
  3. 自动化测试运维|Selenuim IDE使用Firefox
  4. 社区角色(Kubernetes社区Maintainer是什么角色?)
  5. 【Gitlab】 remote: Ask a project Owner or Maintainer to create a default branch:
  6. 聊聊游戏本推荐排行榜 这一款竟成黑马
  7. 腾讯视频一二三面和携程后台开发一面二面面经
  8. 1538_AURIX_TriCore内核架构_地址映射以及存储配置
  9. MOOC-浙江大学-博弈论基础-学习笔记(四)
  10. 微信小程序 - 扫描小程序码进入小程序并获取参数