Calendar

Display date.

Basic

Set value to specify the currently displayed month. If value is not specified, current month is displayed. value supports two-way binding.

2024 December
SunMonTueWedThuFriSat
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

Custom Content

Customize what is displayed in the calendar cell by setting scoped-slot named date-cell. In scoped-slot you can get the date (the date of the current cell), data (including the type, isSelected, day attribute). For details, please refer to the API documentation below.

2024 December
SunMonTueWedThuFriSat

12-01

12-02

12-03

12-04

12-05

12-06

12-07

12-08

12-09

12-10

12-11

12-12

12-13

12-14

12-15

12-16

12-17

12-18

12-19

12-20

12-21

12-22

12-23

12-24

12-25

12-26

12-27

12-28

12-29

12-30

12-31

01-01

01-02

01-03

01-04

Range

Set the range attribute to specify the display range of the calendar. Start time must be Monday, end time must be Sunday, and the time span cannot exceed two months.

2019 March
SunMonTueWedThuFriSat
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

Customize header

Custom header content2024 December
SunMonTueWedThuFriSat
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

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

NameDescriptionTypeDefault
model-value / v-modelbinding valueDate
rangetime range, including start time and end time. Start time must be start day of week, end time must be end day of week, the time span cannot exceed two months.array

Slots

NameDescriptionType
date-celltype indicates which month the date belongs, optional values are prev-month, current-month, next-month; isSelected indicates whether the date is selected; day is the formatted date in the format YYYY-MM-DD; date is date the cell representsobject
headercontent of the Calendar headerobject

Source

ComponentStyleDocs

Contributors