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', };