mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	fix(ImagePreview): missing initial animation (#8274)
This commit is contained in:
		
							parent
							
								
									cf13e6e6a0
								
							
						
					
					
						commit
						25c1c9d646
					
				| @ -215,18 +215,16 @@ export default createComponent({ | |||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|   render() { |   render() { | ||||||
|     if (!this.shouldRender) { |  | ||||||
|       return; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     return ( |     return ( | ||||||
|       <transition name={this.transition} onAfterLeave={this.onClosed}> |       <transition name={this.transition} onAfterLeave={this.onClosed}> | ||||||
|         <div vShow={this.value} class={[bem(), this.className]}> |         {this.shouldRender ? ( | ||||||
|           {this.genClose()} |           <div vShow={this.value} class={[bem(), this.className]}> | ||||||
|           {this.genImages()} |             {this.genClose()} | ||||||
|           {this.genIndex()} |             {this.genImages()} | ||||||
|           {this.genCover()} |             {this.genIndex()} | ||||||
|         </div> |             {this.genCover()} | ||||||
|  |           </div> | ||||||
|  |         ) : null} | ||||||
|       </transition> |       </transition> | ||||||
|     ); |     ); | ||||||
|   }, |   }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user