<el-table :data="[]">
<el-table-column>
<template slot="header">
<h1> 表格头部: template slot="header" </h1>
<el-input v-model="name"></el-input>
</template>
</el-table-column>
</el-table>
如果slot="header"不生效 需要把slot=“header”改为 #header写法
Element's el-table component header text is displayed in lines
Guess you like
Origin blog.csdn.net/m0_52775179/article/details/131073476
Ranking