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.
		
		
		
		
		
			
		
			
				
					
					
						
							26 lines
						
					
					
						
							531 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							531 B
						
					
					
				
								import { VantComponent } from '../common/component';
							 | 
						|
								VantComponent({
							 | 
						|
								  relation: {
							 | 
						|
								    name: 'row',
							 | 
						|
								    type: 'ancestor',
							 | 
						|
								    current: 'col',
							 | 
						|
								  },
							 | 
						|
								  props: {
							 | 
						|
								    span: Number,
							 | 
						|
								    offset: Number,
							 | 
						|
								  },
							 | 
						|
								  data: {
							 | 
						|
								    viewStyle: '',
							 | 
						|
								  },
							 | 
						|
								  methods: {
							 | 
						|
								    setGutter(gutter) {
							 | 
						|
								      const padding = `${gutter / 2}px`;
							 | 
						|
								      const viewStyle = gutter
							 | 
						|
								        ? `padding-left: ${padding}; padding-right: ${padding};`
							 | 
						|
								        : '';
							 | 
						|
								      if (viewStyle !== this.data.viewStyle) {
							 | 
						|
								        this.setData({ viewStyle });
							 | 
						|
								      }
							 | 
						|
								    },
							 | 
						|
								  },
							 | 
						|
								});
							 |