mirror of
https://gitee.com/layui/layui.git
synced 2025-10-27 03:09:32 +08:00
修复表单和日期选择的一些小问题
This commit is contained in:
@@ -651,7 +651,8 @@ layui.define(['lay', 'layer', 'util'], function(exports){
|
||||
|
||||
checks.each(function(index, check){
|
||||
var othis = $(this);
|
||||
var skin = othis.attr('lay-skin') || 'primary';
|
||||
var skin = othis.attr('lay-skin') || '';
|
||||
check.title || (check.title = othis.attr('lay-text') || ''); // 向下兼容将以前设置在lay-text的值赋给title
|
||||
var title = (check.title.replace(/\s/g, '') || '').split('|');
|
||||
var disabled = this.disabled;
|
||||
|
||||
|
||||
@@ -967,6 +967,11 @@
|
||||
minutes: that.endDate.minutes,
|
||||
seconds: that.endDate.seconds,
|
||||
}
|
||||
// 如果是年月范围,将对应的日期统一成当月的1日进行比较,避免出现同一个月但是开始日期大于结束日期的情况
|
||||
if (options.type === 'month') {
|
||||
options.dateTime.date = 1;
|
||||
that.endDate.date = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// 初始值不在最大最小范围内
|
||||
|
||||
Reference in New Issue
Block a user