<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的el-table组件表头文字折行显示
最新推荐文章于 2023-12-01 11:47:46 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)