Skip to content

Commit

Permalink
fix: remove prototype inject
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed May 17, 2024
1 parent 9dcfa74 commit 3370f5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/designer/src/components/components-popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const ComponentsPopover = observer(
type = 'inner',
title = '添加组件',
isControlled = false,
prototype: outPrototype,
children,
...popoverProps
}: ComponentsPopoverProps) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/designer/src/simulator/selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ function SelectionBox({ showActions, actions, data }: SelectionBoxProps) {
style={style}
>
<>
<ComponentsPopover type="before" prototype={prototype}>
<ComponentsPopover type="before">
<Tooltip title={`在 ${selectedNodeName} 的前方添加兄弟节点`}>
<SelectionHelper icon={<PlusOutlined />} css={topAddSiblingBtnStyle} />
</Tooltip>
</ComponentsPopover>
<ComponentsPopover type="after" prototype={prototype}>
<ComponentsPopover type="after">
<Tooltip title={`在 ${selectedNodeName} 的后方添加兄弟节点`}>
<SelectionHelper icon={<PlusOutlined />} css={bottomAddSiblingBtnStyle} />
</Tooltip>
Expand Down Expand Up @@ -197,7 +197,7 @@ function SelectionBox({ showActions, actions, data }: SelectionBoxProps) {
/>
<SelectionToolSet>{!isPage && actions}</SelectionToolSet>
{prototype.hasChildren !== false && (
<ComponentsPopover prototype={prototype}>
<ComponentsPopover>
<Tooltip title="快捷添加子元素">
<SelectionHelper icon={<PlusOutlined />} />
</Tooltip>
Expand Down

0 comments on commit 3370f5b

Please sign in to comment.