elementUI 使用el-date-picker表单组件报错 ** Avoid mutating a prop directly since the value will be overwritten the parent comoonent re-renders. Instead. use a data or computed property based on the orop’s value Prop being mutated “placement”**
elementUI 使用el-date-picker表单组件时报错 Avoid mutating a prop directly since the value will be overwritten the parent comoonent re-renders. Instead. use a data or computed property based on the orop’s value Prop being mutated “placement”
仅是控制台报错,系统能正常运行,有强迫症的我打算修复好它
解决方法:
- 将package.json文件 “element-ui”: “2.15.6”; 版本是2.15.6时,注意前面不要加 ^ 符号
指定版本号
- 指定版本:比如"vue": “2.15.2”,表示指定安装2.15.2的版本
- 波浪号~ 指定版本:比如 “vue”: “~2.15.2”,表示安装2.5.x的最新版本(不低于2.15.2),但是不安装2.16.x,也就是说安装时不改变大版本号和次要版本号
- ^ 指定版本:比如 “vue”: “^2.15.2” ,表示安装2.5.2及以上的版本,但是不安装3.0.0,也就是说安装时不改变大版本号。