lrf402788946 5 tahun lalu
induk
melakukan
b29f620185
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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>