feat: echarts按需引入 (#332)
This commit is contained in:
parent
122f584cad
commit
6431cc3210
@ -1,6 +1,25 @@
|
|||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts/core'
|
||||||
|
import { BarChart, PieChart, GaugeChart } from 'echarts/charts'
|
||||||
|
import {
|
||||||
|
TooltipComponent,
|
||||||
|
TitleComponent,
|
||||||
|
GridComponent,
|
||||||
|
LegendComponent
|
||||||
|
} from 'echarts/components'
|
||||||
|
import { CanvasRenderer } from 'echarts/renderers'
|
||||||
import { getOption } from '@/management/config/chartConfig'
|
import { getOption } from '@/management/config/chartConfig'
|
||||||
|
|
||||||
|
echarts.use([
|
||||||
|
TitleComponent,
|
||||||
|
TooltipComponent,
|
||||||
|
GridComponent,
|
||||||
|
LegendComponent,
|
||||||
|
BarChart,
|
||||||
|
PieChart,
|
||||||
|
GaugeChart,
|
||||||
|
CanvasRenderer
|
||||||
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绘制图表
|
* 绘制图表
|
||||||
* @param {Object} el
|
* @param {Object} el
|
||||||
|
Loading…
Reference in New Issue
Block a user