Skip to content

Commit

Permalink
fix: support set tid in setting form
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Mar 12, 2024
1 parent b60f0d0 commit 124141b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/designer/src/setting-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const headerProps = {
fontSize: '18px',
};

export const SettingPanel = observer(({ title = '设置面板', ...props }: SettingPanelProps) => {
export const SettingPanel = observer((props: SettingPanelProps) => {
const workspace = useWorkspace();
const designer = useDesigner();

Expand Down Expand Up @@ -79,7 +79,6 @@ export const SettingPanel = observer(({ title = '设置面板', ...props }: Sett

return (
<Panel
title={prototype?.title || title}
display={display}
flexDirection="column"
width="320px"
Expand All @@ -95,14 +94,15 @@ export const SettingPanel = observer(({ title = '设置面板', ...props }: Sett
key={workspace.selectSource.first.id}
model={formModel}
prototype={prototype}
showIdentifier={{
identifierKey: 'tid',
}}
{...props}
/>
) : (
<Box p="m">该节点没有可配置信息</Box>
<Box p="m">没有找到与该组件相关的配置信息</Box>
)
) : (
<Box p="m">请先选择一个节点</Box>
)}
) : null}
</Panel>
);
});

0 comments on commit 124141b

Please sign in to comment.