赞
踩
<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>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。