You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							545 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							545 B
						
					
					
				
								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());
							 | 
						|
								        },
							 | 
						|
								    },
							 | 
						|
								});
							 | 
						|
								
							 |