element-ui报错:Prop being mutated: “placement “

1、报错详情

[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 "

2、问题出处

element-ui里的el-date-picker


 3、解决方法

将element-ui的版本降至 2.15.6以下(包含2.15.6)

npm install [email protected]

转载:升级 element-ui 2.15.7 后遇到 el-date-picker 警告问题 - 知了小站 - IT人的小站 (zhile.one)

你可能感兴趣的:(vue.js,javascript,前端,elementui)