Adds support for all input types.

Based on: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
This commit is contained in:
Elias Youssef
2023-03-29 22:13:24 +02:00
committed by GitHub
parent f34c086960
commit d2fe767ee1

View File

@@ -39,7 +39,7 @@ const props = defineProps({
default: false, default: false,
}, },
type: { type: {
type: String as PropType<'text' | 'password'>, type: String as PropType<'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week'>,
default: 'text', default: 'text',
}, },
size: { size: {