upgrade dep: echarts@5.x

This commit is contained in:
Baorong Li
2021-03-17 17:28:05 +08:00
parent 0e36b6b7a0
commit b1f290ea32
10 changed files with 61 additions and 15 deletions
+7 -7
View File
@@ -14,10 +14,10 @@
"draftjs-to-html": "^0.9.0",
"draftjs-to-markdown": "^0.6.0",
"dva-model-extend": "^0.1.2",
"echarts": "^4.4.0",
"echarts-for-react": "^2.0.15-beta.1",
"echarts-gl": "^1.1.1",
"echarts-liquidfill": "^2.0.2",
"echarts": "^5.0.0",
"echarts-for-react": "^3.0.0",
"echarts-gl": "^2.0.2",
"echarts-liquidfill": "^3.0.0",
"enquire-js": "^0.2.1",
"highcharts-exporting": "^0.1.7",
"highcharts-more": "^0.1.7",
@@ -48,7 +48,7 @@
"babel-plugin-module-resolver": "^4.0.0",
"cross-env": "^7.0.0",
"eslint": "^7.0.0",
"eslint-config-react-app": "^5.0.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-flowtype": "^5.1.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
@@ -62,8 +62,8 @@
"prettier": "^2.0.0",
"stylelint": "^13.2.0",
"stylelint-config-prettier": "^8.0.0",
"stylelint-config-standard": "^20.0.0",
"typescript": "^3.8.3",
"stylelint-config-standard": "^21.0.0",
"typescript": "^4.2.3",
"umi": "^3.2.0"
},
"engines": {
@@ -1,7 +1,7 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
require('echarts/map/js/china.js')
require('./map/js/china.js')
const AirportCoordComponent = () => {
let geoCoordMap = {
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const currentData = [
[
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const CalendarComponent = () => {
const getVirtulData = year => {
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const GCalendarComponent = () => {
const getVirtulData = year => {
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const LunarCalendarComponent = () => {
const getOtion = () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
require('echarts/map/js/china.js')
require('./map/js/china.js')
class MapChartComponent extends React.Component {
constructor() {
@@ -1,7 +1,7 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const ThemeChartComponent = () => {
const option = {
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const TreemapComponent = () => {
let diskData = [
File diff suppressed because one or more lines are too long