Sfoglia il codice sorgente

控制浏览器打印的线粗

TonyKang 5 anni fa
parent
commit
de698da16e
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      app/public/report/js/rpt_print.js

+ 3 - 0
app/public/report/js/rpt_print.js

@@ -93,6 +93,9 @@ 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) {
+        rst[JV.PROP_LINE_WEIGHT] = 0.5;
+    }
     if (mergeBorderStyle) {
         if (parseFloat(cell[JV.PROP_AREA][borderStr]) === parseFloat(pageBorderArea[borderStr])) {
             if (borderStr === JV.PROP_LEFT || borderStr === JV.PROP_RIGHT) {