Element UI 自定义表头多选框
<el-table-column width="55" align="center">
<template slot="header" slot-scope="scope">
<el-checkbox v-model="checkedAll"
class="el-checkbox__input is-indeterminate">
</el-checkbox>
</template>
<template slot-scope="scope">
<el-checkbox v-model="scope.row.checkbox"
@change="rowSelectionChange(scope.row)">
</el-checkbox>
</template>
</el-table-column>
本文介绍如何在ElementUI中自定义表格表头的多选框,通过使用v-model和@change事件实现多选功能。示例代码展示了如何在<el-table-column>中插入自定义的<el-checkbox>组件。
1万+

被折叠的 条评论
为什么被折叠?



