解决方式:slot="header" 改为 #header 即可(#为v-slot缩写)
<el-table-column label="操作" width="150">
<template v-slot:header>// 或者 #header
<strong>(映射总数:{{ tableData.length }})</strong>
</template>
<el-table-column/>
本文介绍了如何将 'slot=header' 更改为 '#header' 缩写,以简化 Vue 表格列头模板的使用,帮助开发者快速定位和映射数据。
解决方式:slot="header" 改为 #header 即可(#为v-slot缩写)
<el-table-column label="操作" width="150">
<template v-slot:header>// 或者 #header
<strong>(映射总数:{{ tableData.length }})</strong>
</template>
<el-table-column/>
518

被折叠的 条评论
为什么被折叠?