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

[Feature*] A feature for Transfer within Table #111

Open
milobluebell opened this issue Nov 26, 2020 · 1 comment
Open

[Feature*] A feature for Transfer within Table #111

milobluebell opened this issue Nov 26, 2020 · 1 comment

Comments

@milobluebell
Copy link
Member

milobluebell commented Nov 26, 2020

你想要添加的功能,解决哪些实际问题?必须提供简要描述

transfer组件右侧数据是根据左侧数据filter来的。 当左侧数据被替换(比如动态分页)后,右侧数据也就不再存在,再恢复左侧备选数据的时候,才会再次出现。 为了实现这一功能,需要将分页数据全部返回,然后前端进行分页。这样对数据库压力过大。

官方存在很多相关的Issue,但目测Antd不打算解决。比如:

所以我们可能需要自己手写一个Transfer,来满足此需求。

你希望上述功能应如何实现?(不填视为无建议)

左侧一个Component,右侧一个Component,左右两侧数据完全分开管理(去掉右侧对左侧的依赖关系)。

假如无法实现,你是否有替代方案作为建议?(不填视为无建议)

如果无法实现,只能前端请求全部数据,然后做"假分页"了

是否有其它补充内容?

暂无

@milobluebell milobluebell added the enhancement 期望得到改进或增强功能 label Nov 26, 2020
@milobluebell milobluebell removed the enhancement 期望得到改进或增强功能 label Jan 28, 2021
@milobluebell milobluebell added roadmap 产品/需求路线图 and removed roadmap 产品/需求路线图 labels Mar 26, 2021
@milobluebell
Copy link
Member Author

做应该是不难,稍微考虑一下时间/空间复杂度就好了。难点在于初始化时的默认值如何获取和展示?

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

No branches or pull requests

3 participants