Select

Introduction to using the Select dropdown component

Radio 介紹示意圖
Select illustrative diagram

Select dropdown used to allow users to further filter selected data, or like radio buttons, to choose a specific value. Clicking the button opens a floating area containing a series of options. It looks similar to a Dropdown, but the main difference is that when an option in Select is clicked, the value becomes the option content and the floating area closes.

Theme color

Size

Placeholder text

Disabled

Hide clear button

Prefix and suffix

If the outer layer has position: fixed

To prevent the outer position state from affecting the popup position of the dropdown, add the fixed correction.

Inside bpa-form-item

When used inside the form item bpa-form-item, they need to be used together.

Customize the width of the dropdown popup

Multi-select mode

Option group

circle-info

By default autocomplete filtering of options starts after 0.8 seconds. To search manually: use "@search"

Attributes

Name
Value
Type
Default
Required
Note

id

String

random

size

small, large

String

v-model

String

options

Array<{ label: string, value: any }> | Array<{ label: string, type: 'group', options: Option[] >

disabled

Boolean

false

disabledClear

Boolean

false

Hide clear button

placeholder

String

Please select / select

theme

primary,

success,

warning,

danger,

primary-ghost,

success-ghost,

warning-ghost,

danger-ghost

String

optionWidth

String

fixed

Boolean

false

v-slot:prefix

Custom area before the placeholder text

v-slot:affix

Custom area before the placeholder text

toolbar

Array<'search'>

Toolbar, currently supports search functionality

multiple

'accordion' or undefined

Multi-select, no value needed; to collapse options provide the value accordion

listboxClass

String

You can add a classname to the listbox

Events

Name
Parameters
Description

search

keyword

When the search input value changes

input

Demo

Last updated

Was this helpful?