mirror of https://github.com/ElemeFE/element
				
				
				
			Popover: not emit event or create popper when disabled (#11426)
							parent
							
								
									dc816832e1
								
							
						
					
					
						commit
						1b7a032e97
					
				|  | @ -68,6 +68,9 @@ export default { | |||
|   }, | ||||
|   watch: { | ||||
|     showPopper(val) { | ||||
|       if (this.disabled) { | ||||
|         return; | ||||
|       } | ||||
|       val ? this.$emit('show') : this.$emit('hide'); | ||||
|     } | ||||
|   }, | ||||
|  |  | |||
|  | @ -70,6 +70,9 @@ export default { | |||
|     }, | ||||
| 
 | ||||
|     showPopper(val) { | ||||
|       if (this.disabled) { | ||||
|         return; | ||||
|       } | ||||
|       val ? this.updatePopper() : this.destroyPopper(); | ||||
|       this.$emit('input', val); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 hetech
						hetech