xy-map 1.0.43 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "地图组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -16,16 +16,19 @@
16
16
  <i class="mr-5"
17
17
  :class="item.icon"></i>{{item.name}}
18
18
  </div>
19
- <div class="ml-20"
20
- @click="drawDelete"
21
- title="删除">
22
- <i class="el-icon-close mr-5"></i>删除
23
- </div>
24
- <div class="ml-20"
25
- @click="clear"
26
- title="清空">
27
- <i class="el-icon-delete mr-5"></i>清空
28
- </div>
19
+
20
+ <template v-if="showDeleteBtn">
21
+ <div class="ml-20"
22
+ @click="drawDelete"
23
+ title="删除">
24
+ <i class="el-icon-close mr-5"></i>删除
25
+ </div>
26
+ <div class="ml-20"
27
+ @click="clear"
28
+ title="清空">
29
+ <i class="el-icon-delete mr-5"></i>清空
30
+ </div>
31
+ </template>
29
32
 
30
33
  <map-full-screen class="ml-20"
31
34
  dom="fullScreen"
@@ -59,6 +62,10 @@ export default {
59
62
  showFullBtn: { // 全屏按钮
60
63
  type: Boolean,
61
64
  default: true,
65
+ },
66
+ showDeleteBtn: { // 删除按钮
67
+ type: Boolean,
68
+ default: true,
62
69
  }
63
70
  },
64
71
  data () {
@@ -166,6 +173,7 @@ export default {
166
173
  },
167
174
  select (e) {
168
175
  this.activeFeatures = e.features
176
+ console.log('选中对象', this.activeFeatures)
169
177
  this.$emit('select', e.features)
170
178
  }
171
179
  }