想要让表头回车
el-table-column需要去掉label和prop属性, 然后使用插槽 slot。
prop也可不去掉。
如果需要传参,header还是需要加上slot-scope="scope"。
<el-table-column align="center" prop="contact">
<template slot="header" slot-scope="scope">
联系人<br>联系电话
</template>
<template slot-scope="scope">
<span>{{scope.row...}}</span>
</template>
</el-table-column>
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。