diff --git a/packages/designer/src/dnd/use-dnd.ts b/packages/designer/src/dnd/use-dnd.ts index 17aa388..b7802ce 100644 --- a/packages/designer/src/dnd/use-dnd.ts +++ b/packages/designer/src/dnd/use-dnd.ts @@ -137,6 +137,8 @@ export function useDnd({ const data = sandboxQuery.getDraggableParentsData(e.target as HTMLElement, true); if (data && data.id) { selectSource.select(data); + // 画布选中节点时,自动唤起 right-panel + designer.toggleRightPanel(true); } }; diff --git a/packages/designer/src/editor.tsx b/packages/designer/src/editor.tsx index 49fca49..983dc16 100644 --- a/packages/designer/src/editor.tsx +++ b/packages/designer/src/editor.tsx @@ -81,6 +81,7 @@ export const CodeEditor = observer((props: CodeEditorProps) => { designer.activeView === 'dual' ? { borderLeft: 'solid 1px var(--tango-colors-line2)', + borderRight: 'solid 1px var(--tango-colors-line2)', } : {};