mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 08:33:12 +08:00
修复 tab 索引获取错误
修复 tab 索引获取错误
This commit is contained in:
@@ -155,7 +155,7 @@ layui.define('jquery', function(exports){
|
||||
// Tab 删除
|
||||
,tabDelete: function(e, othis){
|
||||
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 item = tabElem.children('.layui-tab-content').children('.layui-tab-item');
|
||||
var filter = tabElem.attr('lay-filter');
|
||||
|
||||
Reference in New Issue
Block a user