@next-core/editor-bricks-helper 0.43.0 → 0.44.1
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.esm.js
CHANGED
|
@@ -916,6 +916,7 @@ class BuilderDataManager {
|
|
|
916
916
|
edges,
|
|
917
917
|
wrapperNode
|
|
918
918
|
} = this.data;
|
|
919
|
+
var updateNode = nodes.find(item => item.instanceId === instanceId);
|
|
919
920
|
var newNodes = nodes.map(item => {
|
|
920
921
|
if (item.instanceId === instanceId) {
|
|
921
922
|
return _objectSpread(_objectSpread({}, item), detail);
|
|
@@ -923,10 +924,19 @@ class BuilderDataManager {
|
|
|
923
924
|
|
|
924
925
|
return item;
|
|
925
926
|
});
|
|
927
|
+
var newEdges = detail.mountPoint === undefined || detail.mountPoint === null ? edges : edges.map(item => {
|
|
928
|
+
if (item.child === updateNode.$$uid) {
|
|
929
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
930
|
+
mountPoint: detail.mountPoint
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
return item;
|
|
935
|
+
});
|
|
926
936
|
this.data = {
|
|
927
937
|
rootId,
|
|
928
938
|
nodes: newNodes,
|
|
929
|
-
edges,
|
|
939
|
+
edges: newEdges,
|
|
930
940
|
wrapperNode
|
|
931
941
|
};
|
|
932
942
|
this.eventTarget.dispatchEvent(new CustomEvent(BuilderInternalEventType.NODE_UPDATE, {
|