mirror of https://github.com/layui/layui
修复一些问题和加强一些功能
parent
afd5dbd676
commit
218b133fbf
|
@ -41,7 +41,7 @@
|
||||||
//主体CSS等待事件
|
//主体CSS等待事件
|
||||||
,ready: function(fn){
|
,ready: function(fn){
|
||||||
var cssname = 'laydate', ver = ''
|
var cssname = 'laydate', ver = ''
|
||||||
,path = (isLayui ? 'modules/laydate/' : 'theme/') + 'default/laydate.css?v='+ laydate.v + ver;
|
,path = (isLayui ? 'modules/' : '') + 'laydate.css?v='+ laydate.v + ver;
|
||||||
isLayui ? layui.addcss(path, fn, cssname) : ready.link(path, fn, cssname);
|
isLayui ? layui.addcss(path, fn, cssname) : ready.link(path, fn, cssname);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -896,7 +896,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
//无效日期范围的标记
|
//无效日期范围的标记
|
||||||
Class.prototype.limit = function(elem, date, index, time){
|
Class.prototype.limit = function(elem, date, index, time, type){
|
||||||
var that = this
|
var that = this
|
||||||
,options = that.config, timestrap = {}
|
,options = that.config, timestrap = {}
|
||||||
,dateTime = index > (time ? 0 : 41) ? that.endDate : options.dateTime
|
,dateTime = index > (time ? 0 : 41) ? that.endDate : options.dateTime
|
||||||
|
@ -1824,7 +1824,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取
|
// 获取
|
||||||
laydate.getIns = function (key) {
|
laydate.getInst = function (key) {
|
||||||
var that = thisModule.getThis(key);
|
var that = thisModule.getThis(key);
|
||||||
if (that) {
|
if (that) {
|
||||||
return that.inst;
|
return that.inst;
|
||||||
|
|
Loading…
Reference in New Issue