Merge branch 'layui:2.x' into 2.x

pull/1273/head
sunxiaobin89 2023-06-05 14:05:12 +08:00 committed by GitHub
commit f3b7c9dd51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');