<template>
  <div>
    <div class="echart-box">
      <Map
        :table-headers="TABLEHEADER['1']"
        download-name="中国地图"
        :callback="hanlderEchartCallback"
        @cellClick="handlerCellClick"
      >
        <span>中国地图</span>
      </Map>
    </div>
  </div>
</template>

<script>
import { Map } from '@p/index.js'
import TABLEHEADER from '@u/echartTableHeader.js'
export default {
  name: 'MapPage',
  components: {
    Map
  },
  data() {
    return {
      TABLEHEADER: TABLEHEADER
    }
  },
  methods: {
    hanlderEchartCallback(params) {
      console.log(params)
    },
    handlerCellClick(params) {
      // 表格跳转 row, column  横纵参数需求什么自己拿什么
      console.log(params)
    }
  }
}
</script>

<style>
/* .echart-box {
  height: 400px;
  width: 800px;
  margin-bottom: 20px;
} */
</style>
