Regarding the problem that the header and the table are not aligned after setting the height of el-table

Regarding the problem that the header and the table are not aligned after setting the height of el-table

Problem description (1)

After setting the height for el-table, there will be a message that the header and the table are misaligned.
Solution: Modify the style without setting height, and use max-height instead

Problem description (2)

Fixed a few columns for el-table, and there was a problem that the table and header were not aligned

Solution: el-table comes with a method called doLayout that can be called directly after the data is mounted, such as

this.KaTeX parse error: Expected '}', got 'EOF' at end of input: …ick(()=>{ this.ref.table.doLayout ()}) can solve the problem

Guess you like

Origin blog.csdn.net/weixin_44358678/article/details/126252615
Recommended