docs(components): [input] supplemental component events (#21229)

This commit is contained in:
betavs
2025-07-03 21:56:07 +08:00
committed by GitHub
parent 4d27fdc4aa
commit cfe8e4e982

View File

@ -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