Qselect 수정 및 배치면 초기설정 팝업 select disabled 추가

This commit is contained in:
김창수 2025-01-20 17:16:22 +09:00
parent 74051e7f36
commit 8ca4a70e4a
5 changed files with 29 additions and 12 deletions

View File

@ -83,13 +83,13 @@ export default function CanvasPage() {
{/* <CanvasContextMenu/> */} {/* <CanvasContextMenu/> */}
{/* 패널 배치 집계 */} {/* 패널 배치 집계 */}
<Penal01/> {/* <Penal01/> */}
<Penal02/> {/* <Penal02/> */}
<Penal03/> {/* <Penal03/> */}
<Penal04/> {/* <Penal04/> */}
{/* 배치면 초기 설정 */} {/* 배치면 초기 설정 */}
{/* <PlacementSettingPop/> */} <PlacementSettingPop/>
{/* 캔버스 기본 셋팅 */} {/* 캔버스 기본 셋팅 */}
{/* {modalOption.option && <SettingModal01/>} */} {/* {modalOption.option && <SettingModal01/>} */}
@ -106,7 +106,7 @@ export default function CanvasPage() {
{/* <PropertiesSetting/> */} {/* <PropertiesSetting/> */}
{/* 지붕형상 설정 */} {/* 지붕형상 설정 */}
{/* <RoofShapeOption/> */} <RoofShapeOption/>
{/* 지붕형상 수동 설정 */} {/* 지붕형상 수동 설정 */}
{/* <ManualRoofShape/> */} {/* <ManualRoofShape/> */}
@ -135,7 +135,7 @@ export default function CanvasPage() {
{/* <SlopeOption/> */} {/* <SlopeOption/> */}
{/* 배치면 그리기 */} {/* 배치면 그리기 */}
{/* <ArrangementSetting/> */} <ArrangementSetting/>
{/* 면형상 배치 */} {/* 면형상 배치 */}
{/* <PlaneShapeOption/> */} {/* <PlaneShapeOption/> */}
@ -158,13 +158,13 @@ export default function CanvasPage() {
{/* <DrawingFlow/> */} {/* <DrawingFlow/> */}
{/* 지붕모듈선택 */} {/* 지붕모듈선택 */}
{/* <RoofModuleOption/> */} <RoofModuleOption/>
{/* 육지붕모듈 선택 */} {/* 육지붕모듈 선택 */}
{/* <HexagonalRoofOption/> */} {/* <HexagonalRoofOption/> */}
{/* 회로 및 가대설정 */} {/* 회로 및 가대설정 */}
{/* <CircuitStandSetting/> */} <CircuitStandSetting/>
{/* 모듈 부가기능 */} {/* 모듈 부가기능 */}

View File

@ -95,7 +95,7 @@ export default function PlacementSettingPop(){
<div className="flex-ment"> <div className="flex-ment">
<span>垂木の間隔</span> <span>垂木の間隔</span>
<div className="grid-select no-flx" style={{width: '160px'}}> <div className="grid-select no-flx" style={{width: '160px'}}>
<Qselect title={'세로 455mm이하'} option={SelectOption04}/> <Qselect title={'세로 455mm이하'} option={SelectOption04} disabled={true}/>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,11 +1,18 @@
'use client' 'use client'
import { useState } from "react" import { useState } from "react"
export default function Qselect({title, option}){ export default function Qselect({title, option, disabled}){
const [selectAct, setSelectAct] = useState(false); const [selectAct, setSelectAct] = useState(false);
const disabledCheck = () => {
if(disabled){
setSelectAct(false)
}else{
setSelectAct(!selectAct);
}
}
return( return(
<div className={`sort-select ${selectAct ? 'active' : ''}`} onClick={() => setSelectAct(!selectAct)}> <div className={`sort-select ${selectAct ? 'active' : ''} ${disabled ? 'disabled' : ''}`} onClick={disabledCheck}>
<p>{title}</p> <p>{title}</p>
<ul className="select-item-wrap"> <ul className="select-item-wrap">
{option.map((el, idx) => ( {option.map((el, idx) => (

View File

@ -253,6 +253,7 @@ export default function PublishPage() {
&#40;지붕형상 수동 설정, 배치면 그리기, 외벽선 작성, 오브젝트 배치, 동선이동 올림 내림, 지붕형상 설정, 지붕모듈 설정, 보조선 작성, 처마케라바 변경, 외벽선 편집 오프셋, 속성 변경, 실측치 설정 &#41; &#40;지붕형상 수동 설정, 배치면 그리기, 외벽선 작성, 오브젝트 배치, 동선이동 올림 내림, 지붕형상 설정, 지붕모듈 설정, 보조선 작성, 처마케라바 변경, 외벽선 편집 오프셋, 속성 변경, 실측치 설정 &#41;
</li> </li>
<li>*패널 배치 집계 수정</li> <li>*패널 배치 집계 수정</li>
<li>*Qselect 컴포넌트 수정 배치면 초기설정 selelct disabled 추가</li>
</ul> </ul>
</td> </td>
<td className="t-center">2024-10-28</td> <td className="t-center">2024-10-28</td>

View File

@ -414,6 +414,15 @@ button{
transform: translateY(-50%) rotate(-180deg); transform: translateY(-50%) rotate(-180deg);
} }
} }
&.disabled{
cursor: default;
p{
color: #aaa;
}
&::after{
opacity: 0.7;
}
}
} }
.select-light{ .select-light{