<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-10-28 18:00:45 发布