@dolphinweex/weex-vue-render 0.2.54 → 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 +12 -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.
|
|
@@ -7785,7 +7785,7 @@ var slideMixin = {
|
|
|
7785
7785
|
this._indicator = null;
|
|
7786
7786
|
|
|
7787
7787
|
// // 向上寻找nav组件(父级weex-slider)
|
|
7788
|
-
|
|
7788
|
+
this._findParentNav();
|
|
7789
7789
|
},
|
|
7790
7790
|
|
|
7791
7791
|
beforeUpdate: function beforeUpdate () {
|
|
@@ -8585,10 +8585,10 @@ var slideMixin = {
|
|
|
8585
8585
|
if (!this.scrollable || this.frameCount<=1) {
|
|
8586
8586
|
return // 🚫 禁止滚动行为
|
|
8587
8587
|
}
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8588
|
+
if(weex.weexSliderTouchStart && !weex.weexSliderTouchBoundary){
|
|
8589
|
+
return
|
|
8590
|
+
}
|
|
8591
|
+
weex.weexSliderTouchStart = true
|
|
8592
8592
|
|
|
8593
8593
|
this.lastMoveTime = Date.now();
|
|
8594
8594
|
this.lastMovePosition = event.touches[0].pageX;
|
|
@@ -8673,8 +8673,8 @@ var slideMixin = {
|
|
|
8673
8673
|
const atFirst = this._preIndex === 0;
|
|
8674
8674
|
const atLast = this._preIndex === this.frameCount - 1;
|
|
8675
8675
|
if (!this.infinite && !this.autoPlay && ((atLast && isLeftSwipe) || (atFirst && isRightSwipe)) && !weex.weexSliderTouchBoundary) {
|
|
8676
|
-
|
|
8677
|
-
|
|
8676
|
+
weex.weexSliderTouchBoundary = true
|
|
8677
|
+
this._parentNav._touchParams = ref
|
|
8678
8678
|
//如果是边界并继续滑动
|
|
8679
8679
|
return
|
|
8680
8680
|
}
|
|
@@ -8750,8 +8750,8 @@ var slideMixin = {
|
|
|
8750
8750
|
|
|
8751
8751
|
_handleTouchEnd: function _handleTouchEnd (event) {
|
|
8752
8752
|
this._startAutoPlay();
|
|
8753
|
-
|
|
8754
|
-
|
|
8753
|
+
weex.weexSliderTouchBoundary = false
|
|
8754
|
+
weex.weexSliderTouchStart = false
|
|
8755
8755
|
var inner = this.$refs.inner;
|
|
8756
8756
|
this._refresh && this._refresh.pullingEnd();
|
|
8757
8757
|
if (touchSliderInstance == inner) {
|
|
@@ -11913,4 +11913,4 @@ return weex;
|
|
|
11913
11913
|
const globalEventForReload = weex.requireModule('globalEvent')
|
|
11914
11914
|
globalEventForReload.addEventListener("WebReload",()=>{
|
|
11915
11915
|
location.reload()
|
|
11916
|
-
})
|
|
11916
|
+
})
|
package/package.json
CHANGED