Skip to content

Commit 7e01a2f

Browse files
authored
✏️ Fix (#24)
1 parent 28ac6d7 commit 7e01a2f

File tree

4 files changed

+7
-35
lines changed

4 files changed

+7
-35
lines changed

docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Prop | Type | Default | Description |
66
| ------------------- | ---------- | --------------------- | ------------------------------------------------- |
77
| `v-model` | `String` | `null` | The selected date (two-way data binding). |
8-
| `displayFormat` | `String` | `'YYYY-MM-DD'` | The format used to display the date. |
8+
| `displayFormat` | `String` | `'yyyy-MM-dd'` | The format used to display the date. |
99
| `disabled` | `Boolean` | `false` | Disables the date picker. |
1010
| `placeholder` | `String` | `null` | Placeholder text for the input. |
1111
| `yearContent` | `String` | `null` | Content to display for the year. |

docs/guide/customization.md

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,14 @@ Example:
1313
}
1414
```
1515

16-
## Slots
17-
18-
`vue3-datepick` supports named slots for customizing the internal content of the date picker.
19-
20-
### Custom Header
21-
22-
You can replace the default header with your own custom content:
23-
24-
```vue
25-
<DatePick>
26-
<template #header>
27-
<h3>Select a Date</h3>
28-
</template>
29-
</DatePick>
30-
```
31-
32-
### Custom Footer
33-
34-
You can also customize the footer content by using the `footer` slot:
35-
36-
```vue
37-
<DatePick>
38-
<template #footer>
39-
<p>Custom Footer Content</p>
40-
</template>
41-
</DatePick>
42-
```
43-
4416
## Date Format Customization
4517

46-
You can easily customize how the date is displayed using the `displayFormat` prop. The default format is `YYYY-MM-DD`.
18+
You can easily customize how the date is displayed using the `displayFormat` prop. The default format is `yyyy-MM-dd`.
4719

4820
Example:
4921

5022
```vue
51-
<DatePick v-model="selectedDate" display-format="DD/MM/YYYY" />
23+
<DatePick v-model="selectedDate" display-format="dd/MM/yyyy" />
5224
```
5325

5426
## Disable Specific Dates

docs/guide/examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ const selectedDate = ref('')
5656

5757
## Custom Date Format
5858

59-
Customize the date format that is displayed in the input field. For example, use `DD/MM/YYYY` instead of the default `YYYY-MM-DD`.
59+
Customize the date format that is displayed in the input field. For example, use `dd/MM/yyyy` instead of the default `yyyy-MM-dd`.
6060

6161
```vue
6262
<template>
63-
<DatePicker v-model="selectedDate" display-format="DD/MM/YYYY" />
63+
<DatePicker v-model="selectedDate" display-format="dd/MM/yyyy" />
6464
</template>
6565
6666
<script setup lang="ts">

docs/guide/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ In this example, the selected date is bound to the `selectedDate` variable using
2525

2626
You can easily change the format of the date displayed in the input by using the `displayFormat` prop.
2727

28-
Example: Set the date format to `MM/DD/YYYY`:
28+
Example: Set the date format to `MM/dd/yyyy`:
2929

3030
```vue
3131
<template>
32-
<DatePicker v-model="selectedDate" display-format="MM/DD/YYYY" />
32+
<DatePicker v-model="selectedDate" display-format="MM/dd/yyyy" />
3333
</template>
3434
3535
<script setup lang="ts">

0 commit comments

Comments
 (0)