DatePickerPanel beta
DatePickerPanel
is the core component of DatePicker
.
Enter Date
Basic date picker measured by 'day'.
2025 August
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 31 | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 1 | 2 | 3 | 4 | 5 | 6 |
Border
By default the date-picker-panel is bordered but in some case you don't want it. For example DatePicker
don't inherit border
.
No border:
2025 August
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 31 | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 1 | 2 | 3 | 4 | 5 | 6 |
2025 August
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 31 | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 1 | 2 | 3 | 4 | 5 | 6 |
Disabled
The disabled
attribute determines if the date picker is fully disabled.
Disabled
2025 August
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 31 | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 1 | 2 | 3 | 4 | 5 | 6 |
Types
The measurement is determined by the type
attribute.
Type:
2025 August
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 31 | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 1 | 2 | 3 | 4 | 5 | 6 |
Localization
The default locale of is English, if you need to use other languages, please check Internationalization
Note, date time locale (month name, first day of the week ...) are also configured in localization.
API
Attributes
Name | Description | Type | Default |
---|---|---|---|
model-value / v-model | binding value, if it is an array, the length should be 2 | number / string / object | '' |
border | whether the date picker is bordered | boolean | true |
disabled | whether DatePicker is disabled | boolean | false |
clearable | whether to show clear button | boolean | true |
type | type of the picker | enum | date |
default-value | optional, default date of the calendar | object | — |
default-time | optional, the time value to use when selecting date range | object | — |
value-format | optional, format of binding value. If not specified, the binding value will be a Date object | string | — |
date-format | optional, format of the date displayed in input's inner panel | string see date formats | YYYY-MM-DD |
time-format | optional, format of the time displayed in input's inner panel | string see date formats | HH:mm:ss |
unlink-panels | unlink two date-panels in range-picker | boolean | false |
disabled-date | a function determining if a date is disabled with that date as its parameter. Should return a Boolean | Function | — |
shortcuts | an object array to set shortcut options | object | [] |
cell-class-name | set custom className | Function | — |
show-footer | whether to show footer | boolean | false |
show-confirm | whether to show the confirm button | boolean | false |
show-week-number | show the week number besides the week | boolean | false |
Events
Name | Description | Type |
---|---|---|
calendar-change | triggers when the calendar selected date is changed. Only for range | Function |
panel-change | triggers when the navigation button click. | Function |
Slots
Name | Description |
---|---|
default | custom cell content |
prev-month | prev month icon |
next-month | next month icon |
prev-year | prev year icon |
next-year | next year icon |