|
|
|
@ -5,7 +5,14 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import * as echarts from "echarts";
|
|
|
|
|
// import * as echarts from 'echarts/core';
|
|
|
|
|
// import { MapChart } from 'echarts/charts'; // 地图图表类型
|
|
|
|
|
// import { TooltipComponent, TitleComponent } from 'echarts/components'; // 提示框组件和标题组件
|
|
|
|
|
// import { CanvasRenderer } from 'echarts/renderers'; // 渲染器
|
|
|
|
|
import chinaJson from "@/assets/json/china.json"
|
|
|
|
|
|
|
|
|
|
// // 注册必须的组件
|
|
|
|
|
// echarts.use([MapChart, TooltipComponent, TitleComponent, CanvasRenderer]);
|
|
|
|
|
export default {
|
|
|
|
|
name: "ChinaMap",
|
|
|
|
|
props : {
|
|
|
|
|