@@ -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>