小码问答,有问必答!

2022-09-01 14:32

使用element-ui的datepicker日期组件报错:Avoid mutating a prop directly

牛叔叔 2022-09-01 14:32 回答了这个问题

WEB前端

详细错误如下:

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,但是不影响正常使用,可以更换一下版本试试。

0条评论

我要评论