diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index 1c05b0bf129cdca9e4a37a40ea7cf9a8c699a5dd..3fd16eec95037d3edf3d0cd3ec19e917a5ece6f1 100644 --- a/src/components/Ellipsis/index.js +++ b/src/components/Ellipsis/index.js @@ -1,4 +1,4 @@ -import React, { PureComponent } from 'react'; +import React, { Component } from 'react'; import { Tooltip } from 'antd'; import classNames from 'classnames'; import styles from './index.less'; @@ -32,7 +32,7 @@ const EllipsisText = ({ text, length, tooltip, ...other }) => { ); }; -export default class Ellipsis extends PureComponent { +export default class Ellipsis extends Component { state = { lineHeight: 0, text: '',