@dolphinweex/weex-vue-render 0.2.24 → 0.2.26
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 +42 -7
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5907,7 +5907,7 @@ var scrollable$1 = {
|
|
|
5907
5907
|
},
|
|
5908
5908
|
|
|
5909
5909
|
handleScroll: function handleScroll (event) {
|
|
5910
|
-
event.stopImmediatePropagation();
|
|
5910
|
+
// event.stopImmediatePropagation();
|
|
5911
5911
|
weex.utils.getThrottleLazyload(25, this.$el, 'scroll')();
|
|
5912
5912
|
getThrottledScroll(this)(event);
|
|
5913
5913
|
|
|
@@ -5944,7 +5944,7 @@ var scrollable$1 = {
|
|
|
5944
5944
|
reachBottom: function reachBottom (offset) {
|
|
5945
5945
|
var wrapper = this.$refs.wrapper;
|
|
5946
5946
|
var inner = this.$refs.inner;
|
|
5947
|
-
offset = parseInt(offset ||
|
|
5947
|
+
offset = parseInt(offset || 10) * weex.config.env.scale;
|
|
5948
5948
|
|
|
5949
5949
|
if (wrapper && inner) {
|
|
5950
5950
|
var key = this.scrollDirection === 'horizontal'
|
|
@@ -6041,10 +6041,10 @@ var scrollable$1 = {
|
|
|
6041
6041
|
var isV = tp.isVertical;
|
|
6042
6042
|
if (this.scrollDirection === 'horizontal' && !isV) {
|
|
6043
6043
|
// 水平
|
|
6044
|
-
event.stopPropagation();
|
|
6044
|
+
// event.stopPropagation();
|
|
6045
6045
|
}else if (isV) {
|
|
6046
6046
|
// 垂直
|
|
6047
|
-
event.stopPropagation();
|
|
6047
|
+
// event.stopPropagation();
|
|
6048
6048
|
}else {
|
|
6049
6049
|
return;
|
|
6050
6050
|
}
|
|
@@ -6113,12 +6113,23 @@ function getList (weex) {
|
|
|
6113
6113
|
|
|
6114
6114
|
return {
|
|
6115
6115
|
name: 'weex-list',
|
|
6116
|
+
props: {
|
|
6117
|
+
scrollable: {
|
|
6118
|
+
type: [Boolean],
|
|
6119
|
+
default: true
|
|
6120
|
+
}
|
|
6121
|
+
},
|
|
6116
6122
|
mixins: [scrollable$1],
|
|
6117
6123
|
computed: {
|
|
6118
6124
|
wrapperClass: function wrapperClass () {
|
|
6119
6125
|
var classArray = ['weex-list', 'weex-list-wrapper', 'weex-ct', 'height-0'];
|
|
6120
6126
|
this._refresh && classArray.push('with-refresh');
|
|
6121
6127
|
this._loading && classArray.push('with-loading');
|
|
6128
|
+
|
|
6129
|
+
if (!this.scrollable) {
|
|
6130
|
+
classArray.push('weex-list-disabled');
|
|
6131
|
+
}
|
|
6132
|
+
|
|
6122
6133
|
return classArray.join(' ')
|
|
6123
6134
|
}
|
|
6124
6135
|
},
|
|
@@ -7238,6 +7249,10 @@ function getList$1 (weex) {
|
|
|
7238
7249
|
return ['horizontal', 'vertical'].indexOf(value) !== -1
|
|
7239
7250
|
}
|
|
7240
7251
|
},
|
|
7252
|
+
scrollable: {
|
|
7253
|
+
type: [Boolean],
|
|
7254
|
+
default: true
|
|
7255
|
+
},
|
|
7241
7256
|
_items: Array,
|
|
7242
7257
|
_switch: String
|
|
7243
7258
|
},
|
|
@@ -7266,6 +7281,11 @@ function getList$1 (weex) {
|
|
|
7266
7281
|
classArray.push('weex-recycle-vertical');
|
|
7267
7282
|
classArray.push('height-0');
|
|
7268
7283
|
}
|
|
7284
|
+
|
|
7285
|
+
if (!this.scrollable) {
|
|
7286
|
+
classArray.push('weex-recycle-disabled');
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7269
7289
|
return classArray.join(' ')
|
|
7270
7290
|
}
|
|
7271
7291
|
},
|
|
@@ -7333,7 +7353,7 @@ var recycleList = {
|
|
|
7333
7353
|
}
|
|
7334
7354
|
};
|
|
7335
7355
|
|
|
7336
|
-
__$styleInject("/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nbody > .weex-list,\nbody > .weex-recycle,\nbody > .weex-scroller,\nbody > .weex-waterfall {\n max-height: 100%;\n}\n\n.weex-list-wrapper,\n.weex-recycle-wrapper,\n.weex-scroller-wrapper,\n.weex-waterfall-wrapper {\n -webkit-overflow-scrolling: touch;\n}\n\n.weex-list-wrapper,\n.weex-waterfall-wrapper, \n.weex-recycle-wrapper {\n overflow-y: scroll !important;\n overflow-x: hidden !important;\n align-items: flex-start !important;\n justify-content: flex-start !important;\n max-width: 100vw; \n}\n\n.weex-list-inner,\n.weex-recycle-inner,\n.weex-scroller-inner,\n.weex-waterfall-inner {\n -webkit-overflow-scrolling: touch;\n align-items: inherit; \n flex:1; \n}\n\n.weex-waterfall-inner-columns { \n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\n max-width: 100vw; \n}\n\n.weex-scroller-wrapper.weex-scroller-vertical,\n.weex-recycle-wrapper.weex-recycle-vertical {\n overflow-x: hidden;\n overflow-y: scroll;\n}\n\n.weex-scroller-wrapper.weex-scroller-horizontal,\n.weex-recycle-wrapper.weex-recycle-horizontal {\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.weex-scroller-wrapper.weex-scroller-disabled {\n overflow-x: hidden;\n overflow-y: hidden;\n}\n\n.weex-scroller-horizontal .weex-scroller-inner,\n.weex-recycle-horizontal .weex-recycle-inner {\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\n height: 100%;\n}\n\n.weex-cell {\n width: 100%;\n}\n\n.weex-refresh,\n.weex-loading {\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n width: 100%;\n overflow: hidden;\n}\n",undefined);
|
|
7356
|
+
__$styleInject("/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nbody > .weex-list,\nbody > .weex-recycle,\nbody > .weex-scroller,\nbody > .weex-waterfall {\n max-height: 100%;\n}\n\n.weex-list-wrapper,\n.weex-recycle-wrapper,\n.weex-scroller-wrapper,\n.weex-waterfall-wrapper {\n -webkit-overflow-scrolling: touch;\n}\n\n.weex-list-wrapper,\n.weex-waterfall-wrapper, \n.weex-recycle-wrapper {\n overflow-y: scroll !important;\n overflow-x: hidden !important;\n align-items: flex-start !important;\n justify-content: flex-start !important;\n max-width: 100vw; \n}\n\n.weex-list-inner,\n.weex-recycle-inner,\n.weex-scroller-inner,\n.weex-waterfall-inner {\n -webkit-overflow-scrolling: touch;\n align-items: inherit; \n flex:1; \n}\n\n.weex-waterfall-inner-columns { \n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\n max-width: 100vw; \n}\n\n.weex-scroller-wrapper.weex-scroller-vertical,\n.weex-recycle-wrapper.weex-recycle-vertical {\n overflow-x: hidden;\n overflow-y: scroll;\n}\n\n.weex-scroller-wrapper.weex-scroller-horizontal,\n.weex-recycle-wrapper.weex-recycle-horizontal {\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.weex-scroller-wrapper.weex-scroller-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-slider-wrapper.weex-slider-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-list-wrapper.weex-list-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-recycle-wrapper.weex-recycle-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-scroller-horizontal .weex-scroller-inner,\n.weex-recycle-horizontal .weex-recycle-inner {\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\n height: 100%;\n}\n\n.weex-cell {\n width: 100%;\n}\n\n.weex-refresh,\n.weex-loading {\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n width: 100%;\n overflow: hidden;\n}\n",undefined);
|
|
7337
7357
|
|
|
7338
7358
|
/*
|
|
7339
7359
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@@ -7403,6 +7423,22 @@ var INTERVAL_MINIMUM = 200;
|
|
|
7403
7423
|
var touchSliderInstance = null;
|
|
7404
7424
|
|
|
7405
7425
|
var slideMixin = {
|
|
7426
|
+
props: {
|
|
7427
|
+
scrollable: {
|
|
7428
|
+
type: [Boolean],
|
|
7429
|
+
default: true
|
|
7430
|
+
}
|
|
7431
|
+
},
|
|
7432
|
+
computed: {
|
|
7433
|
+
wrapperClass: function wrapperClass () {
|
|
7434
|
+
var classArray = ['weex-slider weex-slider-wrapper weex-ct'];
|
|
7435
|
+
if (!this.scrollable) {
|
|
7436
|
+
classArray.push('weex-slider-disabled');
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7439
|
+
return classArray.join(' ')
|
|
7440
|
+
}
|
|
7441
|
+
},
|
|
7406
7442
|
created: function created () {
|
|
7407
7443
|
this._clones = [];
|
|
7408
7444
|
this.innerOffset = 0;
|
|
@@ -7543,7 +7579,7 @@ var slideMixin = {
|
|
|
7543
7579
|
touchend: this._handleTouchEnd,
|
|
7544
7580
|
touchcancel: this._handleTouchCancel
|
|
7545
7581
|
},
|
|
7546
|
-
staticClass:
|
|
7582
|
+
staticClass: this.wrapperClass,
|
|
7547
7583
|
staticStyle: weex.extractComponentStyle(this)
|
|
7548
7584
|
},
|
|
7549
7585
|
[
|
|
@@ -8811,7 +8847,6 @@ function getWeb (weex) {
|
|
|
8811
8847
|
var this$1 = this;
|
|
8812
8848
|
|
|
8813
8849
|
return createElement('iframe', {
|
|
8814
|
-
ref: 'childIframe',
|
|
8815
8850
|
attrs: {
|
|
8816
8851
|
'weex-type': 'web',
|
|
8817
8852
|
src: this.currentSrc
|
package/package.json
CHANGED