1.固定表头
el-table 直接设置 height 属性
2.固定列
想要固定的列,添加fixed属性(可以设置左右固定)
3.动态高度
height="calc(100vh - 180px )" 即可,180px 可以改变,自己自测一下
<el-table
:data="tableData"
height="calc(100vh - 180px )"
style="width: 100%"
>
el-table 直接设置 height 属性
想要固定的列,添加fixed属性(可以设置左右固定)
height="calc(100vh - 180px )" 即可,180px 可以改变,自己自测一下
<el-table
:data="tableData"
height="calc(100vh - 180px )"
style="width: 100%"
>