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

Merge branch 'master' into 'master'

Importing required components for echarts

See merge request csdn/csdn-datav!8
流水线 #6229 已通过 ,包含阶段
in 3 分9 秒
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 @@ ...@@ -5,7 +5,7 @@
</template> </template>
<script> <script>
// 引入echarts // 引入echarts
import * as echarts from "echarts"; import echarts from "@/components/echarts";
// 引入中国,城市地图 // 引入中国,城市地图
import { chinaJson,cityArr } from "../../../public/echarts/city.js" import { chinaJson,cityArr } from "../../../public/echarts/city.js"
export default { export default {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</template> </template>
<script> <script>
// 引入echarts // 引入echarts
import * as echarts from "echarts"; import echarts from "@/components/echarts";
// 引入中国,城市地图 // 引入中国,城市地图
import { chinaJson } from "../../../public/echarts/city.js" import { chinaJson } from "../../../public/echarts/city.js"
import Bus from "@/common/bus" import Bus from "@/common/bus"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册