# Event
Through the configuration items on
, emit
can monitor events thrown in the component, For example, listening to the change
event of the input
component,Event name referenceInput
native On
, native Emit
can monitor the native events of the componentv2.5.0+
Warn
When listening to events through the emit
method, the uppercase in the event name will automatically be converted to -
+lowercase
For example, the change
event of the inputField
component, the event name is input-field-change
# Monitor events through the configuration item on
# Listen to events through the configuration item emit
The event name is ${field}-${event Name}
# Customize the event prefix through the configuration item emit Prefix
The event name is ${emit Prefix}-${event Name}
# Listen for events through the on method
# Listen to component's native events
Listen to the component's native click
event
← Mount Event injection →