Skip to content

Commit 51fc14c

Browse files
committed
Update docs
1 parent 92fecd8 commit 51fc14c

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ npm install vue-datepicker-ui --save
2525
<div class="Datepickers">
2626
<div class="Datepicker">
2727
<Datepicker
28-
:value="new Date()"/>
28+
:model-value="new Date()"/>
2929
</div>
3030

3131
<div class="Datepicker colorfull">
3232
<Datepicker
3333
circle
34-
:value="new Date()"/>
34+
:model-value="new Date()"/>
3535
</div>
3636

3737
<div class="Datepicker dark">
3838
<Datepicker
3939
circle
40-
:value="new Date()"/>
40+
:model-value="new Date()"/>
4141
</div>
4242

4343
<div class="Datepicker dark">
4444
<Datepicker
4545
circle
4646
range
4747
position="center"
48-
:value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"/>
48+
:model-value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"/>
4949
</div>
5050

5151
</div>

docs/examples.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ title: 'Examples'
1212
<Datepicker v-model="new Date()"/>
1313
</template>
1414
```
15-
<Datepicker :value="new Date()"/>
15+
<Datepicker :model-value="new Date()"/>
1616

1717
## range
1818
**Range - Default**
@@ -37,7 +37,7 @@ title: 'Examples'
3737
</script>
3838
```
3939
<Datepicker
40-
:value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"
40+
:model-value="[new Date(), new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"
4141
range/>
4242

4343
## lang
@@ -48,7 +48,7 @@ title: 'Examples'
4848
</template>
4949
```
5050

51-
<Datepicker :value="new Date()" lang="en"/>
51+
<Datepicker :model-value="new Date()" lang="en"/>
5252

5353
## firstDayOfWeek
5454

@@ -59,7 +59,7 @@ title: 'Examples'
5959
</template>
6060
```
6161

62-
<Datepicker :value="new Date()" first-day-of-week="sunday"/>
62+
<Datepicker :model-value="new Date()" first-day-of-week="sunday"/>
6363

6464
## inputClass
6565
**Added Custom Input Class**
@@ -69,7 +69,7 @@ title: 'Examples'
6969
</template>
7070
```
7171

72-
<Datepicker :value="new Date()" input-class="customInputClass"/>
72+
<Datepicker :model-value="new Date()" input-class="customInputClass"/>
7373

7474
## position
7575
**Change Picker Position** (Default: 'left')
@@ -80,7 +80,7 @@ title: 'Examples'
8080
<Datepicker v-model="new Date()" position="left"/>
8181
</template>
8282
```
83-
<Datepicker :value="new Date()" position="left"/>
83+
<Datepicker :model-value="new Date()" position="left"/>
8484

8585
**Right**
8686
```vue
@@ -89,7 +89,7 @@ title: 'Examples'
8989
</template>
9090
```
9191

92-
<Datepicker :value="new Date()" position="right"/>
92+
<Datepicker :model-value="new Date()" position="right"/>
9393

9494
**Center**
9595
```vue
@@ -98,7 +98,7 @@ title: 'Examples'
9898
</template>
9999
```
100100

101-
<Datepicker :value="new Date()" position="center"/>
101+
<Datepicker :model-value="new Date()" position="center"/>
102102

103103
**Top**
104104
```vue
@@ -107,7 +107,7 @@ title: 'Examples'
107107
</template>
108108
```
109109

110-
<Datepicker :value="new Date()" position="top"/>
110+
<Datepicker :model-value="new Date()" position="top"/>
111111

112112
## disabledStartDate
113113
**Make disabled single date:**
@@ -135,7 +135,7 @@ title: 'Examples'
135135
```
136136

137137
<Datepicker
138-
:value="new Date(new Date().getTime() - 5 * 24 * 60 * 60 * 1000)"
138+
:model-value="new Date(new Date().getTime() - 5 * 24 * 60 * 60 * 1000)"
139139
:disabled-start-date="{
140140
to: new Date('08.02.2021'),
141141
from: new Date('10.02.2021')
@@ -175,7 +175,7 @@ title: 'Examples'
175175

176176
<Datepicker
177177
range
178-
:value="[new Date(),
178+
:model-value="[new Date(),
179179
new Date(new Date().getTime() + 9 * 24 * 60 * 60 * 1000)]"
180180
:disabled-end-date="{
181181
to: new Date('08.02.2021'),
@@ -192,7 +192,7 @@ title: 'Examples'
192192
</template>
193193
```
194194

195-
<Datepicker :value="new Date()" text-format="long"/>
195+
<Datepicker :model-value="new Date()" text-format="long"/>
196196

197197

198198
## dateFormat
@@ -209,7 +209,7 @@ title: 'Examples'
209209
</template>
210210
```
211211

212-
<Datepicker :value="new Date()" :date-format="{ day: '2-digit', month: '2-digit', year: 'numeric' }"/>
212+
<Datepicker :model-value="new Date()" :date-format="{ day: '2-digit', month: '2-digit', year: 'numeric' }"/>
213213

214214
## disabled
215215
**Disable Calendar**
@@ -245,7 +245,7 @@ title: 'Examples'
245245

246246
<Datepicker
247247
circle
248-
:value="new Date()"/>
248+
:model-value="new Date()"/>
249249

250250
## showClearButton
251251
**selected date clear**
@@ -259,7 +259,7 @@ title: 'Examples'
259259

260260
<Datepicker
261261
show-clear-button
262-
:value="new Date()"/>
262+
:model-value="new Date()"/>
263263

264264
## showPickerInital
265265
**picker show on mount**
@@ -273,4 +273,4 @@ title: 'Examples'
273273

274274
<Datepicker
275275
show-picker-inital
276-
:value="new Date()"/>
276+
:model-value="new Date()"/>

0 commit comments

Comments
 (0)