mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Calendar: Display correct header when range is specified (#16354)
* Calendar: display correct header when range is specified * firstOfWeek is supported * update docs * update test * update * fix typo
This commit is contained in:
@@ -56,7 +56,7 @@ Display date.
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
|-----------------|------------------- |---------- |---------------------- |--------- |
|
||||
| value / v-model | binding value | Date/string/number | — | — |
|
||||
| range | time range, including start time and end time. Start time must be Monday, end time must be Sunday, the time span cannot exceed two months | Array | — | — |
|
||||
| range | time 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 | — | — |
|
||||
| first-day-of-week | fisrt day of week| Number | 1 to 7 | 1 |
|
||||
|
||||
### dateCell scoped slot 参数
|
||||
|
||||
@@ -57,7 +57,7 @@ Muestra fechas.
|
||||
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|
||||
|-----------------|------------------- |---------- |---------------------- |------------ |
|
||||
| value / v-model | valor vinculante | Date/string/number | — | — |
|
||||
| range | rango de tiempo, incluyendo el tiempo de inicio y el tiempo final. El tiempo de inicio debe ser el lunes, el tiempo final debe ser el domingo, el período no puede exceder los dos meses. | Array | — | — |
|
||||
| range | rango de tiempo, incluyendo el tiempo de inicio y el tiempo final. Start time must be start day of week, end time must be end day of week, the time span cannot exceed two months | Array | — | — |
|
||||
| first-day-of-week | fisrt day of week| Number | 1 to 7 | 1 |
|
||||
|
||||
### dateCell scoped slot
|
||||
|
||||
@@ -57,7 +57,7 @@ Affiche un calendrier.
|
||||
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|
||||
|------------------ |-------------- |---------- |---------------------- |--------- |
|
||||
| value / v-model | Valeur liée. | Date/string/number | — | — |
|
||||
| range | Intervalle de dates, début et fin inclus. Le début doit être un lundi et la fin un dimanche, l'intervalle ne pouvant excéder deux mois. | Array | — | — |
|
||||
| range | Intervalle de dates, début et fin inclus. Start time must be start day of week, end time must be end day of week, the time span cannot exceed two months. | Array | — | — |
|
||||
| first-day-of-week | fisrt day of week| Number | 1 to 7 | 1 |
|
||||
|
||||
### Slot dateCell
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
### 自定义范围
|
||||
|
||||
:::demo 设置 `range` 属性指定日历的显示范围。开始时间必须是周一,结束时间必须是周日,且时间跨度不能超过两个月。
|
||||
:::demo 设置 `range` 属性指定日历的显示范围。开始时间必须是周起始日,结束时间必须是周结束日,且时间跨度不能超过两个月。
|
||||
```html
|
||||
<el-calendar :range="['2019-03-04', '2019-03-24']">
|
||||
</el-calendar>
|
||||
|
||||
Reference in New Issue
Block a user