[improvement] RadioGroup: jsx (#2618)

This commit is contained in:
neverland
2019-01-25 21:17:21 +08:00
committed by GitHub
parent f8892d583d
commit 11dd76d6b2
2 changed files with 20 additions and 24 deletions

View File

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