|
@@ -19,6 +19,7 @@ import UiIcon from "@/components/base/components/icon/index.vue";
|
|
|
import {drawRef, FocusVector, uiType, UIType} from '@/hook/useGraphic'
|
|
|
import {computed, ref, watch, watchEffect} from "vue";
|
|
|
import {dataService} from "@/graphic/Service/DataService";
|
|
|
+import GeoActions from "@/graphic/enum/Action"
|
|
|
import {debounce} from "@/utils";
|
|
|
|
|
|
const props = defineProps<{geo: FocusVector}>()
|
|
@@ -44,6 +45,7 @@ const menus = [
|
|
|
key: 'copy',
|
|
|
text: "复制",
|
|
|
onClick: () => {
|
|
|
+ drawRef.value.uiControl.handleGeo(GeoActions.CopyAction)
|
|
|
uiType.change(UIType.Copy)
|
|
|
}
|
|
|
},
|
|
@@ -51,6 +53,7 @@ const menus = [
|
|
|
key: 'del',
|
|
|
text: "删除",
|
|
|
onClick: () => {
|
|
|
+ drawRef.value.uiControl.handleGeo(GeoActions.DeleteAction)
|
|
|
uiType.change(UIType.Delete)
|
|
|
}
|
|
|
}
|