@dolphinweex/weex-vue-render 0.2.53 → 0.2.55
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 -12
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -2919,8 +2919,8 @@ function mapFormEvents (context) {
|
|
|
2919
2919
|
var eventMap = {};['input', 'change', 'focus', 'blur', 'return'].forEach(function (type) {
|
|
2920
2920
|
eventMap[type] = function (event) {
|
|
2921
2921
|
if (context.$el) {
|
|
2922
|
-
if(context.maxlength && context.value){
|
|
2923
|
-
context.value = context.value.slice(0,context.maxlength)
|
|
2922
|
+
if(context.maxlength && context.$el.value){
|
|
2923
|
+
context.$el.value = context.$el.value.slice(0,context.maxlength)
|
|
2924
2924
|
}
|
|
2925
2925
|
event.value = context.$el.value;
|
|
2926
2926
|
// for the sake of v-model, a input event must be emitted.
|
|
@@ -5628,6 +5628,7 @@ function getImage(weex) {
|
|
|
5628
5628
|
},
|
|
5629
5629
|
created: function created() {
|
|
5630
5630
|
// this.currentSrc = this.src;
|
|
5631
|
+
this.loadImage();
|
|
5631
5632
|
},
|
|
5632
5633
|
|
|
5633
5634
|
mounted: function () {
|
|
@@ -7784,7 +7785,7 @@ var slideMixin = {
|
|
|
7784
7785
|
this._indicator = null;
|
|
7785
7786
|
|
|
7786
7787
|
// // 向上寻找nav组件(父级weex-slider)
|
|
7787
|
-
|
|
7788
|
+
this._findParentNav();
|
|
7788
7789
|
},
|
|
7789
7790
|
|
|
7790
7791
|
beforeUpdate: function beforeUpdate () {
|
|
@@ -8584,10 +8585,10 @@ var slideMixin = {
|
|
|
8584
8585
|
if (!this.scrollable || this.frameCount<=1) {
|
|
8585
8586
|
return // 🚫 禁止滚动行为
|
|
8586
8587
|
}
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8588
|
+
if(weex.weexSliderTouchStart && !weex.weexSliderTouchBoundary){
|
|
8589
|
+
return
|
|
8590
|
+
}
|
|
8591
|
+
weex.weexSliderTouchStart = true
|
|
8591
8592
|
|
|
8592
8593
|
this.lastMoveTime = Date.now();
|
|
8593
8594
|
this.lastMovePosition = event.touches[0].pageX;
|
|
@@ -8672,8 +8673,8 @@ var slideMixin = {
|
|
|
8672
8673
|
const atFirst = this._preIndex === 0;
|
|
8673
8674
|
const atLast = this._preIndex === this.frameCount - 1;
|
|
8674
8675
|
if (!this.infinite && !this.autoPlay && ((atLast && isLeftSwipe) || (atFirst && isRightSwipe)) && !weex.weexSliderTouchBoundary) {
|
|
8675
|
-
|
|
8676
|
-
|
|
8676
|
+
weex.weexSliderTouchBoundary = true
|
|
8677
|
+
this._parentNav._touchParams = ref
|
|
8677
8678
|
//如果是边界并继续滑动
|
|
8678
8679
|
return
|
|
8679
8680
|
}
|
|
@@ -8749,8 +8750,8 @@ var slideMixin = {
|
|
|
8749
8750
|
|
|
8750
8751
|
_handleTouchEnd: function _handleTouchEnd (event) {
|
|
8751
8752
|
this._startAutoPlay();
|
|
8752
|
-
|
|
8753
|
-
|
|
8753
|
+
weex.weexSliderTouchBoundary = false
|
|
8754
|
+
weex.weexSliderTouchStart = false
|
|
8754
8755
|
var inner = this.$refs.inner;
|
|
8755
8756
|
this._refresh && this._refresh.pullingEnd();
|
|
8756
8757
|
if (touchSliderInstance == inner) {
|
|
@@ -11912,4 +11913,4 @@ return weex;
|
|
|
11912
11913
|
const globalEventForReload = weex.requireModule('globalEvent')
|
|
11913
11914
|
globalEventForReload.addEventListener("WebReload",()=>{
|
|
11914
11915
|
location.reload()
|
|
11915
|
-
})
|
|
11916
|
+
})
|
package/package.json
CHANGED