add always
value for autoplay (#1049)
This commit is contained in:
commit
8e66f49320
@ -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…
Reference in New Issue
Block a user