提交 190d94b6 编写于 作者: ylwdev's avatar ylwdev 💻

Merge branch 'master' into 'master'

Importing required components for echarts

See merge request !8
import * as echarts from 'echarts/core';
import { ScatterChart, LinesChart, EffectScatterChart } from 'echarts/charts';
import {
TooltipComponent,
GridComponent,
GeoComponent,
} from 'echarts/components';
import { LabelLayout, UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';
echarts.use([
TooltipComponent,
GridComponent,
GeoComponent,
ScatterChart,
LinesChart,
EffectScatterChart,
LabelLayout,
UniversalTransition,
CanvasRenderer
]);
export default echarts;
......@@ -5,7 +5,7 @@
</template>
<script>
// 引入echarts
import * as echarts from "echarts";
import echarts from "@/components/echarts";
// 引入中国,城市地图
import { chinaJson,cityArr } from "../../../public/echarts/city.js"
export default {
......
......@@ -5,7 +5,7 @@
</template>
<script>
// 引入echarts
import * as echarts from "echarts";
import echarts from "@/components/echarts";
// 引入中国,城市地图
import { chinaJson } from "../../../public/echarts/city.js"
import Bus from "@/common/bus"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册