- 自带表格
- 自定义表格某列的表头样式或者功能
<el-table>
<el-table-column :prop="date">
//自定义表身每行数据
<template slot-scope="scope">
{{scope.row[scope.column.label] === '-' ? '-' : scope.row[scope.column.label]}}
</template>
//自定义表头
<template slot='header' slot-scope="scope">
<el-button type="primary" @click="filterTest(scope.column)">筛选</el-button>
</template>
</el-table-column>
</el-table>