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 filterDropdown 问题。。。 #2228

Closed
flicker85 opened this issue Jun 30, 2016 · 8 comments
Closed

Table filterDropdown 问题。。。 #2228

flicker85 opened this issue Jun 30, 2016 · 8 comments

Comments

@flicker85
Copy link

flicker85 commented Jun 30, 2016

filterDropdown:可以自定义筛选菜单,此函数只负责渲染图层,需要自行编写各种交互

这个有没有具体的demo代码?找了一圈儿没找到。。。。

比如我要在筛选菜单里添加全选、清空之类的按钮,该怎么扩展?

还有一个问题,当我点击筛选图标,弹出筛选菜单,这是我不点任何筛选条件和按钮, 直接点页面空白处,筛选菜单会关闭,但是仍然会触发Table onChange函数。
http://ant.design/components/table#components-table-demo-ajax

@Justin-lu
Copy link

Justin-lu commented Jul 1, 2016

这是我的demo代码

{
  title: "xxxx",
  dataIndex: "something",
  key: "something",
  filterDropdown: <DateTimeFilterDropdown
                    handleTableChange={this.props.handleTableChange}
                    keys={'something'}
                  />
}

添加了日期查询,目前可以用

image

@afc163
Copy link
Member

afc163 commented Jul 4, 2016

还有一个问题,当我点击筛选图标,弹出筛选菜单,这是我不点任何筛选条件和按钮, 直接点页面空白处,筛选菜单会关闭,但是仍然会触发Table onChange函数。

现在没改变时不再触发 onChange 。2780b10

@afc163 afc163 closed this as completed Jul 4, 2016
@badplum
Copy link

badplum commented Aug 2, 2016

@Justin-lu 你好,请教下,这里我应该怎么写filter?能不能贴一下具体实现?谢谢

@badplum
Copy link

badplum commented Aug 2, 2016

@Justin-lu 谢谢,我看一下。

@elearic
Copy link

elearic commented Sep 11, 2016

@afc163 前辈您好,我也遇到类似问题,我使用filterDropDown自定义组件,如果在menu的item中添加了button按钮,想通过button去控制自定义filter列表的显示该如何操作呢,谢谢

@DJ0312
Copy link

DJ0312 commented Apr 28, 2017

这个自定义的组件的显示位置怎么调节,默认是把自定义的弹出框的left 对齐,能不能调到中间

@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants