pull/84/merge
soakit 2020-05-21 09:31:13 +00:00 committed by GitHub
commit 98041fe728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -910,7 +910,11 @@
value = value.split(' '+ options.range +' ');
that.startDate = that.startDate || that.systemDate();
that.endDate = that.endDate || that.systemDate();
options.dateTime = lay.extend({}, that.startDate);
if (options.selectEndDate) {
options.dateTime = lay.extend({}, that.endDate);
} else {
options.dateTime = lay.extend({}, that.startDate);
}
lay.each([that.startDate, that.endDate], function(i, item){
initDate(item, value[i], i);
});
@ -1863,4 +1867,4 @@
}()
);
}();
}();