From cfa8063099d6d57b03ea8a854d7d67be9ed738f9 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Thu, 9 Nov 2017 14:45:54 +0800 Subject: [PATCH] Fixed Ellipsis PureComponent -> Component --- src/components/Ellipsis/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index 1c05b0bf..3fd16eec 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: '', -- GitLab