update TimePicker

update TimePicker
This commit is contained in:
梁灏 2016-12-28 17:30:34 +08:00
parent d609ba8682
commit 0dd7b94a4d
3 changed files with 32 additions and 29 deletions

View file

@ -85,9 +85,8 @@
},
watch: {
value (newVal) {
if (!newVal) {
return;
} else if (Array.isArray(newVal)) {
if (!newVal) return;
if (Array.isArray(newVal)) {
const valStart = newVal[0] ? toDate(newVal[0]) : false;
const valEnd = newVal[1] ? toDate(newVal[1]) : false;