TimePicker: fix range timepicker

pull/2112/head
qingwei.li 2016-12-30 15:18:03 +08:00
parent ef2e3c697a
commit 560d31982b
1 changed files with 3 additions and 3 deletions

View File

@ -352,11 +352,11 @@ export default {
if (Array.isArray(date)) {
if (equalDate(cache.cacheDateMin, date[0]) &&
equalDate(cache.cacheDateMax, date[1])) updated = false;
cache.cacheDateMin = date[0];
cache.cacheDateMax = date[1];
cache.cacheDateMin = new Date(date[0]);
cache.cacheDateMax = new Date(date[1]);
} else {
if (equalDate(cache.cacheDate, date)) updated = false;
cache.cacheDate = date;
cache.cacheDate = new Date(date);
}
return updated;