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.
		
		
		
		
		
			
		
			
				
					
					
						
							32 lines
						
					
					
						
							586 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							586 B
						
					
					
				
								import { VantComponent } from '../common/component';
							 | 
						|
								VantComponent({
							 | 
						|
								  relation: {
							 | 
						|
								    type: 'descendant',
							 | 
						|
								    name: 'goods-action-button',
							 | 
						|
								    current: 'goods-action',
							 | 
						|
								    linked() {
							 | 
						|
								      this.updateStyle();
							 | 
						|
								    },
							 | 
						|
								    unlinked() {
							 | 
						|
								      this.updateStyle();
							 | 
						|
								    },
							 | 
						|
								    linkChanged() {
							 | 
						|
								      this.updateStyle();
							 | 
						|
								    },
							 | 
						|
								  },
							 | 
						|
								  props: {
							 | 
						|
								    safeAreaInsetBottom: {
							 | 
						|
								      type: Boolean,
							 | 
						|
								      value: true,
							 | 
						|
								    },
							 | 
						|
								  },
							 | 
						|
								  methods: {
							 | 
						|
								    updateStyle() {
							 | 
						|
								      wx.nextTick(() => {
							 | 
						|
								        this.children.forEach((child) => {
							 | 
						|
								          child.updateStyle();
							 | 
						|
								        });
							 | 
						|
								      });
							 | 
						|
								    },
							 | 
						|
								  },
							 | 
						|
								});
							 |