pull/70/merge v5.1.0
贤心 2021-03-22 13:39:46 +08:00
parent d58c43b8d1
commit 41c431f619
3 changed files with 7 additions and 18 deletions

2
dist/laydate.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
{
"name": "layui-laydate",
"realname": "layDate",
"version": "5.1.0",
@ -34,5 +34,7 @@
"datetime",
"datepicker",
"calendar"
]
],
"homepage": "https://github.com/sentsin/laydate#readme",
"author": ""
}

View File

@ -3,15 +3,12 @@
@License: MIT
*/
/** lay 基础 DOM 操作 */
;!function(){
"use strict";
var MOD_NAME = 'lay' //模块名
,VERSION = '1.0.0' //版本
,document = window.document
//DOM查找
@ -31,7 +28,6 @@
}
};
/*
lay 对象操作
*/
@ -63,8 +59,8 @@
return args[0];
};
//模块版本
lay.v = VERSION;
//lay 模块版本
lay.v = '1.0.0';
//ie版本
lay.ie = function(){
@ -194,9 +190,6 @@
return str.replace(/\s+/, ' ').replace(/^\s|\s$/, '');
};
//版本
LAY.prototype.lay = VERSION;
//查找子元素
LAY.prototype.find = function(selector){
var that = this;
@ -328,9 +321,6 @@
}();
/** layDate 日期与时间控件 */
;!function(window){
@ -401,12 +391,10 @@
});
}
/*
组件操作
*/
//是否闰年
Class.isLeapYear = function(year){
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
@ -1817,7 +1805,6 @@
options.elem[0].eventHandler = true;
};
//核心接口
laydate.render = function(options){