- 외벽선 설정 팝업 수정
This commit is contained in:
parent
12da0a1345
commit
0d4edc84e3
@ -111,7 +111,7 @@ export default function CanvasMenu(props) {
|
||||
</div>
|
||||
{menuNumber !== 4 && (
|
||||
<div className={`vertical-horizontal ${vertical ? 'on' : ''}`}>
|
||||
<span>{getMessage('plan.mode.vertical.horizontal')}</span>
|
||||
<span>{getMessage(vertical ? 'plan.mode.vertical.horizontal' : 'plan.mode.free')}</span>
|
||||
<button onClick={() => setVertical(!vertical)}>{vertical ? 'ON' : 'OFF'}</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
import { ToggleonMouse } from '@/components/header/Header'
|
||||
import { useMessage } from '@/hooks/useMessage'
|
||||
import { useState } from 'react'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
export default function MenuDepth01(props) {
|
||||
const { setShowOutlineModal, type } = props
|
||||
@ -10,11 +10,15 @@ export default function MenuDepth01(props) {
|
||||
const [activeMenu, setActiveMenu] = useState()
|
||||
const onClickMenu = (menuNum) => {
|
||||
setActiveMenu(menuNum)
|
||||
if (type === 'outline' && menuNum === 0) {
|
||||
setShowOutlineModal(true)
|
||||
if (type === 'outline') {
|
||||
setShowOutlineModal(menuNum === 0)
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
setActiveMenu(null)
|
||||
}, [type])
|
||||
|
||||
const menuInfo = {
|
||||
outline: [
|
||||
// 지붕덮개
|
||||
|
||||
@ -53,6 +53,7 @@
|
||||
"plan.menu.simulation.excel": "Excel",
|
||||
"plan.menu.simulation.pdf": "PDF",
|
||||
"plan.mode.vertical.horizontal": "垂直水平モード",
|
||||
"plan.mode.free": "프리 모드(JA)",
|
||||
"modal.canvas.setting": "Canvas設定",
|
||||
"modal.canvas.setting.display": "ディスプレイ設定",
|
||||
"modal.canvas.setting.font.plan": " フォントと図面サイズの設定",
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
"plan.menu.simulation.excel": "Excel",
|
||||
"plan.menu.simulation.pdf": "PDF",
|
||||
"plan.mode.vertical.horizontal": "수직 수평 모드",
|
||||
"plan.mode.free": "프리 모드",
|
||||
"modal.canvas.setting": "Canvas 설정",
|
||||
"modal.canvas.setting.display": "디스플레이 설정",
|
||||
"modal.canvas.setting.font.plan": "글꼴 및 도면 크기 설정",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user