Skip to content

DatePicker

Basic Usage

iDatePicker displays the current week number on the left side.

The default date format is YYYY-MM-DD. The date format can be specified using the format attribute, and the date value can be bound using the v-model attribute.

Date Range Picker

Set the type to daterange to select a date range. In this use case, you can quickly select a date range for a week by clicking the specific week number on the left.

API

Attributes

Nameis RequiredDescriptionTypeDefault Value
modelValuebind datestring-
typetype of pickerenum'date'

Events

NameDescriptionParameters
panelChangetriggers when the navigation button click.date: Date | [Date, Date]
changetriggers when user confirms the value or click outsideval: typeof v-model
blurtriggers when Input blursvoid
focustriggers when Input focusesvoid
calendarChangetriggers when the calendar selected date is changed. Only for rangeval: [Date, null | Date]
visibleChangetriggers when the DatePicker's dropdown appears/disappearsvisibility: boolean
kwClicktriggers when click week number{selectYear: String, selectMonth: String, kw: String }