mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 表格单元格下划线、删除线无法取消(#14)
This commit is contained in:
parent
1cdad3b82e
commit
32569c5a5c
@ -18,10 +18,13 @@ export const getTextStyle = (style?: TableCellStyle) => {
|
|||||||
align,
|
align,
|
||||||
} = style
|
} = style
|
||||||
|
|
||||||
|
let textDecoration = `${underline ? 'underline' : ''} ${strikethrough ? 'line-through' : ''}`
|
||||||
|
if (textDecoration === ' ') textDecoration = 'none'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fontWeight: bold ? 'bold' : 'normal',
|
fontWeight: bold ? 'bold' : 'normal',
|
||||||
fontStyle: em ? 'italic' : 'normal',
|
fontStyle: em ? 'italic' : 'normal',
|
||||||
textDecoration: `${underline ? 'underline' : ''} ${strikethrough ? 'line-through' : ''}`,
|
textDecoration,
|
||||||
color: color || '#000',
|
color: color || '#000',
|
||||||
backgroundColor: backcolor || '',
|
backgroundColor: backcolor || '',
|
||||||
fontSize: fontsize || '14px',
|
fontSize: fontsize || '14px',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user