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 +1 -1
- package/src/package/draw/index.vue +18 -10
package/package.json
CHANGED
|
@@ -16,16 +16,19 @@
|
|
|
16
16
|
<i class="mr-5"
|
|
17
17
|
:class="item.icon"></i>{{item.name}}
|
|
18
18
|
</div>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
}
|