kaorun343/vue-property-decorator

event and method have the same name

zRa1ny opened this issue · 1 comments

When my component needs to send an event Submit and needs to provide a method submit, like the Form component, what should I do? thank you

Use other name for emitting method and set event name in decorator:

@Emit('submit')
emitSubmit() {}