mirror of https://github.com/ElemeFE/element
				
				
				
			fix DatePicker and Select bug
							parent
							
								
									f9b19d9aa1
								
							
						
					
					
						commit
						cb2e43f696
					
				|  | @ -32,9 +32,7 @@ | |||
|   const WEEKS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']; | ||||
|   const clearHours = function(time) { | ||||
|     const cloneDate = new Date(time); | ||||
|     const timeZoneOffset = cloneDate.getTimezoneOffset(); | ||||
|     const timeZone = timeZoneOffset >= 0 ? 24 - timeZoneOffset / 60 : Math.abs(timeZoneOffset) / 60; | ||||
|     cloneDate.setHours(timeZone, 0, 0, 0); | ||||
|     cloneDate.setHours(0, 0, 0, 0); | ||||
|     return cloneDate.getTime(); | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -121,7 +121,7 @@ const createStyles = function() { | |||
|     // opacity: 0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360
 | ||||
|     const css = `${animationKeyframes} | ||||
|       .resize-triggers { ${animationStyle} visibility: hidden; opacity: 0; } | ||||
|       .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } | ||||
|       .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1 } | ||||
|       .resize-triggers > div { background: #eee; overflow: auto; } | ||||
|       .contract-trigger:before { width: 200%; height: 200%; }`;
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Leopoldthecoder
						Leopoldthecoder