使用element-ui的datepicker日期组件报错:Avoid mutating a prop directly
详细错误如下:
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版本的问题,有个别版本有这个bug,但是不影响正常使用,可以更换一下版本试试。