From 3bc5c54cc9dc416d5f1beced289c36e4a8f33581 Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Thu, 19 Apr 2018 17:24:21 +0800 Subject: [PATCH] add default Charts export - to support: import Charts from 'ant-design-pro/lib/Charts'; --- src/components/Charts/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/components/Charts/index.js b/src/components/Charts/index.js index 0fbf0144..cacedbce 100644 --- a/src/components/Charts/index.js +++ b/src/components/Charts/index.js @@ -15,7 +15,24 @@ import TimelineChart from './TimelineChart'; const yuan = val => `¥ ${numeral(val).format('0,0')}`; +const Charts = { + yuan, + Bar, + Pie, + Gauge, + Radar, + MiniBar, + MiniArea, + MiniProgress, + ChartCard, + Field, + WaterWave, + TagCloud, + TimelineChart, +}; + export { + Charts as default, yuan, Bar, Pie, -- GitLab