diff --git a/package.json b/package.json index 47d23746..08f8bb39 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "layui", "realname": "layui", - "version": "2.7.0-rc.6", + "version": "2.7.0", "description": "Classic modular Front-End UI library", "main": "dist/layui.js", "license": "MIT", diff --git a/src/layui.js b/src/layui.js index b973311d..a364fcb6 100644 --- a/src/layui.js +++ b/src/layui.js @@ -15,7 +15,7 @@ } ,Layui = function(){ - this.v = '2.7.0-rc.1'; // layui 版本号 + this.v = '2.7.0'; // layui 版本号 } //识别预先可能定义的指定全局对象 diff --git a/src/modules/carousel.js b/src/modules/carousel.js index 59bf9b20..076a859b 100644 --- a/src/modules/carousel.js +++ b/src/modules/carousel.js @@ -296,10 +296,10 @@ layui.define('jquery', function(exports){ //移入移出容器 options.elem.on('mouseenter', function(){ - if (options.autoplay === 'always') return; + if (that.config.autoplay === 'always') return; clearInterval(that.timer); }).on('mouseleave', function(){ - if (options.autoplay === 'always') return; + if (that.config.autoplay === 'always') return; that.autoplay(); });