mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 12:32:17 +08:00
docs(components): [input] supplemental component events (#21229)
This commit is contained in:
@ -155,13 +155,19 @@ input/length-limiting
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description | Type |
|
||||
| ------ | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
|
||||
| blur | triggers when Input blurs | ^[Function]`(event: FocusEvent) => void` |
|
||||
| focus | triggers when Input focuses | ^[Function]`(event: FocusEvent) => void` |
|
||||
| change | triggers when the input box loses focus or the user presses Enter, only if the modelValue has changed | ^[Function]`(value: string \| number) => void` |
|
||||
| input | triggers when the Input value change | ^[Function]`(value: string \| number) => void` |
|
||||
| clear | triggers when the Input is cleared by clicking the clear button | ^[Function]`() => void` |
|
||||
| Name | Description | Type |
|
||||
| ----------------- | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
|
||||
| blur | triggers when Input blurs | ^[Function]`(event: FocusEvent) => void` |
|
||||
| focus | triggers when Input focuses | ^[Function]`(event: FocusEvent) => void` |
|
||||
| change | triggers when the input box loses focus or the user presses Enter, only if the modelValue has changed | ^[Function]`(value: string \| number) => void` |
|
||||
| input | triggers when the Input value change | ^[Function]`(value: string \| number) => void` |
|
||||
| clear | triggers when the Input is cleared by clicking the clear button | ^[Function]`() => void` |
|
||||
| keydown | triggers when a key is pressed down | ^[Function]`(event: KeyboardEvent \| Event) => void` |
|
||||
| mouseleave | triggers when the mouse leaves the Input element | ^[Function]`(event: MouseEvent) => void` |
|
||||
| mouseenter | triggers when the mouse enters the Input element | ^[Function]`(event: MouseEvent) => void` |
|
||||
| compositionstart | triggers when the composition starts | ^[Function]`(event: CompositionEvent) => void` |
|
||||
| compositionupdate | triggers when the composition is updated | ^[Function]`(event: CompositionEvent) => void` |
|
||||
| compositionend | triggers when the composition ends | ^[Function]`(event: CompositionEvent) => void` |
|
||||
|
||||
### Slots
|
||||
|
||||
|
Reference in New Issue
Block a user