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() { | ||||
|     if (!this.shouldRender) { | ||||
|       return; | ||||
|     } | ||||
| 
 | ||||
|     return ( | ||||
|       <transition name={this.transition} onAfterLeave={this.onClosed}> | ||||
|         {this.shouldRender ? ( | ||||
|           <div vShow={this.value} class={[bem(), this.className]}> | ||||
|             {this.genClose()} | ||||
|             {this.genImages()} | ||||
|             {this.genIndex()} | ||||
|             {this.genCover()} | ||||
|           </div> | ||||
|         ) : null} | ||||
|       </transition> | ||||
|     ); | ||||
|   }, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user