# Event listener

Through the configuration items on andemit, you can listen to events thrown in the component, such as listening to the change event of theinput component. For the event name, refer to Input

# Listening to events through the configuration item on

# Listen for events via the configuration item emit

Only supported in component mode

Event name is ${field}-${eventName}

# Customize event prefix via configuration item emitPrefix

Event name is ${emitPrefix}-${eventName}

# Listening to events via the on method

# Inject $f and custom parameters into the event

Support multiple ways to enable event injection

Data structure of the inject parameter

    rule:Array,//Generation rule
    self:Object,//Current generation rule
    option:Object,//Global configuration
    inject:Any,//Custom injection parameters

Parameter injection can also be enabled via the global configuration item injectEvent: true