elementUI中如何给表格的表头加按钮
vue项目中,在elementUI表格中给表头加上按钮
·
实现如图所示的样式
<el-table-column
:render-header="contractRegister"
width="130">
</el-table-column>
<el-table-column
:render-header="deleteChecked"
width="130">
</el-table-column>
methods: {
contractRegister() {
return (
<div>
<el-button type="primary">合同登记</el-button>
</div>
)
},
deleteChecked() {
return (
<div>
<el-button type="primary">删除选中</el-button>
</div>
)
}
更多推荐
已为社区贡献2条内容
所有评论(0)