element table show-summary 合计行不显示问题
element table show-summary 合计行不显示问题
el-table 中加上 ref 属性
<el-table ref="table-01" show-summary border> </el-table>
在updated生命周期函数,调用 table 的 doLayout()
updated () { this.$nextTick(() => { this.$refs['table-01'].doLayout(); }) },