Comparing version 2.2.4 to 2.2.5
@@ -848,10 +848,12 @@ module.exports = | ||
this.timer = setInterval(function () { | ||
if (!this$1.continuous && (this$1.index >= this$1.pages.length - 1)) { | ||
return this$1.clearTimer(); | ||
} | ||
if (!this$1.dragging && !this$1.animating) { | ||
this$1.next(); | ||
} | ||
}, this.auto); | ||
if (this.auto > 0) { | ||
this.timer = setInterval(function () { | ||
if (!this$1.continuous && (this$1.index >= this$1.pages.length - 1)) { | ||
return this$1.clearTimer(); | ||
} | ||
if (!this$1.dragging && !this$1.animating) { | ||
this$1.next(); | ||
} | ||
}, this.auto); | ||
} | ||
}, | ||
@@ -880,5 +882,3 @@ | ||
if (this.auto > 0) { | ||
this.initTimer(); | ||
} | ||
this.initTimer(); | ||
@@ -885,0 +885,0 @@ this.reInitPages(); |
{ | ||
"name": "mint-ui", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Mobile UI elements for vue.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -96,4 +96,4 @@ # Overview | ||
| bottomAllLoaded | if `true`, `bottomMethod` can no longer be triggered | Boolean | false | | ||
| translateMethod | translate changed function | Funtion | | | ||
# License | ||
MIT |
@@ -36,4 +36,4 @@ import Header from '../packages/header'; | ||
const version = '2.2.4'; | ||
const install = function(Vue) { | ||
const version = '2.2.5'; | ||
const install = function(Vue, config = {}) { | ||
if (install.installed) return; | ||
@@ -72,3 +72,4 @@ | ||
loading: require('./assets/loading-spin.svg'), | ||
try: 3 | ||
attempt: 3, | ||
...config.lazyload | ||
}); | ||
@@ -75,0 +76,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1123959
27521