Merge remote-tracking branch 'origin/2.x' into 2.x

pull/1273/head
sunxiaobin89 2023-06-06 08:46:04 +08:00
commit 851d63c8b2
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ layui.define('jquery', function(exports){
// Tab 删除
,tabDelete: function(e, othis){
var li = othis || $(this).parent();
var index = li.index();
var index = 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');