diff --git a/BJUI/js/bjui-slidebar.js b/BJUI/js/bjui-slidebar.js index 5ad162262f01c33d4a78f7e6ff95fa09f251e61e..63e5578a23236c6989b54224408e505304914c6f 100644 --- a/BJUI/js/bjui-slidebar.js +++ b/BJUI/js/bjui-slidebar.js @@ -261,8 +261,9 @@ if ($t.data('tit')) title = $t.data('tit') - cls = i ? 'collapsed' : '' - bodycls = i ? '' : ' in' + //修改默认第一个滑块激活 为 设置active的滑块激活 + cls = !$t.hasClass('active') ? 'collapsed' : '' + bodycls = !$t.hasClass('active') ? '' : ' in' panel = FRAG.slidePanel .replaceAll('#id#', 'bjui-collapse'+ i) .replaceAll('#title#', title)