filesbox/miniprogram/FilesBox/node_modules/@vant/weapp/dist/radio-group/index.js

23 lines
545 B
JavaScript
Raw Normal View History

2023-09-21 02:23:31 +00:00
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
field: true,
relation: useChildren('radio'),
props: {
value: {
type: null,
observer: 'updateChildren',
},
direction: String,
disabled: {
type: Boolean,
observer: 'updateChildren',
},
},
methods: {
updateChildren() {
this.children.forEach((child) => child.updateFromParent());
},
},
});