|
@@ -1,35 +1,35 @@
|
|
|
<template>
|
|
|
<GeoTeleport
|
|
|
- :menus="menus"
|
|
|
- class="geo-teleport-use"
|
|
|
- v-if="!hideTypes.includes(geo.type) && !hideTypes.includes(geo.category)"
|
|
|
+ :menus="menus"
|
|
|
+ class="geo-teleport-use"
|
|
|
+ v-if="!hideTypes.includes(geo.type) && !hideTypes.includes(geo.category)"
|
|
|
/>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import GeoTeleport from "@/views/graphic/geos/geo-teleport.vue";
|
|
|
-import {drawRef, FocusVector, VectorType} from '@/hook/useGraphic'
|
|
|
-import GeoActions from "@/graphic/enum/GeoActions"
|
|
|
+import { drawRef, FocusVector, VectorType } from "@/hook/useGraphic";
|
|
|
+import GeoActions from "@/graphic/enum/GeoActions";
|
|
|
import VectorCategory from "@/graphic/enum/VectorCategory";
|
|
|
|
|
|
-const props = defineProps<{geo: FocusVector}>()
|
|
|
+const props = defineProps<{ geo: FocusVector }>();
|
|
|
const hideTypes = [
|
|
|
VectorType.CrossPoint,
|
|
|
// VectorType.RoadPoint,
|
|
|
// VectorType.CurveRoadPoint,
|
|
|
- VectorCategory.Point.NormalPoint
|
|
|
-]
|
|
|
-console.log(props)
|
|
|
+ // VectorCategory.Point.NormalPoint
|
|
|
+];
|
|
|
+console.log(props);
|
|
|
const menus = [
|
|
|
{
|
|
|
- key: 'del',
|
|
|
+ key: "del",
|
|
|
text: "删除",
|
|
|
- icon: 'del',
|
|
|
+ icon: "del",
|
|
|
onClick: () => {
|
|
|
- drawRef.value.uiControl.handleGeo(GeoActions.DeleteAction)
|
|
|
- }
|
|
|
- }
|
|
|
-]
|
|
|
+ drawRef.value.uiControl.handleGeo(GeoActions.DeleteAction);
|
|
|
+ },
|
|
|
+ },
|
|
|
+];
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|