mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	fix(List): scoped style not applied to first child (#7128)
This commit is contained in:
		
							parent
							
								
									bc59e6ea5d
								
							
						
					
					
						commit
						432c32a3c6
					
				| @ -121,7 +121,7 @@ export default createComponent({ | |||||||
|     genLoading() { |     genLoading() { | ||||||
|       if (this.innerLoading && !this.finished) { |       if (this.innerLoading && !this.finished) { | ||||||
|         return ( |         return ( | ||||||
|           <div class={bem('loading')} key="loading"> |           <div class={bem('loading')}> | ||||||
|             {this.slots('loading') || ( |             {this.slots('loading') || ( | ||||||
|               <Loading size="16">{this.loadingText || t('loading')}</Loading> |               <Loading size="16">{this.loadingText || t('loading')}</Loading> | ||||||
|             )} |             )} | ||||||
| @ -156,7 +156,9 @@ export default createComponent({ | |||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|   render() { |   render() { | ||||||
|     const Placeholder = <div ref="placeholder" class={bem('placeholder')} />; |     const Placeholder = ( | ||||||
|  |       <div ref="placeholder" key="placeholder" class={bem('placeholder')} /> | ||||||
|  |     ); | ||||||
| 
 | 
 | ||||||
|     return ( |     return ( | ||||||
|       <div class={bem()} role="feed" aria-busy={this.innerLoading}> |       <div class={bem()} role="feed" aria-busy={this.innerLoading}> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user