Pārlūkot izejas kodu

表格高度修改

duy 1 gadu atpakaļ
vecāks
revīzija
b862dbccf6

+ 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"
     />