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

Transfer 组件 简易模式 无法区分左右栏的内容 #2693

Open
Russell-Bytedance opened this issue May 27, 2024 · 0 comments
Open

Transfer 组件 简易模式 无法区分左右栏的内容 #2693

Russell-Bytedance opened this issue May 27, 2024 · 0 comments

Comments

@Russell-Bytedance
Copy link

Transfer 在非简易模式下,每一个 TransferItem 的 render 都只会调用一遍,这时使用 key 区分没有问题。但是在简易模式下,被选择的 TransferItem 的 render 会调用两遍,但是我想要在右边栏出现的时候有一些不同于左边栏的内容,但现在的 Transfer 中的 render 函数无法区分左右栏。

Solution:
在 render 函数的参数中添加一项 listType : "source"| "target"

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

1 participant