fix(版本对比): 颜色加透明度

--user=郭雨琦 颜色加透明度
This commit is contained in:
guoyuqi 2022-01-20 15:52:39 +08:00 committed by song-tianyang
parent 95569376ed
commit ef268e5d73
1 changed files with 6 additions and 6 deletions

View File

@ -76,12 +76,12 @@ function changeStyle(diffNode){
if(diffNode.oldNodeArray[i].className==='cell'){
let rowVnodeElm = findRowVnodeElm(diffNode.oldNodeArray[i]);
if(isDef(rowVnodeElm.style)){
rowVnodeElm.style.setProperty("background-color","rgb(241,200,196)",'important')
rowVnodeElm.style.setProperty("background-color","rgb(241,200,196,0.45)",'important')
}else if(isDef(rowVnodeElm.parentNode.style)&&rowVnodeElm!=='comment'){
rowVnodeElm.parentNode.style.setProperty("background-color","rgb(241,200,196)",'important')
rowVnodeElm.parentNode.style.setProperty("background-color","rgb(241,200,196,0.45)",'important')
}
}else{
changeStyleBySubset(diffNode.oldNodeArray[i],"rgb(241,200,196)");
changeStyleBySubset(diffNode.oldNodeArray[i],"rgb(241,200,196,0.45)");
}
}
@ -92,12 +92,12 @@ function changeStyle(diffNode){
if(diffNode.nodeArray[i].className==='cell'){
let rowVnodeElm = findRowVnodeElm(diffNode.nodeArray[i]);
if(isDef(rowVnodeElm.style)){
rowVnodeElm.style.setProperty("background-color","rgb(215, 243, 215)",'important')
rowVnodeElm.style.setProperty("background-color","rgb(121, 225, 153,0.3)",'important')
}else if(isDef(rowVnodeElm.parentNode.style)&&rowVnodeElm!=='comment'){
rowVnodeElm.parentNode.style.setProperty("background-color","rgb(215, 243, 215)",'important')
rowVnodeElm.parentNode.style.setProperty("background-color","rgb(121, 225, 153,0.3)",'important')
}
}else{
changeStyleBySubset(diffNode.nodeArray[i],"rgb(215, 243, 215)");
changeStyleBySubset(diffNode.nodeArray[i],"rgb(121, 225, 153,0.3)");
}
}
}