Hi,
I'm using a vee-validate
library and Field
component of it. How can I have a date picker field?
Thanks in advance,
Vahan
Hi,
To use the Field
component for date selection, set type="date"
. This enables a basic HTML date picker. For more complex select components imported from other libraries, wrap the date component with Field
and bind the field value to the date select component as shown below.
<Field name="date" v-slot="{ field }" v-model="date">
<el-date-picker
v-bind="field"
type="date"
/>
</Field>