Skip to content

Commit

Permalink
fix(): set default mount point to empty, refine data icon
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Oct 24, 2024
1 parent 87f95b6 commit 1f375c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test("getWorkbenchDataTree for route", () => {
},
"icon": Object {
"color": "orange",
"icon": "link",
"icon": "database",
"lib": "antd",
"theme": "outlined",
},
Expand All @@ -86,7 +86,7 @@ test("getWorkbenchDataTree for route", () => {
},
"icon": Object {
"color": "orange",
"icon": "link",
"icon": "database",
"lib": "antd",
"theme": "outlined",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function getWorkbenchDataTree(
if (item.resolve) {
icon = {
lib: "antd",
icon: "link",
icon: "database",
theme: "outlined",
color: "orange",
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ export function LegacyPreviewContainer(
const parentNodes = getAllParentNodes(parentEdges);
onPreviewerDrop({
nodeData: transformNodeData,
mountPoint:
dragStatus === "inside" ? "content" : hoverEdge.mountPoint,
mountPoint: dragStatus === "inside" ? "" : hoverEdge.mountPoint,
dragStatus,
parentNodes: parentNodes.map((node) =>
omit(node, ["parent", "children"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
useHoverNodeUid,
} from "@next-core/editor-bricks-helper";
import {
isBrickNode,
isCustomTemplateNode,
isRouteNode,
isSnippetNode,
Expand Down Expand Up @@ -323,7 +322,7 @@ export function WorkbenchBrickTree({
overStatus === "inside"
? overNode.$$uid === rootNode.$$uid
? "bricks"
: "content"
: ""
: edges.find((item) => item.child === overUid).mountPoint;
onAddBrickDrop({
nodeData: nodeData,
Expand Down

0 comments on commit 1f375c5

Please sign in to comment.