<el-table-column label="***" align="center" prop="inStockAmount">
<template #header>***(合计:{{ distributedAmount }})</template>
</el-table-column>
<el-table-column label="***" align="center" prop="inStockAmount">
<template slot='header'>***(合计:{{ distributedAmount }})</template>
</el-table-column>
以上两种方法都是可以的 #header可以动态显示表头,就比如distributedAmount 变了就会重新渲染,但是slot='header'不行