Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(bug): bug
Browse files Browse the repository at this point in the history
bug

fix #435
  • Loading branch information
wpxp123456 committed Jan 11, 2021
1 parent 7cecb12 commit 025823b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/global/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,10 @@ let cellRender = function(r, c, start_r, start_c, end_r, end_c, value, luckyshee
luckysheetTableContent.fillStyle = checksCF["textColor"];
}

//若单元格格式为自定义数字格式([red]) 文本颜色为红色
if(cell.ct && cell.ct.fa && cell.ct.fa.indexOf('[Red]') > -1 && cell.ct.t == 'n' && cell.v < 0){
luckysheetTableContent.fillStyle = '#ff0000';
}

cellTextRender(
textInfo,
Expand Down

0 comments on commit 025823b

Please sign in to comment.