Here is MyCompnent
props: ['visible']
methods: {
update () {
this.$emit('update:visible')
}
}
I use this component in jsx:
<MyComponent visible={this.visible} {...{['on-update:visible']: console.log}} />
but can not bind the event.
so how to bind this event in jsx.