|
@@ -1,13 +1,24 @@
|
|
|
<template>
|
|
|
- <GeoTeleport :menus="menus" class="geo-teleport-use" v-if="geo.type !== VectorType.CurveRoadPoint" />
|
|
|
+ <GeoTeleport
|
|
|
+ :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 VectorCategory from "@/graphic/enum/VectorCategory";
|
|
|
|
|
|
const props = defineProps<{geo: FocusVector}>()
|
|
|
+const hideTypes = [
|
|
|
+ VectorType.RoadPoint,
|
|
|
+ VectorType.CurveRoadPoint,
|
|
|
+ VectorCategory.Point.NormalPoint
|
|
|
+]
|
|
|
+console.log(props)
|
|
|
const menus = [
|
|
|
{
|
|
|
key: 'del',
|