解决Extraneous non-props attributes (border, class) were passed to component but could not be
记录
runtime-core.esm-bundler.js:38 [Vue warn]: Extraneous non-props attributes (class) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
遇到这个问题,弹出框死活不出来的时候,很大概率原因是因为之前用的是vue2 的ElementUI ,现在切换技术到vue3,用的就是ELement-plus。两个技术对el-dialog 的属性设置的定义不一样,建议去element-plus官网文档查看自己的属性是哪里不对https://element-plus.gitee.io/zh-CN/component/dialog.html
看图,我的组件里面写的这个el-dialog就有两个地方不对,跟官方的属性对不上就改成官方的,class也不能用了,得按照官方文档去设置属性。
解决Extraneous non-props attributes (border, class) were passed to component but could not be相关推荐
- 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 ...
- [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 ...
- 已解决java.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository.
已解决java.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository. ...
- 解决 vue中props对象中设置多个默认值问题
1.遇到问题: props中设置了默认值,但是获取时(获取父页面没有传的属性) 打印出来是undefined 子组件 props: { paramsObj: {type:Object,default: ...
- 我犯的错和解决AnimationEvent 'NewEvent' has no receiver! Are you missing a component
- 【难得偷闲动动笔】开发问题记录(二):Extraneous non-props attributes
1.今天在用vue3时,遇到了一个警告: Extraneous non-props attributes (class) were passed to component but could not ...
- element-plus中el-dialog导致props报错问题解决
1.报错信息 [Vue warn]: Extraneous non-props attributes (class) were passed to component but could not be ...
- React中的state和props有什么区别?
本文翻译自:What is the difference between state and props in React? I was watching a Pluralsight course o ...
- Vue2 利用 v-model 实现组件props双向绑定的优美解决方案
在项目中开始使用vue2来构建项目了,跟 vue1 很大的一处不同在于2 取消了props 的双向绑定,改成只能从父级传到子级的单向数据流,初衷当然是好的,为了避免双向绑定在项目中容易造成的数据混乱. ...
- React组件通信--props
React组件通信 1.props接收数据 //index.js import App from "./App";ReactDOM.render(<App name='传递数 ...
最新文章
- 孙立岩 python-basic: 用于学习python基础的课件(十一 十二)
- Java-JVM虚拟机内存垃圾回收机制gc入门:引用类型,对象标记算法,回收算法,常见的 garbage collector
- IJCAI主席杨强:联邦学习的最新发展及应用
- Linux上在文件夹上层新建一个同名目录
- BZOJ - 2744 朋友圈 (二分图上的最大团)
- android 清屏函数,浅谈android截屏问题
- 使用jQuery开发一个基于HTML5的漂亮图片拖拽上传web应用
- 如何在Kubernetes容器环境下部署Spinnaker?
- uva 10330(最大流)
- wordpress提高访问速度
- 毕业设计总结与展望、致谢-“完工总结会”-08
- QQ分析和密码获取,阿里旺旺分析和密码获取,新浪UC分析和密码获取,以及所有的UC端...请不要乱用,我可不负责
- aspcms基本的安全策略
- vue使用百度地图获取位置信息
- java——记录一次条形码、二维码、订单自动生成的制作
- mysql 利用游标循环删除数据报错:No data - zero rows fetched, selected, or processed
- SAMBA 基础及实战
- 大众中国纯电动战略“水土不服”?理想ONE冲击月销过万目标
- 摆脱外包进大厂,苦逼翻身把歌唱,20K、30K、40K!咬牙硬吃下这份儿数据结构与算法手册
- 【VScode报错】> ools-1.1.3\debugAdapters\bin\WindowsDebugLa‘--stdout=Microsoft-MIEngine-Out-aguzdga1-npu
热门文章
- Spark调优之推测执行
- 腾讯加盟:Kafka-on-Pulsar 项目迎来 2 位腾讯 Maintainer!
- docker 小结
- 【有利可图网】PS实战教程26:1分钟搞定抠头发丝,超简单!
- 乒乓球比赛赛程_这家律所再次摘得业余乒乓球赛事冠军,为何结缘乒乓?
- TTL expired in transit (TTL 传输中过期) ping一个ip却返回另一个ip
- java做类似于qq空间动态加载_Android仿QQ空间动态界面分享功能
- Unity3D U3D安装教程
- Inception-V3论文翻译——中文版
- Transformer相关的各种预训练模型优点缺点对比总结与资料收集(Transformer/Bert/Albert/RoBerta/ERNIE/XLnet/ELECTRA)