修复datetimepicker的问题

This commit is contained in:
niunai
2017-03-28 14:43:53 +08:00
parent db438160cd
commit 56a3922a01
4 changed files with 100 additions and 33 deletions

View File

@@ -4,7 +4,8 @@ export default {
return {
minHour: 10,
maxHour: 20,
minDate: new Date()
minDate: new Date(),
currentDate: null
};
},
@@ -31,8 +32,10 @@ export default {
:::demo 基础用法
```html
<zan-datetime-picker
type="time"
<zan-datetime-picker
v-model="currentDate"
type="datetime"
format="yyyy.mm.dd hh时 mm分"
:min-hour="minHour"
:max-hour="maxHour"
:min-date="minDate"