mirror of https://github.com/layui/layui
commit
b7ce4796bf
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "layui",
|
"name": "layui",
|
||||||
"version": "2.8.5",
|
"version": "2.8.6",
|
||||||
"description": "Classic modular Front-End UI library",
|
"description": "Classic modular Front-End UI library",
|
||||||
"main": "dist/layui.js",
|
"main": "dist/layui.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var Layui = function(){
|
var Layui = function(){
|
||||||
this.v = '2.8.5'; // Layui 版本号
|
this.v = '2.8.6'; // Layui 版本号
|
||||||
};
|
};
|
||||||
|
|
||||||
// 识别预先可能定义的指定全局对象
|
// 识别预先可能定义的指定全局对象
|
||||||
|
|
|
@ -155,7 +155,7 @@ layui.define('jquery', function(exports){
|
||||||
// Tab 删除
|
// Tab 删除
|
||||||
,tabDelete: function(e, othis){
|
,tabDelete: function(e, othis){
|
||||||
var li = othis || $(this).parent();
|
var li = othis || $(this).parent();
|
||||||
var index = li.index('li');
|
var index = li.parent().children('li').index(li);
|
||||||
var tabElem = li.closest('.layui-tab');
|
var tabElem = li.closest('.layui-tab');
|
||||||
var item = tabElem.children('.layui-tab-content').children('.layui-tab-item');
|
var item = tabElem.children('.layui-tab-content').children('.layui-tab-item');
|
||||||
var filter = tabElem.attr('lay-filter');
|
var filter = tabElem.attr('lay-filter');
|
||||||
|
@ -217,10 +217,11 @@ layui.define('jquery', function(exports){
|
||||||
|
|
||||||
// 响应式
|
// 响应式
|
||||||
if(
|
if(
|
||||||
title.prop('scrollWidth') > title.outerWidth() + 1 ||
|
title.prop('scrollWidth') > title.outerWidth() + 1 || (
|
||||||
title.height() > function(height){
|
title.find('li').length && title.height() > function(height){
|
||||||
return height + height/2;
|
return height + height/2;
|
||||||
}(title.find('li').eq(0).height())
|
}(title.find('li').eq(0).height())
|
||||||
|
)
|
||||||
){
|
){
|
||||||
// 若执行是来自于切换,则自动展开
|
// 若执行是来自于切换,则自动展开
|
||||||
(
|
(
|
||||||
|
|
|
@ -1022,7 +1022,7 @@ layui.define(['table'], function (exports) {
|
||||||
} else {
|
} else {
|
||||||
debounceFn('renderTreeTable-' + tableId, function () {
|
debounceFn('renderTreeTable-' + tableId, function () {
|
||||||
options.hasNumberCol && formatNumber(that);
|
options.hasNumberCol && formatNumber(that);
|
||||||
form.render(options.elem.next());
|
form.render($('.layui-table-tree[lay-id="' + tableId + '"]'));
|
||||||
}, 0)();
|
}, 0)();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue