@dolphinweex/weex-vue-render 0.2.20 → 0.2.22
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 +7 -4
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5064,6 +5064,7 @@ var inputCommon = {
|
|
|
5064
5064
|
methods: {
|
|
5065
5065
|
focus: function focus () {
|
|
5066
5066
|
this.$el && this.$el.focus();
|
|
5067
|
+
this.$el && weex.requireModule('bridgeModule').commandInterface(JSON.stringify({ operation: 'showKeyboard'}))
|
|
5067
5068
|
},
|
|
5068
5069
|
blur: function blur () {
|
|
5069
5070
|
this.$el && this.$el.blur();
|
|
@@ -7405,7 +7406,7 @@ var slideMixin = {
|
|
|
7405
7406
|
this._clones = [];
|
|
7406
7407
|
this.innerOffset = 0;
|
|
7407
7408
|
this._indicator = null;
|
|
7408
|
-
this.cloneIndex = Boolean(this.infinite) //需要减或者加去克隆下标
|
|
7409
|
+
this.cloneIndex = this.frameCount > 1 ? Boolean(this.infinite) : 0 //需要减或者加去克隆下标
|
|
7409
7410
|
},
|
|
7410
7411
|
|
|
7411
7412
|
beforeUpdate: function beforeUpdate () {
|
|
@@ -7614,7 +7615,7 @@ var slideMixin = {
|
|
|
7614
7615
|
this.innerOffset += step * this._wrapperWidth;
|
|
7615
7616
|
|
|
7616
7617
|
// 克隆处理:先执行正常动画到克隆的最后一张,再瞬间跳回真实的第一张
|
|
7617
|
-
if (this.infinite && index >= this.frameCount - 1) {
|
|
7618
|
+
if (this.frameCount > 1 && this.infinite && index >= this.frameCount - 1) {
|
|
7618
7619
|
// 先滑到克隆的 `第一张`
|
|
7619
7620
|
newIndex = this.frameCount - 1;
|
|
7620
7621
|
this.innerOffset = -newIndex * this._wrapperWidth;
|
|
@@ -7628,7 +7629,7 @@ var slideMixin = {
|
|
|
7628
7629
|
this.innerOffset = -this._wrapperWidth; // 瞬间跳到 `第一张`
|
|
7629
7630
|
inner.style.left = `${this.innerOffset}px`;
|
|
7630
7631
|
}, TRANSITION_TIME);
|
|
7631
|
-
} else if (this.infinite && index <= 0) {
|
|
7632
|
+
} else if (this.frameCount > 1 && this.infinite && index <= 0) {
|
|
7632
7633
|
// 先滑到克隆的 `最后一张`
|
|
7633
7634
|
newIndex = 0;
|
|
7634
7635
|
this.innerOffset = -newIndex * this._wrapperWidth;
|
|
@@ -10018,7 +10019,9 @@ function transitionOnce (vnode, config, callback) {
|
|
|
10018
10019
|
dom.removeEventListener(endEvent, transitionEndHandler);
|
|
10019
10020
|
dom.style[styleName] = '';
|
|
10020
10021
|
}
|
|
10021
|
-
|
|
10022
|
+
setTimeout(()=>{
|
|
10023
|
+
callback(); //解决嵌套animation的时候 duration过小时会出现瞬间执行完毕的问题
|
|
10024
|
+
})
|
|
10022
10025
|
};
|
|
10023
10026
|
if (endEvent) {
|
|
10024
10027
|
dom.style[styleName] = transitionValue;
|
package/package.json
CHANGED