Browse Source

fixed isSupportLineClamp’s judgment (#240)

pull/245/head
huaxiabuluo 8 years ago
committed by niko
parent
commit
591beb1db4
  1. 2
      src/components/Ellipsis/index.js

2
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') {

Loading…
Cancel
Save