-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
146 additions
and
302 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { observer } from "mobx-react-lite"; | ||
// import { MainTools } from "@/pages/EditPage/components/Tools/Tools"; | ||
import { stores as store } from "@/pages/EditPage/store/main"; | ||
import Icon from "@/HbsUI/Icon"; | ||
|
||
import "./index.less"; | ||
|
||
const BottomTools = () => { | ||
/** 尺子 */ | ||
const toggleRuler = () => { | ||
store.canvasStore.toggleRuler(); | ||
}; | ||
|
||
/** 隐藏|显示 安全线 */ | ||
const toggleClipLine = () => { | ||
store.canvasStore.toggleClipLine(); | ||
}; | ||
|
||
/** 出血线 */ | ||
const toggleSafeLine = () => { | ||
store.canvasStore.toggleSafeLine(); | ||
}; | ||
|
||
return ( | ||
<> | ||
<div className="section-bottom-tool"> | ||
<div onClick={toggleSafeLine}> | ||
<Icon fontSize={18} color="grey" icon="jiandao" /> | ||
</div> | ||
<div onClick={toggleClipLine}> | ||
<Icon fontSize={18} icon="dunpaibaowei_o" /> | ||
</div> | ||
<div onClick={toggleRuler}> | ||
<Icon fontSize={18} icon="ruler" /> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default observer(BottomTools); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.section-bottom-tool{ | ||
position: absolute; | ||
bottom: 0; | ||
right: 0; | ||
width: 100%; | ||
height: 48px; | ||
border: 1px solid #f5f5f5; | ||
border-top: none; | ||
display: flex; | ||
gap: 24px; | ||
align-items: center; | ||
padding: 0 24px; | ||
color: black; | ||
justify-content: center; | ||
.icon{ | ||
cursor: pointer; | ||
color: pink; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.