a radio group which support icon base element-ui
import Vue from 'vue'
import elRadioGroup2 from 'el-webfont-select'
Vue.use(elRadioGroup2)
<template>
<ElRadioGroup2
:options='[
{"label":"normal","value":"normal","icon":"fa fa-font"},
{"label":"italic","icon":"fa fa-italic","value":"italic"}
]'
size="mini"
value="italic"
/>
</template>
Props | Type | Default |
---|---|---|
value | any | |
multiple | boolean | false |
options | Array<{label: string; value: any; icon: string}> | |
size | string (medium,small, mini) | "mini" |