소스 검색

打印时autoheight的style隐藏bug

TonyKang 5 년 전
부모
커밋
544ff943cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/public/report/js/rpt_print.js

+ 1 - 1
app/public/report/js/rpt_print.js

@@ -134,7 +134,7 @@ let rptPrintHelper = {
 
 function getActualBorderStyle(cell, styles, mergeBorderStyle, pageBorderArea, borderStr) {
     let rst = styles[cell[JV.PROP_STYLE]][borderStr];
-    if (parseFloat(rst[JV.PROP_LINE_WEIGHT]) === 1) {
+    if (rst && parseFloat(rst[JV.PROP_LINE_WEIGHT]) === 1) {
         rst[JV.PROP_LINE_WEIGHT] = 0.5;
     }
     if (mergeBorderStyle) {