Skip to content

Commit

Permalink
修复bootstrap tree table的expandFirst为true,tree展开的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liukuo362573 committed Oct 2, 2019
1 parent 7b35b48 commit 82eaac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions YiSha.Web/YiSha.Admin.Web/Views/Home/Welcome.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<ol>
<li>1. 正式开源YiShaAdmin 2.2</li>
<li>2. 代码自动生成的时候,根据配置,生成对应菜单</li>
<li>3. 修复bootstrap tree table的expandFirst为true,tree展开的问题</li>
</ol>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,14 @@
recursionNode(item, (lv + 1), _child_row_id, row_id);
});
}
else if (options.expandFirst) {
if (lv == 1) {
$.each(_ls, function (i, item) {
var _child_row_id = row_id + "_" + i;
recursionNode(item, (lv + 1), _child_row_id, row_id);
});
}
}
}
};
// 绘制行
Expand Down

0 comments on commit 82eaac1

Please sign in to comment.