Commit 591beb1d authored by huaxiabuluo's avatar huaxiabuluo Committed by niko

fixed isSupportLineClamp’s judgment (#240)

parent 7ffd48dd
...@@ -6,7 +6,7 @@ import styles from './index.less'; ...@@ -6,7 +6,7 @@ import styles from './index.less';
/* eslint react/no-did-mount-set-state: 0 */ /* eslint react/no-did-mount-set-state: 0 */
/* eslint no-param-reassign: 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 }) => { const EllipsisText = ({ text, length, tooltip, ...other }) => {
if (typeof text !== 'string') { if (typeof text !== 'string') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment