Explorar el Código

fixed isSupportLineClamp’s judgment (#240)

huaxiabuluo hace 8 años
padre
commit
591beb1db4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/Ellipsis/index.js

+ 1 - 1
src/components/Ellipsis/index.js

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