Invalid jsx syntax nativeOn binding event listener in vue?

there is a component that emits such an event

this.$emit("fail-to-load", this.src);

you can monitor events by writing template in vue as follows

<component @fail-to-load="failToLoad"></component>
The following two ways of writing in

jsx do not listen for events

onFailToLoad={() => this.failToLoad}
nativeOnFailToLoad={() => this.failToLoad}

excuse me, how to solve this problem?


{...{nativeOn:{click: this.failToLoad}}}

resolved:
event name must be consistent with the name defined by $emit, including underlined writing, and cannot be obtained by hump instead.

onFail-to-load={() => self.imgLoadedError()} // 
Menu