报错:use a data or computed property based on the prop‘s value. Prop being mutated: “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"

避免直接更改道具,因为每当父组件重新渲染时,该值都会被覆盖。相反,使用基于道具值的数据或计算属性。道具正在变异:“放置”

解决方法

添加属性:align="center"

报错原因

element-ui版本问题

你可能感兴趣的:(element-ui,前端,javascript,开发语言)