mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Form): support using RadioGroup
This commit is contained in:
parent
15390241d8
commit
48e443d0e2
@ -14,7 +14,7 @@ export const FieldMixin = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
if (this.vanField) {
|
if (this.vanField && !this.vanField.children) {
|
||||||
this.vanField.children = this;
|
this.vanField.children = this;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
|
import { FieldMixin } from '../mixins/field';
|
||||||
import { ParentMixin } from '../mixins/relation';
|
import { ParentMixin } from '../mixins/relation';
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('radio-group');
|
const [createComponent, bem] = createNamespace('radio-group');
|
||||||
|
|
||||||
export default createComponent({
|
export default createComponent({
|
||||||
mixins: [ParentMixin('vanRadio')],
|
mixins: [ParentMixin('vanRadio'), FieldMixin],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: null,
|
value: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user