mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 15:31:46 +01:00
chore: uniformize defineModel placement and emits
This commit is contained in:
@@ -49,9 +49,8 @@ const props = withDefaults(defineProps<TextareaProps>(), {
|
||||
maxrows: 0,
|
||||
autofocusDelay: 100
|
||||
})
|
||||
|
||||
const emit = defineEmits<TextareaEmits>()
|
||||
defineSlots<TextareaSlots>()
|
||||
const emits = defineEmits<TextareaEmits>()
|
||||
|
||||
const [modelValue, modelModifiers] = defineModel<string | number>()
|
||||
|
||||
@@ -108,7 +107,7 @@ function onChange(event: Event) {
|
||||
|
||||
function onBlur(event: FocusEvent) {
|
||||
emitFormBlur()
|
||||
emit('blur', event)
|
||||
emits('blur', event)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user