🐛 修复longText报错问题

This commit is contained in:
xujiang 2021-01-04 15:07:22 +08:00
parent 82d4692edc
commit fe97dde620
2 changed files with 1 additions and 4 deletions

View File

@ -22,7 +22,6 @@ const LongText = memo((props: ILongTextConfig & { isTpl: boolean }) => {
</div>
) : (
<div
className={styles.textWrap}
style={{
color,
textIndent: indent + 'px',

View File

@ -10,9 +10,7 @@ const Text = memo((props: ITextConfig & { isTpl: boolean }) => {
<img src={logo} alt=""></img>
</div>
) : (
<div className={styles.textWrap} style={{ color, textAlign: align, fontSize, lineHeight }}>
{text}
</div>
<div style={{ color, textAlign: align, fontSize, lineHeight }}>{text}</div>
)}
</>
);