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选择器对下拉进行自由扩展 #800

Open
huqiaoli opened this issue Apr 29, 2022 · 1 comment
Open

添加Select选择器对下拉进行自由扩展 #800

huqiaoli opened this issue Apr 29, 2022 · 1 comment

Comments

@huqiaoli
Copy link

huqiaoli commented Apr 29, 2022

image

类似gitlab 选择标签的时候可以直接创建
@jaywcjlove
Copy link
Member

Select 选择器 是原生 HTML标签加了点样式。

目前没有这么高级的组件

<select name="cars" id="cars">
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>

image

如果需要实现,使用 optgroup ,监听 onChange 事件自己操作。

@huqiaoli

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

2 participants