lrf402788946 преди 5 години
родител
ревизия
b29f620185
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      components/data-table.vue

+ 1 - 1
components/data-table.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="data-table">
-    <el-table :data="data" border stripe size="small" :max-height="height ? height : ''">
+    <el-table :data="data" border stripe size="small" :max-height="height !== null ? height : ''">
       <template v-for="(item, index) in fields">
         <el-table-column :key="index" align="center" :label="item.label" :prop="item.prop" :formatter="toFormatter"></el-table-column>
       </template>