admin管理员组

文章数量:1576339

项目场景:

vue2使用element DatePicker 日期选择器

避免直接变异道具,因为每当父组件重新渲染时,该值将被覆盖。相反,使用基于道具值的数据或计算属性。道具变异:“placement“


问题描述

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版本的问题 需要降级处理 我的版本是2.15.8 所以我降级到了2.15.7


解决方案:

提示: 进行先删除element 然后重新安装低版本

npm uninstall element-ui
npm install element-ui@2.15.7 -s:
cnpm uninstall element-ui
cnpm install element-ui@2.15.7 -s:

本文标签: 报错element