@dolphinweex/weex-vue-render 0.2.102 → 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.
- package/dist/index.common.js +12 -3
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -4102,7 +4102,7 @@ function initEnv (viewportInfo, envInfo) {
|
|
|
4102
4102
|
appVersion: device_display.appVersion,
|
|
4103
4103
|
osName: osName,
|
|
4104
4104
|
osVersion: osVersion,
|
|
4105
|
-
|
|
4105
|
+
mallEnv: device_display.mallEnv || "",
|
|
4106
4106
|
deviceModel: device_display.deviceModel || "",
|
|
4107
4107
|
appEnv: device_display.appEnv,
|
|
4108
4108
|
versionCode: device_display.versionCode,
|
|
@@ -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