carousel autoplay新增'always'支持
This commit is contained in:
		
							parent
							
								
									094cfc03b1
								
							
						
					
					
						commit
						37b4c404ea
					
				@ -292,8 +292,10 @@ layui.define('jquery', function(exports){
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    //移入移出容器
 | 
					    //移入移出容器
 | 
				
			||||||
    options.elem.on('mouseenter', function(){
 | 
					    options.elem.on('mouseenter', function(){
 | 
				
			||||||
 | 
					      if (that.config.autoplay === 'always') return;
 | 
				
			||||||
      clearInterval(that.timer);
 | 
					      clearInterval(that.timer);
 | 
				
			||||||
    }).on('mouseleave', function(){
 | 
					    }).on('mouseleave', function(){
 | 
				
			||||||
 | 
					      if (that.config.autoplay === 'always') return;
 | 
				
			||||||
      that.autoplay();
 | 
					      that.autoplay();
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user