@dolphinweex/weex-vue-render 0.2.28 → 0.2.31

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.
@@ -2737,7 +2737,7 @@ function init$1 (viewportWidth) {
2737
2737
  setRootFont(screenWidth, viewportWidth);
2738
2738
  setMetaViewport(viewportWidth);
2739
2739
 
2740
- window.addEventListener('resize', resetDeviceHeight);
2740
+ // window.addEventListener('resize', resetDeviceHeight);
2741
2741
 
2742
2742
  /**
2743
2743
  * why not to use window.screen.width to get screenWidth ? Because in some
@@ -3833,7 +3833,7 @@ function px2px(pv) {
3833
3833
  }
3834
3834
 
3835
3835
  const ignoreSubKey = ['scale']
3836
- function px2rem (px, rootValue) {
3836
+ function px2rem (px, rootValue = 75) {
3837
3837
  // fix: 适配鸿蒙wx单位
3838
3838
  if (px.indexOf("--harmory") > -1) return px;
3839
3839
 
@@ -6909,7 +6909,7 @@ function getLoading () {
6909
6909
  height: function height (val) {
6910
6910
  var offset = val + "px";
6911
6911
  this.$el.style.height = offset;
6912
- this.$el.style.bottom = offset;
6912
+ this.$el.style.bottom = 0;
6913
6913
  },
6914
6914
  display: function display (val) {
6915
6915
  if (val === 'hide') {
@@ -7353,7 +7353,7 @@ var recycleList = {
7353
7353
  }
7354
7354
  };
7355
7355
 
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);
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 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);
7357
7357
 
7358
7358
  /*
7359
7359
  * Licensed to the Apache Software Foundation (ASF) under one
@@ -7534,7 +7534,7 @@ var slideMixin = {
7534
7534
 
7535
7535
  if (indicatorVnode) {
7536
7536
  indicatorVnode.data.attrs = indicatorVnode.data.attrs || {};
7537
- indicatorVnode.data.attrs.count = cells.length - (this.infinite ? 2 : 0 ); // 显示实际数量
7537
+ indicatorVnode.data.attrs.count = cells.length; // 显示实际数量
7538
7538
  indicatorVnode.data.attrs.active = this.currentIndex ;
7539
7539
  this._indicator = indicatorVnode;
7540
7540
  }
@@ -7596,7 +7596,6 @@ var slideMixin = {
7596
7596
 
7597
7597
  _slideTo: function _slideTo(index, isTouchScroll) {
7598
7598
  var this$1 = this;
7599
-
7600
7599
  if (this.frameCount <= 0) {
7601
7600
  return;
7602
7601
  }
@@ -8120,7 +8119,7 @@ var slideMixin = {
8120
8119
  },
8121
8120
 
8122
8121
  _handleTouchStart: function _handleTouchStart (event) {
8123
- if (!this.scrollable) {
8122
+ if (!this.scrollable || this.frameCount<=1) {
8124
8123
  return // 🚫 禁止滚动行为
8125
8124
  }
8126
8125
  var touch = event.changedTouches[0];
@@ -8183,7 +8182,6 @@ var slideMixin = {
8183
8182
  lastNode.style.position = 'absolute';
8184
8183
  lastNode.style.left = `-${this._wrapperWidth}px`;
8185
8184
  lastNode.style.opacity = '1';
8186
- lastNode.style.zIndex = '10';
8187
8185
  } else if (atLast && isLeftSwipe) {
8188
8186
  // 从最后一张向左滑到第一张
8189
8187
  var firstNode = this._cells[0].elm;
@@ -8191,7 +8189,6 @@ var slideMixin = {
8191
8189
  cloneNode.style.position = 'absolute';
8192
8190
  cloneNode.style.left = `${this.frameCount * this._wrapperWidth}px`;
8193
8191
  cloneNode.style.width = `${this._wrapperWidth}px`;
8194
- cloneNode.style.zIndex = '10';
8195
8192
  inner.appendChild(cloneNode);
8196
8193
  tp.cloneNode = cloneNode;
8197
8194
  }
@@ -8358,6 +8355,7 @@ var slider$1 = {
8358
8355
  watch: {
8359
8356
  index: function index () {
8360
8357
  this.currentIndex = this._normalizeIndex(this.index);
8358
+ console.log('cdj----index',this.infinite,this.currentIndex)
8361
8359
  }
8362
8360
  },
8363
8361
 
@@ -10321,7 +10319,7 @@ var dom = {
10321
10319
  }
10322
10320
  else {}
10323
10321
  if (options && options.animated === false) {
10324
- return scrollElement.call(ct, dSuffix, offset)
10322
+ return scrollElement.call(ct, dSuffix, 0)
10325
10323
  }
10326
10324
  step$1({
10327
10325
  scrollable: ct,
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.28"
52
+ "version": "0.2.31"
53
53
  }