Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] 筛选模板,使用插槽 filter 来自定义模板/使用 JSX filter 来自定义模板,拿不到模板相关数据了 #2795

Open
2 tasks done
objlong opened this issue Feb 24, 2025 · 1 comment
Labels
bug Something isn't working fix has been fix

Comments

@objlong
Copy link

objlong commented Feb 24, 2025

可复现的链接(必须为公开链接,仅包含能复现问题的示例代码):

暂无

是否已准备好复现链接与示例代码?

  • 我确定已准备好以上复现链接

问题描述与截图:

<template #openBankNameFilter="dd">
    <div style="width: 200px;height: 200px;" @click="ssss(dd)">点我</div>   
 </template>

// 二者皆有问题

{ 
    field: "name", 
    title: "Name", 
    sortable: true, 
    minWidth: 250,
    filters: [{ data: "" }],
    filterMethod({ option, cellValue }) {
        return option.data === cellValue;
    },
    slots: {
        filter: (v) => {
            console.log(v)
            return <div></div>
        }
    }
},
Image

期望的结果:

No response

操作系统:

macos

浏览器版本:

chrome

vue 版本:

2.6.10

vxe-pc-ui 版本:

vxe-table 版本:

3.13.8

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题
@objlong objlong added the bug Something isn't working label Feb 24, 2025
@objlong
Copy link
Author

objlong commented Feb 24, 2025

甚至目前官网都是一个挂掉的状态。

@xuliangzhan xuliangzhan added the fix has been fix label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix has been fix
Projects
None yet
Development

No branches or pull requests

2 participants