mirror of https://github.com/ElemeFE/element
32 lines
548 B
Vue
32 lines
548 B
Vue
<template>
|
|
<div class="el-radio-group">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import Emitter from 'element-ui/src/mixins/emitter';
|
|
|
|
export default {
|
|
name: 'ElRadioGroup',
|
|
|
|
componentName: 'ElRadioGroup',
|
|
|
|
mixins: [Emitter],
|
|
|
|
props: {
|
|
value: {},
|
|
size: String,
|
|
fill: String,
|
|
textColor: String,
|
|
disabled: Boolean
|
|
},
|
|
watch: {
|
|
value(value) {
|
|
this.$emit('change', value);
|
|
this.dispatch('ElFormItem', 'el.form.change', [this.value]);
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|