@dolphinweex/weex-vue-render 0.2.74 → 0.2.76
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 +13 -3
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -6087,7 +6087,7 @@ function getThrottledScroll (context) {
|
|
|
6087
6087
|
var evtObj = {
|
|
6088
6088
|
contentSize: { width: rect.width, height: rect.height },
|
|
6089
6089
|
contentOffset: {
|
|
6090
|
-
x: wrapper.scrollLeft,
|
|
6090
|
+
x: -wrapper.scrollLeft * rate,
|
|
6091
6091
|
/**
|
|
6092
6092
|
* positive direciton for y-axis is down.
|
|
6093
6093
|
* so should use negative operation on scrollTop.
|
|
@@ -9222,7 +9222,17 @@ var slider$1 = {
|
|
|
9222
9222
|
watch: {
|
|
9223
9223
|
index: function index () {
|
|
9224
9224
|
this.currentIndex = this._normalizeIndex(this.index);
|
|
9225
|
-
|
|
9225
|
+
this.currentIndex = this._normalizeIndex(this.index);
|
|
9226
|
+
// 如果正在滑动,强制打断并重置状态
|
|
9227
|
+
if (this._sliding) {
|
|
9228
|
+
var inner = this.$refs.inner;
|
|
9229
|
+
if (inner) {
|
|
9230
|
+
inner.style.transition = 'none';
|
|
9231
|
+
}
|
|
9232
|
+
this._sliding = false;
|
|
9233
|
+
}
|
|
9234
|
+
this._slideTo(this.currentIndex);
|
|
9235
|
+
}
|
|
9226
9236
|
},
|
|
9227
9237
|
|
|
9228
9238
|
data: function data () {
|
|
@@ -10999,7 +11009,7 @@ function transitionOnce (vnode, config, callback) {
|
|
|
10999
11009
|
vnode = vnode[0];
|
|
11000
11010
|
}
|
|
11001
11011
|
|
|
11002
|
-
var duration = config.duration ||
|
|
11012
|
+
var duration = config.duration || 0; // ms
|
|
11003
11013
|
var timing = config.timingFunction || 'linear';
|
|
11004
11014
|
var delay = config.delay || 0; // ms
|
|
11005
11015
|
|
package/package.json
CHANGED