feat: calendar support firstDayOfWeek (#6468)

This commit is contained in:
yeliex
2020-07-14 11:51:27 +08:00
committed by GitHub
parent 63aa6baa86
commit 5febb845d0
8 changed files with 89 additions and 2 deletions
+9
View File
@@ -200,6 +200,14 @@ When selecting a date range, you can use the `max-range` prop to specify the max
<van-calendar type="range" :max-range="3" :style="{ height: '500px' }" />
```
### Custom First Day Of Week
Use `first-day-of-week` to custom the start day of week
```html
<van-calendar first-day-of-week="1" />
```
### Tiled display
Set `poppable` to `false`, the calendar will be displayed directly on the page instead of appearing as a popup
@@ -235,6 +243,7 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i
| show-confirm | Whether to show confirm button | _boolean_ | `true` |
| confirm-text | Confirm button text | _string_ | `Confirm` |
| confirm-disabled-text | Confirm button text when disabled | _string_ | `Confirm` |
| first-day-of-week | Set the start day of week | _0-6_ | `0` |
### Poppable Props