mirror of https://github.com/layui/layui
add `always` value for autoplay (#1049)
commit
8e66f49320
|
@ -292,8 +292,10 @@ layui.define('jquery', function(exports){
|
|||
|
||||
//移入移出容器
|
||||
options.elem.on('mouseenter', function(){
|
||||
if (that.config.autoplay === 'always') return;
|
||||
clearInterval(that.timer);
|
||||
}).on('mouseleave', function(){
|
||||
if (that.config.autoplay === 'always') return;
|
||||
that.autoplay();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue