@dolphinweex/weex-vue-render 0.2.103 → 0.2.104

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