Correct passing of confirm prop, correct initial values when no value is passed

This commit is contained in:
Sergio Crisostomo 2018-02-05 10:01:19 +01:00
parent 732b32e451
commit 29a91fbb61
5 changed files with 20 additions and 20 deletions

View file

@ -7,9 +7,9 @@
ref="timeSpinner"
:show-seconds="showSeconds"
:steps="steps"
:hours="date.getHours()"
:minutes="date.getMinutes()"
:seconds="date.getSeconds()"
:hours="value[0] && date.getHours()"
:minutes="value[0] && date.getMinutes()"
:seconds="value[0] && date.getSeconds()"
:disabled-hours="disabledHours"
:disabled-minutes="disabledMinutes"
:disabled-seconds="disabledSeconds"
@ -63,8 +63,7 @@
prefixCls: prefixCls,
timePrefixCls: timePrefixCls,
date: this.value[0] || initTimeDate(),
showDate: false,
confirm: false
showDate: false
};
},
computed: {