vue报错elementUI使用datepicker报错Avoid mutating a prop directly since the value will be overwritten whene

报错问题:[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "placement"

found in

最近使用elementui的日期选择器的时候,一直出现报错:

 

 

解决:

查阅其他版本的elementui发现没有这个错误,只有2.15.9有这个报错,可以将版本降到2.15.9以下进行开发。

 

npm uninstall element-ui  //卸载
npm install element-ui@2.15.8 -s  //安装element-ui指定版本
npm install element-ui@2.15.7 -s  //安装element-ui指定版本
npm install element-ui@2.15.6 -s  //安装element-ui指定版本
————————————————
版权声明:本文为CSDN博主「桃花郎」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Mygongzi/article/details/126146329

 

posted @ 2022-08-22 11:19  黑白棋学弟  阅读(194)  评论(0编辑  收藏  举报