Radio
Install

Install

  <group>
    <radio title="title" :options="options" v-model="value"></radio>
  </group>

options can be plain array, or object list with key=> value:

const options = [ 'China', 'Japan' ]

const options2 = [{
  icon: 'http://dn-placeholder.qbox.me/110x110/FF2D55/000',
  key: '001',
  value: 'radio001'
}, {
  icon: 'http://dn-placeholder.qbox.me/110x110/FF2D55/000',
  key: '002',
  value: 'radio002'
}]

radio should be used in Group.


API

Props

nametypedefaultdescriptionrequired version
valuestringradio value, use v-model for binding--
optionsarrayoption list, can be plain array or array with key=>value--
fill-modebooleanfalseif add an option user can fill--
fill-placeholderstringplaceholder for fill input--
fill-labelstringlabel for fill input--
disabledbooleandisable selectingv2.3.8
selected-label-styleobjectset selected label stylev2.4.0

Slots

namedescriptionrequired version
each-itemcustom how to display each itemv2.3.5
Variables

Variables

namedefaultdescriptioninherited name
@radio-checked-icon-color #09BB07 checked icon color


Contributors

Contributors

Total commits quantity: 22,Total contributors quantity: 1

airyland

Changelog

Releases

  • v2.4.0 [feature] Add prop:selected-label-style
  • v2.3.8 [feature] Add prop:disabled #1254
  • v2.3.8 [feature] Add less:@radio-checked-icon-color #896
  • v2.3.5 [feature] Support slot:each-item
  • v2.1.1-rc.13 [fix] Fix not support Number and not reactive #1115
  • v2.1.1-rc.1 [feature] Support icon