@dolphinweex/weex-vue-render 0.2.103 → 0.2.105

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.
@@ -4112,6 +4112,7 @@ function initEnv (viewportInfo, envInfo) {
4112
4112
  weexVersion: device_display.weexVersion,
4113
4113
  osName: device_display.osName,
4114
4114
  statusBarHeight: device_display.statusBarHeight,
4115
+ navigationBarHeight: device_display.navigationBarHeight,
4115
4116
  safeAreaBottomHeight: device_display.safeAreaBottomHeight,
4116
4117
  isImmersion: device_display.isImmersion ? "true" : "false",
4117
4118
 
@@ -7018,7 +7019,13 @@ function getWaterfall (weex) {
7018
7019
  val = parseInt(val);
7019
7020
  return !isNaN(val) && val > 0
7020
7021
  }
7021
- }
7022
+ },
7023
+ // 固定网格模式:保持 slot 顺序按列轮询分配,不再根据图片加载时的
7024
+ // 瞬时高度直接搬动 DOM。适用于照片墙等定高 cell。
7025
+ stableLayout: {
7026
+ type: Boolean,
7027
+ default: false
7028
+ },
7022
7029
  },
7023
7030
 
7024
7031
  mounted: function mounted () {
@@ -7220,6 +7227,7 @@ function getWaterfall (weex) {
7220
7227
  }
7221
7228
  for (var i$1 = 0; i$1 < columnCnt; i$1++) {
7222
7229
  this$1._columns.push(createElement('html:div', {
7230
+ // key: 'weex-waterfall-column-' + i$1,
7223
7231
  ref: ("column" + i$1),
7224
7232
  attrs: {
7225
7233
  'data-column': i$1
@@ -7239,7 +7247,9 @@ function getWaterfall (weex) {
7239
7247
 
7240
7248
  _reLayoutChildren: function _reLayoutChildren () {
7241
7249
  var this$1 = this;
7242
-
7250
+ if (this.stableLayout) {
7251
+ return
7252
+ }
7243
7253
  /**
7244
7254
  * treat the shortest column bottom as the match standard.
7245
7255
  * whichever cell exceeded it would be rearranged.
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.103"
52
+ "version": "0.2.105"
53
53
  }