1、此处只给表头添加下边框,使用header-cell-style属性:
<el-table ref="PendingTable" :data="projectsInfo" style="border-radius:5px;" :header-cell-style="{'border-bottom':'solid 1px #d2d3da'}">
</el-table>
需要注意header-cell-style前面有冒号;双引号之后是大括号,再是单引号。
2、效果图:
更加详细用法参考:
https://blog.csdn.net/SunnyLjs/article/details/80955447