一、背景
新拉代码,开发新页面使用el-date-picker组件,加载此组件控制台就报错,但同事在同一套代码里面使用未报错。
报错信息: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"
二、 报错场景
1.代码
<template>
<div>
<el-date-picker
v-model="dateRange"
type=