@next-core/editor-bricks-helper 0.50.95 → 0.50.97

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
@@ -575,7 +575,7 @@ function isParentExpandableTemplate(nodes, parentUid) {
575
575
  return nodes.find(node => node.$$uid === parentUid).$$isExpandableTemplate;
576
576
  }
577
577
 
578
- var jsonFieldsInBrick = ["properties", "events", "lifeCycle", "params", "if", "transform"];
578
+ var jsonFieldsInBrick = ["properties", "events", "lifeCycle", "params", "if", "transform", "dataSource"];
579
579
  var yamlFieldsInBrick = ["permissionsPreCheck", "transformFrom"];
580
580
  var ignoredFieldsInBrick = ["brick", "template", "portal", "slots", "id", "children", "instanceId"];
581
581
  // The reverse operation of *normalize*.
@@ -1065,7 +1065,7 @@ class BuilderDataManager {
1065
1065
  * 如果是属于拖动进某个节点中, 默认使用 content
1066
1066
  * 其他情况, 使用被拖拽节点的mountPoint
1067
1067
  */
1068
- var mountPoint = isDragRoot ? "bricks" : dragStatus === "inside" ? "content" : dragOverEdge.mountPoint;
1068
+ var mountPoint = isDragRoot ? "bricks" : dragStatus === "inside" ? "" : dragOverEdge.mountPoint;
1069
1069
  var parentEdge = edges.find(item => item.child === dragOverNodeUid);
1070
1070
  /**
1071
1071
  * 如果是根节点, parentUid强制等于rootId