报错问题:[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指定版本
.....
....
...
...
...