themesberg / flowbite-vue

Official Vue 3 components built for Flowbite and Tailwind CSS
https://flowbite-vue.com
MIT License
723 stars 116 forks source link

FWBInput does not support v-model.number #273

Open cristiano-matchday opened 5 months ago

cristiano-matchday commented 5 months ago

Hi - I'm using flowbite-vue with typescript. Whenever I use a variable that I want as a number, the v-model complains that

  node_modules/flowbite-vue/dist/components/FwbInput/FwbInput.vue.d.ts:67:5
    67     modelValue: string;
           ~~~~~~~~~~
    The expected type comes from property 'modelValue' which is declared here on type 'Partial<{ type: InputType; label: string; disabled: boolean; size: InputSize; modelValue: string; required: boolean; validationStatus: ValidationStatus; }> & Omit<...> & Record<...>'

forcing me to use string instead. Any fix for this?