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

[Select]Select单/多选模式是否可以支持自动创建item #4158

Closed
xmsz opened this issue Oct 22, 2022 · 2 comments
Closed

[Select]Select单/多选模式是否可以支持自动创建item #4158

xmsz opened this issue Oct 22, 2022 · 2 comments
Assignees
Labels

Comments

@xmsz
Copy link

xmsz commented Oct 22, 2022

Component

Select

Feature Description

背景

  • 我们有个下拉框可以选择角色名称

image

- 角色名称允许用户自己创建 - 我们希望可以在用户输入的时候,如果没有,则自动进行创建,这样操作更加的快速。就是和mode=tag时一样的效果

其他产品

antDesign,没有这个功能,但是有类似的Demo
image
蛮奇葩的,不想要

arcoDesign,有这个allowCreate这个属性,符合需求
image

@lakerswgq
Copy link
Contributor

这个目前没有原生的支持,取决于你们的交互,通过定制弹层可以达到 ant-design 类似的效果。如果你们想要类似 arco 那样的,select 是支持渲染 dataSource 里面不存在的 value 的,但是这个需要你们自己去做 setValue

@YSMJ1994
Copy link
Contributor

Stale

@YSMJ1994 YSMJ1994 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants