mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
28 lines
437 B
JavaScript
28 lines
437 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()} role="radiogroup">
|
|
{this.slots()}
|
|
</div>
|
|
);
|
|
}
|
|
});
|