Merge pull request #1218 from yyhyd/test-pr

修复拼写错误
pull/1219/head
贤心 2023-03-30 13:18:23 +08:00 committed by GitHub
commit 0bca3ddd0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1032,7 +1032,7 @@
var that = this;
var options = that.config;
var timestrap = {}
var timestamp = {}
var dateTime = opts.index > (opts.time ? 0 : 41) ? that.endDate : options.dateTime;
var isOut;
@ -1041,7 +1041,7 @@
,min: options.min
,max: options.max
}, function(key, item){
timestrap[key] = that.newDate(lay.extend({
timestamp[key] = that.newDate(lay.extend({
year: item.year
,month: opts.type === 'year' ? 0 : item.month // 年份的时候只比较年
,date: (opts.type === 'year' || opts.type === 'month') ? 1 : item.date // 年月只比较年月不与最大最小比日期
@ -1054,7 +1054,7 @@
}())).getTime(); //time是否比较时分秒
});
isOut = timestrap.now < timestrap.min || timestrap.now > timestrap.max;
isOut = timestamp.now < timestamp.min || timestamp.now > timestamp.max;
opts.elem && opts.elem[isOut ? 'addClass' : 'removeClass'](DISABLED);
return isOut;