mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
feat(Form): support using RadioGroup
This commit is contained in:
@@ -14,7 +14,7 @@ export const FieldMixin = {
|
||||
},
|
||||
|
||||
created() {
|
||||
if (this.vanField) {
|
||||
if (this.vanField && !this.vanField.children) {
|
||||
this.vanField.children = this;
|
||||
}
|
||||
},
|
||||
|
@@ -1,10 +1,11 @@
|
||||
import { createNamespace } from '../utils';
|
||||
import { FieldMixin } from '../mixins/field';
|
||||
import { ParentMixin } from '../mixins/relation';
|
||||
|
||||
const [createComponent, bem] = createNamespace('radio-group');
|
||||
|
||||
export default createComponent({
|
||||
mixins: [ParentMixin('vanRadio')],
|
||||
mixins: [ParentMixin('vanRadio'), FieldMixin],
|
||||
|
||||
props: {
|
||||
value: null,
|
||||
|
Reference in New Issue
Block a user