element/packages/radio/src/radio-group.vue

32 lines
548 B
Vue
Raw Normal View History

<template>
<div class="el-radio-group">
<slot></slot>
</div>
</template>
2016-07-27 06:15:02 +00:00
<script>
2016-10-27 09:31:22 +00:00
import Emitter from 'element-ui/src/mixins/emitter';
2016-07-27 06:15:02 +00:00
export default {
name: 'ElRadioGroup',
componentName: 'ElRadioGroup',
2016-08-15 02:36:21 +00:00
2016-10-27 09:31:22 +00:00
mixins: [Emitter],
2016-07-27 06:15:02 +00:00
props: {
value: {},
2016-11-26 09:54:27 +00:00
size: String,
fill: String,
textColor: String,
disabled: Boolean
2016-07-27 06:15:02 +00:00
},
watch: {
value(value) {
2016-08-15 02:36:21 +00:00
this.$emit('change', value);
2016-11-26 07:18:38 +00:00
this.dispatch('ElFormItem', 'el.form.change', [this.value]);
2016-07-27 06:15:02 +00:00
}
}
};
</script>