mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[improvement] RadioGroup: jsx (#2618)
This commit is contained in:
20
packages/radio-group/index.js
Normal file
20
packages/radio-group/index.js
Normal 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>;
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user