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

[table] filters能否自动过滤非column设置的筛选条件 #2426

Closed
duxphp opened this issue Aug 8, 2023 · 4 comments
Closed

[table] filters能否自动过滤非column设置的筛选条件 #2426

duxphp opened this issue Aug 8, 2023 · 4 comments
Labels
💭 discussion we are discussing

Comments

@duxphp
Copy link
Contributor

duxphp commented Aug 8, 2023

这个功能解决了什么问题

因为需要混用表单筛选,如果把表单的值也设置给筛选就会造成展示筛选结果是“”的问题

你建议的方案是什么

获取筛选filterValue的时候过滤非column设置的字段,并且在清空筛选条件时在 onFilterChange 的回调结果中返回清空了哪些字段,便于整合refine的时候可以给清空的字段设置空值

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

👋 @duxphp,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

♥️ 有劳 @yunfeic @tengcaifeng @Yacent @basecss 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @duxphp

@chaishi
Copy link
Collaborator

chaishi commented Sep 16, 2023

  • 文档中有描述 “表格属性 filterRow 可完全自定义过滤结果行显示内容,设置 filterRow=null 隐藏过滤行”
image image

@chaishi chaishi added the 💭 discussion we are discussing label Sep 16, 2023
@chaishi
Copy link
Collaborator

chaishi commented Jan 18, 2024

如果把表单的值也设置给筛选就会造成展示筛选结果是“”的问题

大胆把自定义参数传递给 filterValue 吧,至于筛选结果文本,你可以使用 filterRow 完全自定义筛选结果的内容

@chaishi chaishi closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing
Projects
None yet
Development

No branches or pull requests

2 participants