记录vue项目遇到 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"
避免直接改变一个组件中的prop值,因为每当父组件重新渲染时,该prop值都将被覆盖。应在组件中使用基于这个prop值的data或computed属性
解决方案:切换element ui (我使用的是:"element-ui": "^2.15.9")
npm uninstall element-ui npm install element-ui@2.15.8 -s
标签:picker,el,vue,computed,element,ui,组件,2.15,prop 来源: https://www.cnblogs.com/lwming/p/16497842.html