<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组件表头文字折行显示
猜你喜欢
转载自blog.csdn.net/m0_52775179/article/details/131073476
今日推荐
周排行