mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 15:31:46 +01:00
feat(Form): Select and InputMenu integration (#97)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -31,6 +31,7 @@ export interface InputProps extends UseComponentIconsProps {
|
||||
|
||||
export interface InputEmits {
|
||||
(e: 'blur', event: FocusEvent): void
|
||||
(e: 'change', event: Event): void
|
||||
}
|
||||
|
||||
export interface InputSlots {
|
||||
@@ -113,6 +114,8 @@ function onChange(event: Event) {
|
||||
if (modelModifiers.trim) {
|
||||
(event.target as HTMLInputElement).value = value.trim()
|
||||
}
|
||||
|
||||
emits('change', event)
|
||||
}
|
||||
|
||||
function onBlur(event: FocusEvent) {
|
||||
|
||||
Reference in New Issue
Block a user