<el-table-column
v-for="(item, index) in tableHeader"
:label="item.label"
:prop="item.prop"
:key="index"
align="center"
>
// 表头
<template #header>
<el-select v-model="year">
<el-option label="全部" value="all"></el-option>
</el-select>
</template>
// 表格内容
<template slot-scope="scope">
<span :title="scope.row[item.prop]">{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
el-table 添加自定义筛选
最新推荐文章于 2023-10-26 14:23:35 发布