diff --git a/src/components/Charts/Radar/index.js b/src/components/Charts/Radar/index.js index 1131ac222d5a46a13db73690610813f1e026a2bc..1754f95031f5c701d9796fcb38d66aaef511755c 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 cacedbce496cd2b4c1ddc986c68a817b9bdc094c..24d209d76d8befb0c2ad58a00914d4f7c8a73bec 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 c6e3f32d263a01016d6c84ec8e6224ee66396067..5c48c16df42bb81c7059d1c08da930ea1a0f7d29 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}