@dolphinweex/weex-vue-render 0.2.23 → 0.2.25

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.
@@ -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
 
@@ -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-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
@@ -8831,8 +8851,15 @@ function getWeb (weex) {
8831
8851
  catch (err) {
8832
8852
  dispatchNativeEvent(el, 'error', err);
8833
8853
  }
8854
+
8855
+ window.addEventListener('message', function(event){
8856
+ if (event.source === this.$refs.childIframe.contentWindow) {
8857
+ // 处理接收到的消息
8858
+ dispatchNativeEvent(el, 'message', event.data);
8859
+ }
8860
+ }, false);
8834
8861
  });
8835
- }
8862
+ },
8836
8863
  },
8837
8864
  staticClass: 'weex-web weex-el',
8838
8865
  staticStyle: extractComponentStyle(this)
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.23"
52
+ "version": "0.2.25"
53
53
  }