Преглед на файлове

开放直线端点删除

bill преди 2 години
родител
ревизия
ecf703f3a5
променени са 1 файла, в които са добавени 15 реда и са изтрити 15 реда
  1. 15 15
      src/views/graphic/geos/del.vue

+ 15 - 15
src/views/graphic/geos/del.vue

@@ -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">