From 7126de929cbe263179b8ae9155cda0d87e0d5545 Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 23 Apr 2018 12:27:17 +0800 Subject: [PATCH] getLengendData => getLegendData --- src/components/Charts/Radar/index.js | 4 ++-- src/components/Charts/index.js | 15 +++++++++++++++ src/layouts/PageHeaderLayout.js | 6 +++--- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/components/Charts/Radar/index.js b/src/components/Charts/Radar/index.js index 1131ac22..1754f950 100644 --- a/src/components/Charts/Radar/index.js +++ b/src/components/Charts/Radar/index.js @@ -19,7 +19,7 @@ export default class Radar extends Component { componentDidUpdate(preProps) { if (this.props.data !== preProps.data) { - this.getLengendData(); + this.getLegendData(); } } @@ -28,7 +28,7 @@ export default class Radar extends Component { }; // for custom lengend view - getLengendData = () => { + getLegendData = () => { if (!this.chart) return; const geom = this.chart.getAllGeoms()[0]; // 获取所有的图形 const items = geom.get('dataArray') || []; // 获取图形对应的 diff --git a/src/components/Charts/index.js b/src/components/Charts/index.js index cacedbce..24d209d7 100644 --- a/src/components/Charts/index.js +++ b/src/components/Charts/index.js @@ -47,3 +47,18 @@ export { TagCloud, TimelineChart, }; +export default { + yuan, + Bar, + Pie, + Gauge, + Radar, + MiniBar, + MiniArea, + MiniProgress, + ChartCard, + Field, + WaterWave, + TagCloud, + TimelineChart, +}; diff --git a/src/layouts/PageHeaderLayout.js b/src/layouts/PageHeaderLayout.js index c6e3f32d..5c48c16d 100644 --- a/src/layouts/PageHeaderLayout.js +++ b/src/layouts/PageHeaderLayout.js @@ -3,16 +3,16 @@ import { Link } from 'dva/router'; import PageHeader from '../components/PageHeader'; import GridContent from './GridContent'; import styles from './PageHeaderLayout.less'; -import MeunContext from './MeunContext'; +import MenuContext from './MeunContext'; export default ({ children, wrapperClassName, top, ...restProps }) => (
{top} - + {value => { return ; }} - + {children ? (
{children} -- GitLab