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.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							666 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							666 B
						
					
					
				
								import { VantComponent } from '../common/component';
							 | 
						|
								import { GREEN, GRAY_DARK } from '../common/color';
							 | 
						|
								VantComponent({
							 | 
						|
								  classes: ['desc-class'],
							 | 
						|
								  props: {
							 | 
						|
								    icon: String,
							 | 
						|
								    steps: Array,
							 | 
						|
								    active: Number,
							 | 
						|
								    direction: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: 'horizontal',
							 | 
						|
								    },
							 | 
						|
								    activeColor: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: GREEN,
							 | 
						|
								    },
							 | 
						|
								    inactiveColor: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: GRAY_DARK,
							 | 
						|
								    },
							 | 
						|
								    activeIcon: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: 'checked',
							 | 
						|
								    },
							 | 
						|
								    inactiveIcon: String,
							 | 
						|
								  },
							 | 
						|
								  methods: {
							 | 
						|
								    onClick(event) {
							 | 
						|
								      const { index } = event.currentTarget.dataset;
							 | 
						|
								      this.$emit('click-step', index);
							 | 
						|
								    },
							 | 
						|
								  },
							 | 
						|
								});
							 |