vuejs / babel-plugin-transform-vue-jsx

babel plugin for vue 2.0 jsx
1.85k stars 132 forks source link

add support for `on-event` props (fix #110) #126

Closed HerbLuo closed 6 years ago

HerbLuo commented 6 years ago

usage:

render (h) {
  return h('third-party-component', {
    props: {
      onSuccess: this.handleSuccess
    }
  })
}

->

render (h) {
  return (
    <third-party-component propsOnSuccess={this.handleSuccess} />
  )
}