sfxcode / formkit-primevue

PrimeVue (v4, v3) support for the FormKit validation Framwork
https://sfxcode.github.io/formkit-primevue
MIT License
111 stars 9 forks source link

InputNumber class problem #64

Closed Xeyos88 closed 4 hours ago

Xeyos88 commented 4 hours ago

I am trying to associate classw 'w-full' with the input tag of InputNumber but without success. In InputText no problem.


<InputText
  class="w-full"
  placeholder="Enter Value"
  type="text"
   v-model="itemValue as string"
  name="valueString"
/>
</template>
<template v-if="type === 'number'">
  <div
     class="grid gap-2"
     :class="{ 'grid-cols-2': operatorsDouble.includes(operator)  }"
   >
   <div>
<InputNumber
  class="w-full"
  :ptOptions="{ mergeProps: true }"
  :pt="{ pcInputText: 'w-full', InputText: 'w-full' }"
  placeholder="0"
  type="number"
  v-model="itemValue as number"
  name="valueNumber"
/>``` 
Xeyos88 commented 4 hours ago

Sorry this is in PrimeVue components. Not here.