Element ui plus 中 table scroll 自动触底
场景:添加客户等级的时候,新增的客户等级 input 框 被 scroll 遮挡、重叠,需要保证 scroll 保持在 最底部接可以解决 遮挡、重叠。
el-table 在设置了 height 后,会选择将 table 表头固定
<el-table :height="tableData.length*40+50>tableHeight?tableHeight:tableData.length*40+50" :data="tableData"
style="width: 100%;"
ref="TableRef"
:cell-style="{ textAlign: 'center' }"
v-loading="loading"
:header-cell-style="{ 'text-align': 'center',background: '#f9f9f9', color: 'black',padding:'16px 0px'}"
>
//table 中的其他内容
</el-table>
获取ta