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

dropdown 组件希望添加分组单选的功能 #48371

Open
GeorgeHcc opened this issue Apr 10, 2024 · 2 comments
Open

dropdown 组件希望添加分组单选的功能 #48371

GeorgeHcc opened this issue Apr 10, 2024 · 2 comments

Comments

@GeorgeHcc
Copy link
Contributor

What problem does this feature solve?

对于分组内数据互斥的情况,限制每个分组内的options为单选,整体上多选

image

What does the proposed API look like?

  <Dropdown menu={{ items, selectable:true,multiple:true,exclusiveGroupSelect:true }}>
      ...
  </Dropdown>
<Select mode="multiple" exclusiveGroupSelect/>
@afc163 afc163 changed the title dropdown or select 组件希望添加分组单选的功能 dropdown 组件希望添加分组单选的功能 Apr 10, 2024
@MadCcc
Copy link
Member

MadCcc commented Apr 10, 2024

这个自行封装一下吧,暂时不考虑实现这种复杂的交互

@MadCcc MadCcc closed this as completed Apr 10, 2024
@afc163
Copy link
Member

afc163 commented Apr 10, 2024

留着吧,欢迎社区同学先搞一个 RFC 出来。

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