From 025823b9f386c8048aa44b62f076a739eaa980c0 Mon Sep 17 00:00:00 2001 From: wpxp123456 <2677556700@qq.com> Date: Mon, 11 Jan 2021 15:37:50 +0800 Subject: [PATCH] fix(bug): bug bug fix #435 --- src/global/draw.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/global/draw.js b/src/global/draw.js index 2ca19874e..b9408c3c1 100644 --- a/src/global/draw.js +++ b/src/global/draw.js @@ -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,