vue报错:
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”
解决:
可能是element ui版本太高导致el-date-picker不能使用,
1.先注释el-date-picker组件,检查报错是否还存在,如果不存在,就表明就是element ui版本太高的原因,
2.卸载掉当前版本 npm uninstall element-ui
3.安装你想要的版本 npm install element-ui@2.15.6 -S
,注意element-ui@2.15.6中间没有空格