@next-core/editor-bricks-helper 0.42.2 → 0.42.3

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
@@ -1177,8 +1177,9 @@ class BuilderDataManager {
1177
1177
  var overIndex = sortUids.findIndex(item => item === dragOverNodeUid);
1178
1178
  sortIndex = dragStatus === "top" ? overIndex : overIndex + 1; // 排序修正
1179
1179
 
1180
- sortNodeIds.splice(sortIndex, 0, nodeData.id);
1181
- sortUids.splice(sortIndex, 0, (_dragEdge$child = dragEdge === null || dragEdge === void 0 ? void 0 : dragEdge.child) !== null && _dragEdge$child !== void 0 ? _dragEdge$child : null);
1180
+ sortNodeIds.splice(sortIndex, 0, nodeData.id); // 如果是新增的情况下, 没有edge, 则取dragNodeUid(新创建的uid)
1181
+
1182
+ sortUids.splice(sortIndex, 0, (_dragEdge$child = dragEdge === null || dragEdge === void 0 ? void 0 : dragEdge.child) !== null && _dragEdge$child !== void 0 ? _dragEdge$child : dragNodeUid);
1182
1183
  }
1183
1184
 
1184
1185
  return {