The parameters in the vue implementation child component data are passed to the parent component.

subcomponents

data(){
    a:"beijing"
}

parent component

data(){
    b:""
}
Mar.31,2021

you can use the emit method to pass data as parameters to the parent component, and the parent component can handle the event accordingly. For more information on
, please see the official API: vm-emit , which also contains examples.

Menu