@dolphinweex/weex-harmony 0.1.17 → 0.1.18
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/package.json
CHANGED
@@ -64,12 +64,10 @@ export default {
|
|
64
64
|
return filtered;
|
65
65
|
},
|
66
66
|
embedWidth() {
|
67
|
-
this.$forceUpdate()
|
68
67
|
// 如果hosSameLayerArgs.width存在且定义了,则使用该值,否则使用defaultWidth
|
69
68
|
return this.hosSameLayerArgs.width || this.defaultWidth;
|
70
69
|
},
|
71
70
|
embedHeight() {
|
72
|
-
this.$forceUpdate()
|
73
71
|
// 如果hosSameLayerArgs.height存在且定义了,则使用该值,否则使用defaultHeight
|
74
72
|
return this.hosSameLayerArgs.height || this.defaultHeight;
|
75
73
|
},
|
@@ -147,9 +145,11 @@ export default {
|
|
147
145
|
deep: true,
|
148
146
|
handler: function (newVal, oldVal) {
|
149
147
|
console.log("[sameLayerRendering] web component update.");
|
150
|
-
|
151
|
-
|
152
|
-
|
148
|
+
this.$nextTick(() => {
|
149
|
+
weexModule.callNative("transferSameLayerArgs", {
|
150
|
+
componentId: this.embedId,
|
151
|
+
...newVal,
|
152
|
+
});
|
153
153
|
});
|
154
154
|
},
|
155
155
|
},
|
@@ -1,6 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<BaseSameLayer :hosSameLayerArgs="hosSameLayerArgs" embedType="native/midea-scene-card-drag-list-view"
|
3
|
-
:defaultHeight="300" ref="sceneCardRed"></BaseSameLayer>
|
2
|
+
<BaseSameLayer :hosSameLayerArgs="hosSameLayerArgs" embedType="native/midea-scene-card-drag-list-view" ref="sceneCardRed"></BaseSameLayer>
|
4
3
|
</template>
|
5
4
|
|
6
5
|
<script>
|