mirror of https://github.com/ElemeFE/element
				
				
				
			disable tab remove when tab disabled (#4042)
* when tab is disabled, disable remove handle. * disable remove when tab disabledpull/4080/head
							parent
							
								
									9c21be25e7
								
							
						
					
					
						commit
						6ca99c4f8f
					
				| 
						 | 
				
			
			@ -47,6 +47,7 @@
 | 
			
		|||
        this.$emit('tab-click', tab, event);
 | 
			
		||||
      },
 | 
			
		||||
      handleTabRemove(pane, ev) {
 | 
			
		||||
        if (pane.disabled) return;
 | 
			
		||||
        ev.stopPropagation();
 | 
			
		||||
        this.$emit('edit', pane.name, 'remove');
 | 
			
		||||
        this.$emit('tab-remove', pane.name);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue