Skip to content

Commit 50c102e

Browse files
committed
chore(docs): Update docs
1 parent 0eeb302 commit 50c102e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

packages/docs/docs/migration/from-v12.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ outline: [2, 4]
1616
- `dp__date_hover_start` renamed to `dp--date-hoverable-start`
1717
- `dp__date_hover_end` renamed to `dp--date-hoverable-end`
1818
- Removed classes: `dp__range_end`, `dp__range_start`, `dp--extended-fixed-start`, `dp--extended-fixed-end`
19+
- `week-start` will now default to `locale` prop instead of Monday.
1920

2021
### Change
2122

@@ -41,3 +42,20 @@ Replace all underscores with dashes. The wording of the class name is the same.
4142
/* Custom overrides */
4243
}
4344
```
45+
46+
### `week-start`
47+
48+
Since default locale is `enUS`, the default `week-start` will be Sunday. To retain previous behavior, override `week-start` to Monday
49+
50+
```vue
51+
<template>
52+
<!--[!code --]-->
53+
<VueDatePicker />
54+
<!-- [!code ++]-->
55+
<VueDatePicker :week-start="WeekStart.Monday" />
56+
</template>
57+
58+
<script lang="ts" setup>
59+
import { WeekStart } from "@vuepic/vue-datepicker"
60+
</script>
61+
```

0 commit comments

Comments
 (0)