diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index f81bd6c3656c86d47ed5018b509f5a0c747502cb..3ddbc8e579a1f926bc89029e0a21433c37e77cb6 100644 --- a/src/components/Ellipsis/index.js +++ b/src/components/Ellipsis/index.js @@ -6,7 +6,7 @@ import styles from './index.less'; /* eslint react/no-did-mount-set-state: 0 */ /* eslint no-param-reassign: 0 */ -const isSupportLineClamp = !(document.body.style.webkitLineClamp !== undefined); +const isSupportLineClamp = (document.body.style.webkitLineClamp !== undefined); const EllipsisText = ({ text, length, tooltip, ...other }) => { if (typeof text !== 'string') {