The vue child component passes values to the parent component

clipboard.png

element-ui

:


:


clipboard.png

what is the reason for this?


is defined as the value value bound by your v-model and the value value of prop . Because the value of prop cannot be modified in the child component, it can only be modified in the parent component through the bound value.


first of all, this is a warning, not an error. The warning message probably means "avoid defining a props, with the name value, because it may be automatically overridden by the parent component. It is recommended to define the data or compute properties yourself." the "value" you define may conflict with the vue runtime

.
Menu