OptionGroup 选择组
Option is required to be used within Select, Dropdown or other OptionGroup, and can be used with Option.
Demos
See the demos of Select or the demos of Dropdown.
API
Props
| Name | Type | Default | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
label | string | The descriptive label of the option group. | |||||||||||||
options | Array<Object> | [] | The list of options with the option type being
| ||||||||||||
position | string | inline | The way to display child options.
| ||||||||||||
overlay-class | string|Array|Object | - | See the overlay-class prop of Overlay. |
Slots
| Name | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
default | The content of the options dropdown. Can be used to place Options or OptionGroupss when the options prop is not specified. | |||||||||||||||
label | The label of the option group. Displays the
| |||||||||||||||
group-label | The label text of each option group (option with child
Additionally, custom properties in current option, apart from the listed ones, will also be passes into the scope object via | |||||||||||||||
option-label | The label text of each option (option without child
Additionally, custom properties in current option, apart from the listed ones, will also be passes into the scope object via | |||||||||||||||
option | The entire content area of each option (option without child
Additionally, custom properties in current option, apart from the listed ones, will also be passes into the scope object via |
Icons
| Name | Description |
|---|---|
expandable | Expandable options. |