Skip to content

Select

VSelect is the low-level Base Kit select component for forms, filters, and secondary business wrappers. It uses picker mode by default for H5, mini-program, and App mobile interactions. The controlled contract uses v-model:value, value, update:value, and valueChange.

Demo

Default fulfillment centerAffects inventory and shipping fees
Current center
Hangzhou center

Multiple Selection And Confirm

Multiple selection confirms draft changes by default. Set :confirmable="false" to apply selections immediately.

Search And Dropdown

Use filterable to type and filter local options directly in the Select field; the open panel does not render a second search input. Use mode="dropdown" for dropdown presentation.

Wrapper Boundary

Grouped options, remote search, and async paging belong in secondary wrappers. Business components should wrap VSelect to create UserSelect, DepartmentSelect, CitySelect, and ProductSelect.

Props

PropTypeDefaultDescription
valuestring | number | Array<string | number>undefinedSelected value
optionsVSelectOption[][]Options
mode'picker' | 'dropdown''picker'Presentation mode
placeholderstring'请选择'Placeholder text
disabledbooleanfalseDisabled state
readonlybooleanfalseReadonly state
clearablebooleanfalseShows a clear action
multiplebooleanfalseEnables multiple selection
maxnumberundefinedMaximum selected count
filterablebooleanfalseFilters local options directly from the Select field
confirmablebooleantrueConfirms draft changes in multiple mode
filterOption(query, option) => booleanundefinedCustom local filter
loadingbooleanfalseLoading display
emptyTextstring'暂无数据'Empty state text

Events

EventPayloadDescription
update:valuestring | number | Array<string | number> | undefinedSelected value updated
valueChangestring | number | Array<string | number> | undefinedSelected value changed
clearvoidCleared
openvoidOpened
closevoidClosed
confirmArray<string | number>Multiple selection confirmed
cancelvoidCancelled
searchstringSearch input changed
limit{ max: number }Maximum selected count exceeded