| | |
| | | onMounted(() => { |
| | | nextTick(() => { |
| | | curHeight.value = tableContent.value.offsetHeight - 40 |
| | | |
| | | console.log(tableContent.value.offsetHeight, `current page: ${curHeight.value}`) |
| | | |
| | | }) |
| | | }) |
| | | |
| | |
| | | |
| | | <template> |
| | | <div ref="tableContent" class="content"> |
| | | <el-table :data="tableData" stripe style="width: 100%" :height="curHeight"> |
| | | <el-table empty-text="暂无数据" :data="tableData" stripe style="width: 100%" :height="curHeight"> |
| | | <el-table-column prop="ind" label="序号" width="60" /> |
| | | <el-table-column prop="address" label="位置" /> |
| | | <el-table-column prop="fireGrade" label="火灾等级" /> |