@dolphinweex/weex-vue-render 0.2.29 → 0.2.32

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
 
@@ -5930,7 +5930,8 @@ var scrollable$1 = {
5930
5930
  this._loadmoreReset = false;
5931
5931
  var el = this.$el;
5932
5932
  if (el) {
5933
- weex.utils.dispatchNativeEvent(el, 'loading');
5933
+ var eventName = this.weexType === 'scroller' ? 'loadmore' : 'loading';
5934
+ weex.utils.dispatchNativeEvent(el, eventName);
5934
5935
  }
5935
5936
  }
5936
5937
  }
@@ -6067,6 +6068,12 @@ var scrollable$1 = {
6067
6068
  }
6068
6069
  }
6069
6070
  delete this._touchParams;
6071
+ },
6072
+ handleScrollEnd: function handleScrollEnd (event) {
6073
+ var el = this.$el;
6074
+ if (el) {
6075
+ weex.utils.dispatchNativeEvent(el, 'scrollend', {});
6076
+ }
6070
6077
  }
6071
6078
  }
6072
6079
  };
@@ -7534,7 +7541,7 @@ var slideMixin = {
7534
7541
 
7535
7542
  if (indicatorVnode) {
7536
7543
  indicatorVnode.data.attrs = indicatorVnode.data.attrs || {};
7537
- indicatorVnode.data.attrs.count = cells.length - (this.infinite ? 2 : 0 ); // 显示实际数量
7544
+ indicatorVnode.data.attrs.count = cells.length; // 显示实际数量
7538
7545
  indicatorVnode.data.attrs.active = this.currentIndex ;
7539
7546
  this._indicator = indicatorVnode;
7540
7547
  }
@@ -10319,7 +10326,7 @@ var dom = {
10319
10326
  }
10320
10327
  else {}
10321
10328
  if (options && options.animated === false) {
10322
- return scrollElement.call(ct, dSuffix, offset)
10329
+ return scrollElement.call(ct, dSuffix, 0)
10323
10330
  }
10324
10331
  step$1({
10325
10332
  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.29"
52
+ "version": "0.2.32"
53
53
  }