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

useTable useSearchForm: true 模式下 想获取搜索表单的value用来根据搜索条件进行column的动态展示 #55

Closed
enjkvbej opened this issue Oct 26, 2020 · 6 comments

Comments

@enjkvbej
Copy link

No description provided.

@enjkvbej
Copy link
Author

enjkvbej commented Oct 26, 2020

columns = [{
    title: 'xxx',
    dataIndex: 'xxx',
    isShow: { key: 'xxx', value: your expected value } // key is form options key
}]

I think to add property 'isShow' to control column to show or hide.

@anncwb
Copy link
Collaborator

anncwb commented Oct 26, 2020

可以formConfig内监听onSubmit事件获取values。然后通过表格提供的setColumns动态设置列

@anncwb anncwb closed this as completed Oct 26, 2020
@enjkvbej
Copy link
Author

enjkvbej commented Oct 26, 2020

已解决,谢谢!

@Buggersldx
Copy link

@enjkvbej 方便说一下吗,我需要获取 table中的form表单的数值,使用在我一个function里面,但是我找不到方法

@mynetfan
Copy link
Collaborator

mynetfan commented Feb 1, 2021

@enjkvbej 方便说一下吗,我需要获取 table中的form表单的数值,使用在我一个function里面,但是我找不到方法

table有getForm方法。参见https://vvbin.cn/doc-next/comp/table.html#methods

@Buggersldx
Copy link

@mynetfan 我找到了这个 但是调用实现没头绪 一直有警告 也出不来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants