update DateTimePicker

update DateTimePicker
This commit is contained in:
梁灏 2016-12-30 17:00:26 +08:00
parent 3693144258
commit 2dc2771349
8 changed files with 92 additions and 36 deletions

View file

@ -61,11 +61,8 @@
@on-pick-click="handlePickClick"></month-table>
<time-picker
v-ref:time-picker
v-show="currentView === 'time'"
:date="date"
:value="value"
:format="format"
show-date
v-show="currentView === 'time'"
@on-pick="handleTimePick"></time-picker>
</div>
<Confirm
@ -276,6 +273,7 @@
this.month = this.date.getMonth();
}
if (this.showTime) {
// todo 使
this.$refs.timePicker.date = this.date;
this.$refs.timePicker.value = this.value;
this.$refs.timePicker.format = this.format;