parent
d58c43b8d1
commit
41c431f619
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"name": "layui-laydate",
|
"name": "layui-laydate",
|
||||||
"realname": "layDate",
|
"realname": "layDate",
|
||||||
"version": "5.1.0",
|
"version": "5.1.0",
|
||||||
|
@ -34,5 +34,7 @@
|
||||||
"datetime",
|
"datetime",
|
||||||
"datepicker",
|
"datepicker",
|
||||||
"calendar"
|
"calendar"
|
||||||
]
|
],
|
||||||
|
"homepage": "https://github.com/sentsin/laydate#readme",
|
||||||
|
"author": ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +3,12 @@
|
||||||
@License: MIT
|
@License: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/** lay 基础 DOM 操作 */
|
/** lay 基础 DOM 操作 */
|
||||||
|
|
||||||
;!function(){
|
;!function(){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var MOD_NAME = 'lay' //模块名
|
var MOD_NAME = 'lay' //模块名
|
||||||
,VERSION = '1.0.0' //版本
|
|
||||||
,document = window.document
|
,document = window.document
|
||||||
|
|
||||||
//DOM查找
|
//DOM查找
|
||||||
|
@ -31,7 +28,6 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
lay 对象操作
|
lay 对象操作
|
||||||
*/
|
*/
|
||||||
|
@ -63,8 +59,8 @@
|
||||||
return args[0];
|
return args[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
//模块版本
|
//lay 模块版本
|
||||||
lay.v = VERSION;
|
lay.v = '1.0.0';
|
||||||
|
|
||||||
//ie版本
|
//ie版本
|
||||||
lay.ie = function(){
|
lay.ie = function(){
|
||||||
|
@ -194,9 +190,6 @@
|
||||||
return str.replace(/\s+/, ' ').replace(/^\s|\s$/, '');
|
return str.replace(/\s+/, ' ').replace(/^\s|\s$/, '');
|
||||||
};
|
};
|
||||||
|
|
||||||
//版本
|
|
||||||
LAY.prototype.lay = VERSION;
|
|
||||||
|
|
||||||
//查找子元素
|
//查找子元素
|
||||||
LAY.prototype.find = function(selector){
|
LAY.prototype.find = function(selector){
|
||||||
var that = this;
|
var that = this;
|
||||||
|
@ -328,9 +321,6 @@
|
||||||
|
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** layDate 日期与时间控件 */
|
/** layDate 日期与时间控件 */
|
||||||
|
|
||||||
;!function(window){
|
;!function(window){
|
||||||
|
@ -401,12 +391,10 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
组件操作
|
组件操作
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//是否闰年
|
//是否闰年
|
||||||
Class.isLeapYear = function(year){
|
Class.isLeapYear = function(year){
|
||||||
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
||||||
|
@ -1818,7 +1806,6 @@
|
||||||
options.elem[0].eventHandler = true;
|
options.elem[0].eventHandler = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//核心接口
|
//核心接口
|
||||||
laydate.render = function(options){
|
laydate.render = function(options){
|
||||||
var inst = new Class(options);
|
var inst = new Class(options);
|
||||||
|
|
Loading…
Reference in New Issue