gistree 레이어 옆 이미지 추가

This commit is contained in:
JIeunhuh
2025-07-03 18:02:11 +09:00
parent ed96df4b22
commit 03179ede64
2 changed files with 7 additions and 4 deletions
@@ -170,7 +170,7 @@ export default React.memo(function GisTree({ checkedNodes = [], setCheckedNodes
image.src = canvas.toDataURL('image/png'); image.src = canvas.toDataURL('image/png');
return image; return image;
}; };
if (!treeData || treeData.length === 0) return null; if (!treeData || treeData.length === 0) return null;
return ( return (
@@ -203,6 +203,7 @@ export default React.memo(function GisTree({ checkedNodes = [], setCheckedNodes
<input type="checkbox" checked={checked.includes(node.id)} onChange={() => handleCheck(node.id)} className="cursor-pointer" /> <input type="checkbox" checked={checked.includes(node.id)} onChange={() => handleCheck(node.id)} className="cursor-pointer" />
{node.icon && <span>{node.icon}</span>} {node.icon && <span>{node.icon}</span>}
<span className="text-[1.3rem] font-medium text-label">{node.text}</span> <span className="text-[1.3rem] font-medium text-label">{node.text}</span>
{depth > 0 && <span><img className="cursor-pointer w-5 h-5" src='/images/map/layericon/Layer_Select_BTN.png' onClick={()=>{}} alt={node.text}></img></span>}
</div> </div>
)} )}
sort={(a, b) => { sort={(a, b) => {
@@ -40,7 +40,8 @@ export default function UiPageNations(commonPageNationsProps: CommonPageNationsP
<PaginationItem> <PaginationItem>
<PaginationPrevious <PaginationPrevious
href="#" href="#"
onClick={() => { onClick={(e) => {
e.preventDefault();
if (startPage > 1) handlePageChange(startPage - 1); if (startPage > 1) handlePageChange(startPage - 1);
}} }}
/> />
@@ -53,7 +54,7 @@ export default function UiPageNations(commonPageNationsProps: CommonPageNationsP
<PaginationLink <PaginationLink
href="#" href="#"
isActive={pageNum === pageProps.cur} isActive={pageNum === pageProps.cur}
onClick={() => handlePageChange(pageNum)} onClick={(e) => {e.preventDefault(); handlePageChange(pageNum)}}
> >
{pageNum} {pageNum}
</PaginationLink> </PaginationLink>
@@ -65,7 +66,8 @@ export default function UiPageNations(commonPageNationsProps: CommonPageNationsP
<PaginationItem> <PaginationItem>
<PaginationNext <PaginationNext
href="#" href="#"
onClick={() => { onClick={(e) => {
e.preventDefault();
if (endPage < totalPages) handlePageChange(endPage + 1); if (endPage < totalPages) handlePageChange(endPage + 1);
}} }}
/> />