vue中使用elementUI的el-date-picker组件时,控制台报错:
[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” foun in
解决办法:
第一种:el-date-picker处添加属性placement="bottom-start"。
第二种:指定elementUI版本为2.15.8,重新安装依赖。