Skip to content

Commit 579e231

Browse files
committed
v0.5.0
1 parent 0216df3 commit 579e231

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

docs/build/app.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,26 @@ <h2>Datetime</h2>
6767
</div>
6868
</div>
6969

70-
<h2>Full demo</h2>
71-
<p class="description">Placeholder, locale, input format, input class, wrapper class, disabled dates, auto continue, auto close, monday first and required.</p>
70+
<h2>Complete demo</h2>
71+
<p class="description">Placeholder, locale, input format, input class, wrapper class, disabled dates, max date, min date, auto continue, auto close, monday first and required.</p>
7272

7373
<div class="example">
7474
<div class="example-inputs">
75-
<datetime v-model="dateEmpty" placeholder="Select date" type="datetime" locale="es" input-format="DD-MM-YYYY HH:mm" input-class="my-input-class" wrapper-class="my-wrapper-class" :disabled-dates="['2017-09-07', ['2017-09-25', '2017-10-05']]" auto-continue auto-close monday-first required></datetime>
75+
<datetime
76+
v-model="dateEmpty"
77+
placeholder="Select date"
78+
type="datetime"
79+
locale="es"
80+
input-format="DD-MM-YYYY HH:mm"
81+
input-class="my-input-class"
82+
wrapper-class="my-wrapper-class"
83+
:disabled-dates="disabledDates"
84+
:max-date="maxDate"
85+
:min-date="minDate"
86+
auto-continue
87+
auto-close
88+
monday-first
89+
required></datetime>
7690

7791
<div class="values">
7892
<p>
@@ -90,6 +104,8 @@ <h2>Full demo</h2>
90104
input-class=&#x22;my-input-class&#x22;
91105
wrapper-class=&#x22;my-wrapper-class&#x22;
92106
:disabled-dates=&#x22;[&#x27;2017-09-07&#x27;, [&#x27;2017-09-25&#x27;, &#x27;2017-10-05&#x27;]]&#x22;
107+
:max-date=&#x22;maxDate&#x22;
108+
:min-date=&#x22;minDate&#x22;
93109
auto-continue
94110
auto-close
95111
monday-first

docs/src/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Vue
22
import Vue from 'vue'
3+
import moment from 'moment'
34
import Datetime from '../../src'
45

56
Vue.use(Datetime)
@@ -11,8 +12,14 @@ new Vue({
1112
return {
1213
date: '2017-09-25',
1314
time: '20:40',
15+
1416
datetime: '2017-09-25T16:30:00Z',
17+
1518
dateEmpty: '',
19+
disabledDates: ['2017-09-07', ['2017-09-25', '2017-10-05']],
20+
maxDate: moment().add(2, 'month').toISOString(),
21+
minDate: moment().subtract(2, 'month').toISOString(),
22+
1623
dateStyle: new Date().toISOString()
1724
}
1825
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-datetime",
3-
"version": "0.4.3",
3+
"version": "0.5.0",
44
"description": "Mobile friendly datetime picker for Vue. Supports date, datetime and time modes, i18n and disabling dates.",
55
"keywords": [
66
"datetime",

0 commit comments

Comments
 (0)