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()} // 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bebcc0-31ab4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bebcc0-31ab4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?