Selector
Install

Install


API

Props

nametypedefaultdescriptionrequired version
valuestring
number
object
form value, use v-model for binding--
titlestringlabel text--
directionstringalign value--
optionsarrayoption list, ['one', 'two'] or [{ key: KEY, value: VALUE }]--
namestringform name--
placeholderstringplaceholder--
readonlybooleanfalseif the select is readonly--
value-maparrayset a [value, label] pair for automatically transforming API datav2.7.2

Events

nameparamsdescriptionrequired version
@on-change(value)emits when value is changed--

Functions

nameparamsdescriptionrequired version
getFullValueget full value including all the props(if option items are object)v2.7.2


Contributors

Contributors

Total commits quantity: 35,Total contributors quantity: 6

unclayairylandemondora万刚lichunqianggreedying

Changelog

Releases

  • next [fix] fix the chinese bracket show error when direction=rtl #2864
  • v2.9.0 [fix] avoid newer-version-vue select value issue #2633 #2587
  • v2.9.0 [enhance] use v-html for title #2615
  • v2.7.2 [feature] add prop:value-map for automatically transform API data #2139
  • v2.7.2 [feature] add method:getFullValue for getting full value
  • v2.7.0 [fix] fix ssr rendering issue
  • v2.7.0 [fix] fix placeholder not show when value is null #2101
  • v2.3.3 [enhance] set placeholder color. #1465
  • v2.2.2 [fix] fix label:for missing
  • v2.2.1-rc.6 [fix] fix placeholder. #1273
  • v2.1.1-rc.14 [fix] fix can not set Selector name attrbiute bug #1133
  • v2.1.1-rc.14 [enhance] Selector value support Boolean. @rbao