From 7fde4e741b86b3fc3328b06ea6040c7a9b4231b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 6 Sep 2018 10:22:46 +0800 Subject: [PATCH] fix #2122 fix lint error --- src/components/Charts/Gauge/index.js | 3 ++- src/components/Charts/MiniArea/index.js | 3 ++- src/components/Charts/MiniBar/index.js | 2 +- src/components/Charts/TimelineChart/index.js | 3 ++- src/pages/Forms/AdvancedForm.js | 3 ++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/Charts/Gauge/index.js b/src/components/Charts/Gauge/index.js index 450de00c..2249211a 100644 --- a/src/components/Charts/Gauge/index.js +++ b/src/components/Charts/Gauge/index.js @@ -51,7 +51,6 @@ Shape.registerShape('point', 'pointer', { }, }); -export default @autoHeight() class Gauge extends React.Component { render() { @@ -164,3 +163,5 @@ class Gauge extends React.Component { ); } } + +export default Gauge; diff --git a/src/components/Charts/MiniArea/index.js b/src/components/Charts/MiniArea/index.js index 77a19a6f..d3209bec 100644 --- a/src/components/Charts/MiniArea/index.js +++ b/src/components/Charts/MiniArea/index.js @@ -3,7 +3,6 @@ import { Chart, Axis, Tooltip, Geom } from 'bizcharts'; import autoHeight from '../autoHeight'; import styles from '../index.less'; -export default @autoHeight() class MiniArea extends React.PureComponent { render() { @@ -105,3 +104,5 @@ class MiniArea extends React.PureComponent { ); } } + +export default MiniArea; diff --git a/src/components/Charts/MiniBar/index.js b/src/components/Charts/MiniBar/index.js index c9b56101..18e4d8c6 100644 --- a/src/components/Charts/MiniBar/index.js +++ b/src/components/Charts/MiniBar/index.js @@ -3,7 +3,6 @@ import { Chart, Tooltip, Geom } from 'bizcharts'; import autoHeight from '../autoHeight'; import styles from '../index.less'; -export default @autoHeight() class MiniBar extends React.Component { render() { @@ -49,3 +48,4 @@ class MiniBar extends React.Component { ); } } +export default MiniBar; diff --git a/src/components/Charts/TimelineChart/index.js b/src/components/Charts/TimelineChart/index.js index 1f7b43f7..b76e782f 100644 --- a/src/components/Charts/TimelineChart/index.js +++ b/src/components/Charts/TimelineChart/index.js @@ -5,7 +5,6 @@ import Slider from 'bizcharts-plugin-slider'; import autoHeight from '../autoHeight'; import styles from './index.less'; -export default @autoHeight() class TimelineChart extends React.Component { render() { @@ -121,3 +120,5 @@ class TimelineChart extends React.Component { ); } } + +export default TimelineChart; diff --git a/src/pages/Forms/AdvancedForm.js b/src/pages/Forms/AdvancedForm.js index a78afed8..f23ecdaa 100644 --- a/src/pages/Forms/AdvancedForm.js +++ b/src/pages/Forms/AdvancedForm.js @@ -57,7 +57,6 @@ const tableData = [ }, ]; -export default @connect(({ loading }) => ({ submitting: loading.effects['form/submitAdvancedForm'], })) @@ -308,3 +307,5 @@ class AdvancedForm extends PureComponent { ); } } + +export default AdvancedForm; -- GitLab