当前位置:首页 > 编程笔记 > 正文
已解决

【VUE·疑难问题】定义 table 中每行的高度(使用 element-UI)

来自网友在路上 171871提问 提问时间:2023-10-06 16:04:18阅读次数: 71

最佳答案 问答题库718位专家为你答疑解惑

一、如何定义 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.解决办法

在这里插入图片描述

查看全文

99%的人还看了

相似问题

猜你感兴趣

版权申明

本文"【VUE·疑难问题】定义 table 中每行的高度(使用 element-UI)":http://eshow365.cn/6-16366-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!