Element-ui的date日期时间组件的bug 报错:prop’s value. Prop being mutated: “placement”
[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”

1abe0919e02e4164a05197fc8c49cdd6.jpeg
网上查找了资料说的2.15.9会报这个问题,但是我用2.15.8版本写项目时,突然有个项目报这个问题,其他项目运行时并未报错
解决:
不能直接修改package.json中的element-ui版本号,再重新安装node_modules,而是需要先卸载原来的版本,再安装
npm uninstall element-ui
npm install element-ui@2.15.8 --save