2019-05-07 10:20:14 +08:00

24 lines
389 B
JavaScript

import { use } from '../utils';
import { ParentMixin } from '../mixins/relation';
const [sfc, bem] = use('radio-group');
export default sfc({
mixins: [ParentMixin('vanRadio')],
props: {
value: null,
disabled: Boolean
},
watch: {
value(value) {
this.$emit('change', value);
}
},
render(h) {
return <div class={bem()}>{this.slots()}</div>;
}
});