Skip to content

Commit

Permalink
feat: 增加弹框收集器
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Nov 26, 2024
1 parent 2cce309 commit 38f30f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
20 changes: 11 additions & 9 deletions packages/editor/src/pages/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ const Editor = () => {
},
}}
>
<div className="designer-editor">
<div className="designer-editor" style={{ height: mode === 'preview' ? 'calc(100vh - 64px)' : 'calc(100vh - 104px)' }}>
<div
id="editor"
className="pageWrapper"
Expand Down Expand Up @@ -417,14 +417,16 @@ const Editor = () => {
});
}}
/>
{/* <FloatingCollector /> */}
<FloatingCollector
modalList={modalList}
drawerList={drawerList}
clickItem={handleFloateItemClick}
closeItem={handleFloateItemClose}
deleteItem={handleFloateItemDelete}
/>
{/* 弹框收集器 */}
{mode === 'edit' ? (
<FloatingCollector
modalList={modalList}
drawerList={drawerList}
clickItem={handleFloateItemClick}
closeItem={handleFloateItemClose}
deleteItem={handleFloateItemDelete}
/>
) : null}
</div>
);
};
Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/pages/editor/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
.designer-editor {
position: relative;
overflow: auto;
height: calc(100vh - 104px);
background-color: var(--mars-theme-bg-color);
/* 设置背景图像为重复的径向渐变,每个渐变代表一个点 */
background-image: radial-gradient(circle, rgba(185, 185, 185, 0.5) 1px, transparent 1px),
Expand Down

0 comments on commit 38f30f2

Please sign in to comment.