@dolphinweex/weex-vue-render 0.2.21 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +4 -3
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5907,6 +5907,7 @@ var scrollable$1 = {
|
|
|
5907
5907
|
},
|
|
5908
5908
|
|
|
5909
5909
|
handleScroll: function handleScroll (event) {
|
|
5910
|
+
event.stopImmediatePropagation();
|
|
5910
5911
|
weex.utils.getThrottleLazyload(25, this.$el, 'scroll')();
|
|
5911
5912
|
getThrottledScroll(this)(event);
|
|
5912
5913
|
|
|
@@ -7406,7 +7407,7 @@ var slideMixin = {
|
|
|
7406
7407
|
this._clones = [];
|
|
7407
7408
|
this.innerOffset = 0;
|
|
7408
7409
|
this._indicator = null;
|
|
7409
|
-
this.cloneIndex = Boolean(this.infinite) //需要减或者加去克隆下标
|
|
7410
|
+
this.cloneIndex = this.frameCount > 1 ? Boolean(this.infinite) : 0 //需要减或者加去克隆下标
|
|
7410
7411
|
},
|
|
7411
7412
|
|
|
7412
7413
|
beforeUpdate: function beforeUpdate () {
|
|
@@ -7615,7 +7616,7 @@ var slideMixin = {
|
|
|
7615
7616
|
this.innerOffset += step * this._wrapperWidth;
|
|
7616
7617
|
|
|
7617
7618
|
// 克隆处理:先执行正常动画到克隆的最后一张,再瞬间跳回真实的第一张
|
|
7618
|
-
if (this.infinite && index >= this.frameCount - 1) {
|
|
7619
|
+
if (this.frameCount > 1 && this.infinite && index >= this.frameCount - 1) {
|
|
7619
7620
|
// 先滑到克隆的 `第一张`
|
|
7620
7621
|
newIndex = this.frameCount - 1;
|
|
7621
7622
|
this.innerOffset = -newIndex * this._wrapperWidth;
|
|
@@ -7629,7 +7630,7 @@ var slideMixin = {
|
|
|
7629
7630
|
this.innerOffset = -this._wrapperWidth; // 瞬间跳到 `第一张`
|
|
7630
7631
|
inner.style.left = `${this.innerOffset}px`;
|
|
7631
7632
|
}, TRANSITION_TIME);
|
|
7632
|
-
} else if (this.infinite && index <= 0) {
|
|
7633
|
+
} else if (this.frameCount > 1 && this.infinite && index <= 0) {
|
|
7633
7634
|
// 先滑到克隆的 `最后一张`
|
|
7634
7635
|
newIndex = 0;
|
|
7635
7636
|
this.innerOffset = -newIndex * this._wrapperWidth;
|
package/package.json
CHANGED