carousel autoplay新增'always'支持

pull/1049/head
sunxiaobin89 2022-06-22 11:43:18 +08:00
parent 094cfc03b1
commit 37b4c404ea
1 changed files with 2 additions and 0 deletions

View File

@ -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();
});