@dolphinweex/weex-vue-render 0.2.74 → 0.2.75
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 +11 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -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 () {
|
package/package.json
CHANGED