From 447bd509a85876ded9b33d0bb4fcf94adcf05b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Fri, 17 Nov 2023 16:53:31 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=B0=ED=8A=B8=20=ED=81=AC=EA=B8=B0=20?= =?UTF-8?q?=EC=B6=95=EC=86=8C=20=EB=AC=B8=EB=8B=A8=20=EC=B2=B4=ED=81=AC?= =?UTF-8?q?=EB=B0=95=EC=8A=A4=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/css/base.css | 2 +- .../src/pages/standardCode/viewer.js | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/egovframe-template-simple-react-contribution/src/css/base.css b/egovframe-template-simple-react-contribution/src/css/base.css index 6c59fe9..1e1a118 100644 --- a/egovframe-template-simple-react-contribution/src/css/base.css +++ b/egovframe-template-simple-react-contribution/src/css/base.css @@ -43,7 +43,7 @@ a:link, a:visited, a:hover, a:active {text-decoration: none;} .blind {position: absolute; left: -9999px; top: -9999px;} .skip {position: absolute; left: -9999px; top: -9999px;} -body {font-family: 'Noto Sans KR', sans-serif; font-size: 16px;} +body {font-family: 'Noto Sans KR', sans-serif; font-size: 14px;} button, textarea {font-family: 'Noto Sans KR', sans-serif;} button {cursor: pointer;} diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js index 3948456..0bf3c5b 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js @@ -76,6 +76,11 @@ function CodeViewer(props) { } ); } + + const chkboxControll = () => { + debugger + } + const getCodeDetailInfo = useCallback((docCode) => { console.groupCollapsed("EgovMain.getCodeDetailInfo()"); EgovNet.requestFetch( @@ -125,7 +130,14 @@ function CodeViewer(props) { } lastLevel = item.cont_level; parentContCd = parentContCd.trim(); - item.full_content = ""+item.full_content; + item.full_content = ""+item.full_content; + if(item.cont_level===1 && item.cont_order !== 1){ + item.full_content = "
"+item.full_content; + } } if(docLinkReg.test(item.full_content)){ const docCodeAry = item.full_content.match(docLinkReg); @@ -235,8 +247,8 @@ function CodeViewer(props) { } CodeViewer.defaultProps = { - docCode: 'KDS 24 14 30', - docName: '강교 설계기준(허용응력설계법)' + docCode: 'KDS 10 10 00', + docName: '설계기준 총칙' } export default CodeViewer;