From 9703091a898606d32452e800811db33c3a611ef5 Mon Sep 17 00:00:00 2001 From: QiShaoXuan Date: Tue, 27 Dec 2022 14:38:17 +0800 Subject: [PATCH] fix: style helper text ellipsis error --- packages/app/src/styles/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/styles/helper.ts b/packages/app/src/styles/helper.ts index 436fa250f5..826b222a5c 100644 --- a/packages/app/src/styles/helper.ts +++ b/packages/app/src/styles/helper.ts @@ -106,7 +106,7 @@ export const textEllipsis = (lineNum = 1): CSSProperties => { display: '-webkit-box', wordBreak: 'break-all', WebkitBoxOrient: 'vertical', - WebkitLineClamp: '$lineNum', //需要显示的行数 + WebkitLineClamp: `${lineNum}`, //需要显示的行数 overflow: 'hidden', textOverflow: 'ellipsis', };