오류 문구 css 수정.
parent
fff91412b5
commit
1f712135e0
|
|
@ -317,4 +317,4 @@
|
|||
color: forestgreen;
|
||||
}
|
||||
.bookmark:hover{cursor: pointer}
|
||||
.errorText{color:red; font-size: x-small; vertical-align: bottom; padding-right: 10px;}
|
||||
.errorText{color:white; background-color: red; font-size: x-small; vertical-align: bottom; padding: 0 10px;}
|
||||
|
|
@ -78,7 +78,11 @@ function CodeViewer(props) {
|
|||
}
|
||||
|
||||
const chkboxControll = () => {
|
||||
debugger
|
||||
const flag = this.checked;
|
||||
const checkBoxList = document.querySelectorAll('.'+this.id.replace('chk', ''))
|
||||
checkBoxList.forEach((input)=>{
|
||||
input.checked = flag
|
||||
})
|
||||
}
|
||||
|
||||
const getCodeDetailInfo = useCallback((docCode) => {
|
||||
|
|
@ -134,6 +138,7 @@ function CodeViewer(props) {
|
|||
"class='titleCheckBox "+parentContCd+"' " +
|
||||
"id='"+item.cont_type_cd+"chk' " +
|
||||
`onclick="const flag = this.checked; document.querySelectorAll('.'+this.id.replace('chk', '')).forEach((input)=>{input.checked = flag})"` +
|
||||
// "onClick={chkboxControll} "+
|
||||
">"+item.full_content;
|
||||
if(item.cont_level===1 && item.cont_order !== 1){
|
||||
item.full_content = "<br>"+item.full_content;
|
||||
|
|
@ -174,7 +179,7 @@ function CodeViewer(props) {
|
|||
item.full_content = item.full_content.replace('<table ', '<table class="table table-bordered "')
|
||||
}
|
||||
if(item.error_cd !== null){
|
||||
item.full_content = "<div class='errorText'>"+item.error_cd+"</div>"+item.full_content;
|
||||
item.full_content = "<p class='errorText'>"+item.error_cd+"</p><br>"+item.full_content;
|
||||
}
|
||||
item.full_content = item.full_content+"<hr>"
|
||||
detailTag.push(
|
||||
|
|
|
|||
Loading…
Reference in New Issue