remove dep highcharts-more/highcharts-exporting

This commit is contained in:
Baorong Li
2018-04-12 12:02:59 +08:00
parent 2ef1fa0367
commit d06ee20c47
3 changed files with 3 additions and 7 deletions
-2
View File
@@ -14,8 +14,6 @@
"echarts-for-react": "^2.0.8", "echarts-for-react": "^2.0.8",
"echarts-gl": "^1.1.0", "echarts-gl": "^1.1.0",
"echarts-liquidfill": "^2.0.0", "echarts-liquidfill": "^2.0.0",
"highcharts-exporting": "^0.1.2",
"highcharts-more": "^0.1.2",
"jsonp": "^0.2.1", "jsonp": "^0.2.1",
"lodash": "^4.17.5", "lodash": "^4.17.5",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
@@ -1,10 +1,8 @@
import React from 'react' import React from 'react'
import ReactHighcharts from 'react-highcharts' import ReactHighcharts from 'react-highcharts'
import highchartsMore from 'highcharts-more'
import highchartsExporting from 'highcharts-exporting'
highchartsMore(ReactHighcharts.Highcharts) require ('highcharts-more')(ReactHighcharts.Highcharts)
highchartsExporting(ReactHighcharts.Highcharts) require ('highcharts-exporting')(ReactHighcharts.Highcharts)
const config = { const config = {
chart: { chart: {
+1 -1
View File
@@ -32,7 +32,7 @@ const User = ({
item: modalType === 'create' ? {} : currentItem, item: modalType === 'create' ? {} : currentItem,
visible: modalVisible, visible: modalVisible,
maskClosable: false, maskClosable: false,
confirmLoading: loading.effects['user/update'], confirmLoading: loading.effects[`user/${modalType}`],
title: `${modalType === 'create' ? 'Create User' : 'Update User'}`, title: `${modalType === 'create' ? 'Create User' : 'Update User'}`,
wrapClassName: 'vertical-center-modal', wrapClassName: 'vertical-center-modal',
onOk (data) { onOk (data) {