mirror of https://github.com/layui/layui
commit
74023c658b
|
@ -148,7 +148,7 @@
|
|||
(function poll() {
|
||||
if(++timeout > config.timeout * 1000 / 4){
|
||||
return error(item + ' is not a valid module', 'error');
|
||||
};
|
||||
}
|
||||
config.status[item] ? onCallback() : setTimeout(poll, 4);
|
||||
}());
|
||||
}
|
||||
|
@ -221,7 +221,7 @@
|
|||
(function poll() {
|
||||
if(++timeout > config.timeout * 1000 / 4){
|
||||
return error(item + ' is not a valid module', 'error');
|
||||
};
|
||||
}
|
||||
(typeof config.modules[item] === 'string' && config.status[item])
|
||||
? onCallback()
|
||||
: setTimeout(poll, 4);
|
||||
|
@ -285,7 +285,7 @@
|
|||
//如果轮询超过指定秒数,则视为请求文件失败或 css 文件不符合规范
|
||||
if(++timeout > config.timeout * 1000 / delay){
|
||||
return error(href + ' timeout');
|
||||
};
|
||||
}
|
||||
|
||||
//css 加载就绪
|
||||
if(parseInt(that.getStyle(getLinkElem, 'width')) === 1989){
|
||||
|
@ -671,7 +671,7 @@
|
|||
} else { //数字 vs 数字
|
||||
return v1 - v2;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 字典序排序
|
||||
|
|
|
@ -87,16 +87,8 @@ layui.define('jquery',function(exports){
|
|||
+ (i>Math.floor(options.value)?ICON_RATE:ICON_RATE_SOLID)
|
||||
+ '" '+ style +'></i></li>';
|
||||
|
||||
if(options.half){
|
||||
if(parseInt(options.value) !== options.value){
|
||||
if(i == Math.ceil(options.value)){
|
||||
temp = temp + '<li><i class="layui-icon layui-icon-rate-half" '+ style +'></i></li>';
|
||||
}else{
|
||||
temp = temp + item
|
||||
}
|
||||
}else{
|
||||
temp = temp + item
|
||||
}
|
||||
if(options.half&&parseInt(options.value) !== options.value&&i == Math.ceil(options.value)){
|
||||
temp = temp + '<li><i class="layui-icon layui-icon-rate-half" '+ style +'></i></li>';
|
||||
}else{
|
||||
temp = temp +item;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue