Browse Source

资料归集,滚动条

MaiXinRong 2 năm trước cách đây
mục cha
commit
66bbf668b5
2 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 4 0
      app/public/js/file_detail.js
  2. 1 3
      app/view/file/file.ejs

+ 4 - 0
app/public/js/file_detail.js

@@ -1,4 +1,8 @@
 $(document).ready(function() {
+    autoFlashHeight();
+    console.log($(".sjs-height-0").height());
+    console.log($('#add-slibing').parent().parent().height());
+    $('#filing').height($(".sjs-height-0").height() - $('#add-slibing').parent().parent().height() - 10);
     class FilingObj {
         constructor(setting) {
             // 原始数据整理后的树结构,用来整理zTree显示

+ 1 - 3
app/view/file/file.ejs

@@ -21,9 +21,7 @@
                         <div class="p-2 ml-2">分类目录</div>
                         <% } %>
                     </div>
-                    <div>
-                        <ul id="filing" class="ztree"></ul>
-                    </div>
+                    <ul id="filing" class="ztree" style="overflow: auto"></ul>
                 </div>
                 <div class="col-9" id="file-view" style="display: none">
                     <div class="d-flex flex-row">