完整报错信息:
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版本问题,2.15.9这个版本会报错,下调到其他版本即可。
卸载当前版本:
npm uninstall element-ui
重新安装对应的版本:
npm install element-ui@2.15.0 -S