From 32569c5a5c3768a08b8e0e3808ebaf0267a42638 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Fri, 9 Apr 2021 20:14:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E6=A0=BC=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=E4=B8=8B=E5=88=92=E7=BA=BF=E3=80=81=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=BA=BF=E6=97=A0=E6=B3=95=E5=8F=96=E6=B6=88=EF=BC=88#14?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/element/TableElement/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/components/element/TableElement/utils.ts b/src/views/components/element/TableElement/utils.ts index 9e37a484..bf489cb0 100644 --- a/src/views/components/element/TableElement/utils.ts +++ b/src/views/components/element/TableElement/utils.ts @@ -17,11 +17,14 @@ export const getTextStyle = (style?: TableCellStyle) => { fontname, align, } = style + + let textDecoration = `${underline ? 'underline' : ''} ${strikethrough ? 'line-through' : ''}` + if (textDecoration === ' ') textDecoration = 'none' return { fontWeight: bold ? 'bold' : 'normal', fontStyle: em ? 'italic' : 'normal', - textDecoration: `${underline ? 'underline' : ''} ${strikethrough ? 'line-through' : ''}`, + textDecoration, color: color || '#000', backgroundColor: backcolor || '', fontSize: fontsize || '14px',