feat(tool): eclipse

This commit is contained in:
zhangheng
2026-04-09 18:21:12 +08:00
parent d1fac5d158
commit d6183a0036
5 changed files with 210 additions and 8 deletions

View File

@@ -180,6 +180,8 @@ const TopTools = (
const {
isView,
setIsView,
renderMode,
setRenderMode,
saveCurrentScale,
setSaveCurrentScale,
showMultiFrame,
@@ -1896,10 +1898,16 @@ const TopTools = (
<SquarePen style={{ width: 20, height: 20 }} />
</ActionIcon>
)}
<Eclipse
style={{ width: 20, height: 20, display: "none" }}
color="gray"
/>
<Tooltip label={renderMode ? "关闭渲染" : "开启渲染"}>
<ActionIcon
variant="transparent"
c={renderMode ? "var(--mantine-color-text)" : "gray"}
onClick={() => {
setRenderMode(!renderMode)
}}>
<Eclipse style={{ width: 20, height: 20 }} />
</ActionIcon>
</Tooltip>
<CopySlash style={{ width: 20, height: 20, display: "none" }} />
</Flex>
<Flex