el-table fixed action bar misalignment

Screenshot of the problem

Fixed action bar misalignment
insert image description here

solution

  1. First check whether the width you set for the action bar is enough
  2. Re-render the dom of el-table (the solution I use)
<!-- html -->
<el-table ref="multipleTable">
</el-table>
// js
// 调用doLayout方法对表格dom重新渲染
this.$refs.multipleTable.doLayout();

Guess you like

Origin blog.csdn.net/IT_dabai/article/details/126949006