mirror of https://github.com/layui/layui
2.1.2
parent
102a7497bc
commit
67a13c2ac4
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "layui",
|
"name": "layui",
|
||||||
"main": "src/layui.js",
|
"main": "src/layui.js",
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"homepage": "https://github.com/sentsin/layui",
|
"homepage": "https://github.com/sentsin/layui",
|
||||||
"authors": [
|
"authors": [
|
||||||
"sentsin <xu@sentsin.com>"
|
"sentsin <xu@sentsin.com>"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "layui",
|
"name": "layui",
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"layimV": "3.7.0",
|
"layimV": "3.7.0",
|
||||||
"description": "经典模块化前端框架",
|
"description": "经典模块化前端框架",
|
||||||
"main": "layui.js",
|
"main": "layui.js",
|
||||||
|
|
|
@ -339,7 +339,7 @@ a cite{font-style: normal; *cursor:pointer;}
|
||||||
.layui-btn-group+.layui-btn-group{margin-left: 10px;}
|
.layui-btn-group+.layui-btn-group{margin-left: 10px;}
|
||||||
|
|
||||||
/** 表单 **/
|
/** 表单 **/
|
||||||
.layui-input, .layui-textarea, .layui-select{height: 38px; line-height: 38px; line-height: 36px\9; border: 1px solid #e6e6e6; background-color: #fff; border-radius: 2px;}
|
.layui-input, .layui-textarea, .layui-select{height: 38px; line-height: 36px\9; border: 1px solid #e6e6e6; background-color: #fff; border-radius: 2px;}
|
||||||
.layui-input, .layui-textarea{display: block; width: 100%; padding-left: 10px;}
|
.layui-input, .layui-textarea{display: block; width: 100%; padding-left: 10px;}
|
||||||
.layui-input:hover, .layui-textarea:hover{border-color: #D2D2D2 !important;}
|
.layui-input:hover, .layui-textarea:hover{border-color: #D2D2D2 !important;}
|
||||||
.layui-input:focus, .layui-textarea:focus{border-color: #C9C9C9 !important;}
|
.layui-input:focus, .layui-textarea:focus{border-color: #C9C9C9 !important;}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@Name : layDate 5.0.4 日期时间控件
|
@Name : layDate 5.0.5 日期时间控件
|
||||||
@Author: 贤心
|
@Author: 贤心
|
||||||
@Site:http://www.layui.com/laydate/
|
@Site:http://www.layui.com/laydate/
|
||||||
@License:MIT
|
@License:MIT
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
,laydate = {
|
,laydate = {
|
||||||
v: '5.0.4'
|
v: '5.0.5'
|
||||||
,config: {} //全局配置项
|
,config: {} //全局配置项
|
||||||
,index: (window.laydate && window.laydate.v) ? 100000 : 0
|
,index: (window.laydate && window.laydate.v) ? 100000 : 0
|
||||||
,path: ready.getPath
|
,path: ready.getPath
|
||||||
|
|
|
@ -274,7 +274,6 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
|
||||||
var params = {};
|
var params = {};
|
||||||
params[request.pageName] = curr;
|
params[request.pageName] = curr;
|
||||||
params[request.limitName] = options.limit;
|
params[request.limitName] = options.limit;
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: options.method || 'get'
|
type: options.method || 'get'
|
||||||
,url: options.url
|
,url: options.url
|
||||||
|
@ -283,7 +282,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
|
||||||
,success: function(res){
|
,success: function(res){
|
||||||
if(res[response.statusName] != response.statusCode){
|
if(res[response.statusName] != response.statusCode){
|
||||||
that.renderForm();
|
that.renderForm();
|
||||||
return that.layMain.html('<div class="layui-none">'+ (res[response.msgName] || '返回的数据状态异常') +'</div>');;
|
return that.layMain.html('<div class="layui-none">'+ (res[response.msgName] || '返回的数据状态异常') +'</div>');
|
||||||
}
|
}
|
||||||
that.renderData(res, curr, res[response.countName]), sort();
|
that.renderData(res, curr, res[response.countName]), sort();
|
||||||
loadIndex && layer.close(loadIndex);
|
loadIndex && layer.close(loadIndex);
|
||||||
|
@ -397,6 +396,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
|
||||||
that.scrollPatch();
|
that.scrollPatch();
|
||||||
}, 50);
|
}, 50);
|
||||||
that.haveInit = true;
|
that.haveInit = true;
|
||||||
|
layer.close(that.tipsIndex);
|
||||||
};
|
};
|
||||||
|
|
||||||
that.key = options.id || options.index;
|
that.key = options.id || options.index;
|
||||||
|
@ -521,8 +521,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
|
||||||
return layer.msg('数据请求中', {
|
return layer.msg('数据请求中', {
|
||||||
icon: 16
|
icon: 16
|
||||||
,offset: [
|
,offset: [
|
||||||
that.layTool.offset().top - 100 - _WIN.scrollTop() + 'px'
|
that.elem.offset().top + that.elem.height()/2 - 35 - _WIN.scrollTop() + 'px'
|
||||||
,that.layTool.offset().left + that.layTool.width()/2 - 90 - _WIN.scrollLeft() + 'px'
|
,that.elem.offset().left + that.elem.width()/2 - 90 - _WIN.scrollLeft() + 'px'
|
||||||
]
|
]
|
||||||
,anim: -1
|
,anim: -1
|
||||||
,fixed: false
|
,fixed: false
|
||||||
|
@ -606,6 +606,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
|
||||||
//滚动条补丁
|
//滚动条补丁
|
||||||
Class.prototype.scrollPatch = function(){
|
Class.prototype.scrollPatch = function(){
|
||||||
var that = this
|
var that = this
|
||||||
|
,layMainTable = that.layMain.children('table')
|
||||||
,scollWidth = that.layMain.width() - that.layMain.prop('clientWidth') //纵向滚动条宽度
|
,scollWidth = that.layMain.width() - that.layMain.prop('clientWidth') //纵向滚动条宽度
|
||||||
,scollHeight = that.layMain.height() - that.layMain.prop('clientHeight'); //横向滚动条高度
|
,scollHeight = that.layMain.height() - that.layMain.prop('clientHeight'); //横向滚动条高度
|
||||||
if(scollWidth && scollHeight){
|
if(scollWidth && scollHeight){
|
||||||
|
@ -620,7 +621,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
|
||||||
that.layHeader.eq(0).find('.layui-table-patch').remove();
|
that.layHeader.eq(0).find('.layui-table-patch').remove();
|
||||||
}
|
}
|
||||||
that.layFixed.find(ELEM_BODY).css('height', that.layMain.height() - scollHeight); //固定列区域高度
|
that.layFixed.find(ELEM_BODY).css('height', that.layMain.height() - scollHeight); //固定列区域高度
|
||||||
that.layFixRight[scollHeight ? 'removeClass' : 'addClass'](HIDE);
|
that.layFixRight[layMainTable.width() > that.layMain.width() ? 'removeClass' : 'addClass'](HIDE); //表格宽度小于容器宽度时,隐藏固定列
|
||||||
that.layFixRight.css('right', scollWidth - 1); //操作栏
|
that.layFixRight.css('right', scollWidth - 1); //操作栏
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
,Layui = function(){
|
,Layui = function(){
|
||||||
this.v = '2.1.1'; //版本号
|
this.v = '2.1.2'; //版本号
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取layui所在目录
|
//获取layui所在目录
|
||||||
|
|
Loading…
Reference in New Issue