如何用 vxe-table 实现列头筛选,在每一列下方增加一个筛选单元格,可以对数据直接进行渲染,记得需要最新版本才支持
查看官网:https://vxetable.cn
gitbub:https://github.com/x-extends/vxe-table
gitee:https://gitee.com/x-extends/vxe-table
效果

代码
通过 floating-filter-config.enabled 来启用浮动筛选,再对指定列设置 floating-filters 来开启筛选渲染
<template>
<div>
<vxe-grid v-bind="gridOptions"></vxe-grid>
</div>
</template>
<script setup>
import {
reactive } from 'vue'
const sexFilterRender = reactive({
name: 'VxeSelect',
props: {
clearable: true
},
options: [
{
label: 'Man', value: 'Man'


1335

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



