一、如何定义 table 中每一行的 height ?

1.table例子
    <!-- 二、table -->
    <div style="overflow: hidden;display: block;height: 68vh;width: 100%;">
      <el-table stripe show-header style="width: 100%" :data="tableData">
        <el-table-column prop="oilArea" label="采油区" sortable width="auto" />
        <el-table-column prop="station" label="" sortable width="auto" />
        <el-table-column prop="well" label="" sortable width="auto" />
        <el-table-column prop="goodsCode" label="物资编码" sortable width="auto" />
        <el-table-column prop="goodsName" label="物资名称" sortable width="auto" />
        <el-table-column prop="totalNum" label="消耗数量" sortable width="auto" />
      </el-table>
    </div>
2.解决办法

在这里插入图片描述

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐