|
@@ -7,8 +7,7 @@
|
|
|
@click="activeMenu = menu.key"
|
|
|
:class="{ active: menu.key === activeMenu }"
|
|
|
>
|
|
|
-
|
|
|
- {{ menu.text }}
|
|
|
+ {{ menu.text }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="canvas-layout">
|
|
@@ -30,6 +29,8 @@ const setCanvasSize = () => {
|
|
|
const menus = ref([
|
|
|
{ key: "road", text: "道路" },
|
|
|
{ key: "tag", text: "标注" },
|
|
|
+ { key: "measure", text: "测量线" },
|
|
|
+ { key: "backgroundImage", text: "背景图片" },
|
|
|
]);
|
|
|
const activeMenu = ref<string>(null);
|
|
|
|
|
@@ -43,7 +44,6 @@ onMounted(() => {
|
|
|
if (drawRef.value) {
|
|
|
drawRef.value.control.currentUI = activeMenu.value as any;
|
|
|
drawRef.value.control.updateEventNameForSelectUI();
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
});
|