diff --git a/YiSha.Web/YiSha.Admin.Web/Views/Home/Welcome.cshtml b/YiSha.Web/YiSha.Admin.Web/Views/Home/Welcome.cshtml index d9a2ffdf..882ce143 100644 --- a/YiSha.Web/YiSha.Admin.Web/Views/Home/Welcome.cshtml +++ b/YiSha.Web/YiSha.Admin.Web/Views/Home/Welcome.cshtml @@ -126,6 +126,7 @@
  1. 1. 正式开源YiShaAdmin 2.2
  2. 2. 代码自动生成的时候,根据配置,生成对应菜单
  3. +
  4. 3. 修复bootstrap tree table的expandFirst为true,tree展开的问题
diff --git a/YiSha.Web/YiSha.Admin.Web/wwwroot/lib/bootstrap.treetable/1.0/bootstrap-treetable.js b/YiSha.Web/YiSha.Admin.Web/wwwroot/lib/bootstrap.treetable/1.0/bootstrap-treetable.js index 50b3d5bc..b1f048c0 100644 --- a/YiSha.Web/YiSha.Admin.Web/wwwroot/lib/bootstrap.treetable/1.0/bootstrap-treetable.js +++ b/YiSha.Web/YiSha.Admin.Web/wwwroot/lib/bootstrap.treetable/1.0/bootstrap-treetable.js @@ -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); + }); + } + } } }; // 绘制行