@dolphinweex/weex-vue-render 0.2.49 → 0.2.50
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 -13
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -2919,7 +2919,7 @@ 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){
|
|
2922
|
+
if(context.maxlength && context.value){
|
|
2923
2923
|
context.value = context.value.slice(0,context.maxlength)
|
|
2924
2924
|
}
|
|
2925
2925
|
event.value = context.$el.value;
|
|
@@ -5665,7 +5665,7 @@ function getImage(weex) {
|
|
|
5665
5665
|
: baseUrl;
|
|
5666
5666
|
},
|
|
5667
5667
|
processAndConcatenate(baseUrl, appendStr) {
|
|
5668
|
-
if (appendStr.startsWith('http') || appendStr.startsWith('meiju://') || appendStr.startsWith('file')) {
|
|
5668
|
+
if (appendStr.startsWith('http') || appendStr.startsWith('meiju://') || appendStr.startsWith('file')|| appendStr.startsWith('data:image')) {
|
|
5669
5669
|
return appendStr
|
|
5670
5670
|
}
|
|
5671
5671
|
const path = baseUrl + '/'
|
|
@@ -7743,8 +7743,8 @@ var slideMixin = {
|
|
|
7743
7743
|
this.innerOffset = 0;
|
|
7744
7744
|
this._indicator = null;
|
|
7745
7745
|
|
|
7746
|
-
// 向上寻找nav组件(父级weex-slider)
|
|
7747
|
-
this._findParentNav();
|
|
7746
|
+
// // 向上寻找nav组件(父级weex-slider)
|
|
7747
|
+
// this._findParentNav();
|
|
7748
7748
|
},
|
|
7749
7749
|
|
|
7750
7750
|
beforeUpdate: function beforeUpdate () {
|
|
@@ -8544,11 +8544,10 @@ var slideMixin = {
|
|
|
8544
8544
|
if (!this.scrollable || this.frameCount<=1) {
|
|
8545
8545
|
return // 🚫 禁止滚动行为
|
|
8546
8546
|
}
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
weex.weexSliderTouchStart = true
|
|
8547
|
+
// if(weex.weexSliderTouchStart){
|
|
8548
|
+
// return
|
|
8549
|
+
// }
|
|
8550
|
+
// weex.weexSliderTouchStart = true
|
|
8552
8551
|
|
|
8553
8552
|
this.lastMoveTime = Date.now();
|
|
8554
8553
|
this.lastMovePosition = event.touches[0].pageX;
|
|
@@ -8633,8 +8632,8 @@ var slideMixin = {
|
|
|
8633
8632
|
const atFirst = this._preIndex === 0;
|
|
8634
8633
|
const atLast = this._preIndex === this.frameCount - 1;
|
|
8635
8634
|
if (!this.infinite && !this.autoPlay && ((atLast && isLeftSwipe) || (atFirst && isRightSwipe)) && !weex.weexSliderTouchBoundary) {
|
|
8636
|
-
weex.weexSliderTouchBoundary = true
|
|
8637
|
-
this._parentNav._touchParams = ref
|
|
8635
|
+
// weex.weexSliderTouchBoundary = true
|
|
8636
|
+
// this._parentNav._touchParams = ref
|
|
8638
8637
|
//如果是边界并继续滑动
|
|
8639
8638
|
return
|
|
8640
8639
|
}
|
|
@@ -8709,8 +8708,8 @@ var slideMixin = {
|
|
|
8709
8708
|
},
|
|
8710
8709
|
|
|
8711
8710
|
_handleTouchEnd: function _handleTouchEnd (event) {
|
|
8712
|
-
weex.weexSliderTouchBoundary = false
|
|
8713
|
-
weex.weexSliderTouchStart = false
|
|
8711
|
+
// weex.weexSliderTouchBoundary = false
|
|
8712
|
+
// weex.weexSliderTouchStart = false
|
|
8714
8713
|
var inner = this.$refs.inner;
|
|
8715
8714
|
this._refresh && this._refresh.pullingEnd();
|
|
8716
8715
|
if (touchSliderInstance == inner) {
|
package/package.json
CHANGED