소스 검색

表格高度修改

duy 1 년 전
부모
커밋
b862dbccf6
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/transfer/components/table-collect.vue
  2. 1 1
      src/views/transfer/components/visual-table.vue

+ 1 - 1
src/views/transfer/components/table-collect.vue

@@ -31,7 +31,7 @@
                             <span>{{ item1.nodeInfo }}</span>
                             <!-- <span class="text-gray">(238卷)</span> -->
                         </template>
-                        <div :style="`height: ${item1.list !== null ? '300px' : 'auto'};`">
+                        <div :style="`height: ${item1.list !== null && item1.list.length > 9 ? '300px' : 'auto'};`">
                             <!-- <HcTable
                                 ref="tableRef" :column="tableColumn" :datas="item1.list" :loading="tableLoading"
                                 is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"

+ 1 - 1
src/views/transfer/components/visual-table.vue

@@ -2,7 +2,7 @@
 <template>
     <HcTable
         ref="tableRef"
-        heights="300px" :column="tableColumn" :datas="tableData" :loading="tableLoaing"
+        :column="tableColumn" :datas="tableData" :loading="tableLoaing"
         is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
         @selection-change="tableSelection"
     />