About the vue custom plug-in, mount a component into dom, but this component has prop properties and methods, what should I do? Urgent

< H1 > add < / H1 >

the title description is a little vague,

there are methods such as the props property and $emit ("on-ok") in the

component

call

via < component: xxx= "xxx" @ on-ok= "xxx" >

question:

I am now calling via plug-in mount, but the onchange function does not trigger

this.$sideNav({
        nav: ["123","bbb"],
        onchange: function(value){
            console.log(value)
        }
    });
Mar.22,2021

   

other things remain the same

Menu