robby-image-upload
robby-image-upload copied to clipboard
[vue warn] showUploadProgress will be mutated
请问这个是什么意思? 17:53:05.553 [ERROR] : [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: "showUploadProgress" 17:53:05.554 found in 17:53:05.554 ---> components/robby-image-upload/robby-image-upload
时间:2019-09-26
组件中有个对外开放的属性showUploadProgress,因为在组件中有一点逻辑会做改动。 但这个属性在外部调用时也会传值,所以提示这个值有被外部传值修改的风险。
这个属性可以关闭,默认都是要显示进度提示的。 不开放就没这个告警提示了。 可以考虑关闭这个属性