removeLineInfoWindow.vue 584 Bytes
Newer Older
纪泽龙's avatar
纪泽龙 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<template>
  <div @mousedown.stop="deleteLine" class="wrapper">
    <el-button type="danger" icon="el-icon-delete" circle></el-button>
  </div>
</template>

<script>
export default {
  props: {
    map: {
      type: Object,
    },
    marker: {
      type: Object,
    },
  },
  created() {

  },
  methods: {
    deleteLine() {
      // console.log("999999")
      this.map.workerManAttrRemove(this.marker);
      this.marker.infoWindow.close();
      
    },
  },
};
</script>

<style  lang="scss" scoped>
.wrapper {
  width: 36px;
  height: 36px;
  // background: #fff;
}
</style>