|
@@ -11,6 +11,7 @@ import {dataService} from "@/graphic/Service/DataService";
|
|
import GeoActions from "@/graphic/enum/GeoActions"
|
|
import GeoActions from "@/graphic/enum/GeoActions"
|
|
import {UITypeExtend} from "@/views/graphic/menus";
|
|
import {UITypeExtend} from "@/views/graphic/menus";
|
|
import VectorEvents from "@/graphic/enum/VectorEvents";
|
|
import VectorEvents from "@/graphic/enum/VectorEvents";
|
|
|
|
+import VectorStyle from "@/graphic/enum/VectorStyle";
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{ geo: FocusVector }>()
|
|
const props = defineProps<{ geo: FocusVector }>()
|
|
@@ -23,41 +24,41 @@ const clickHandlerFactory = (key) => {
|
|
|
|
|
|
const lineTypeMenu = [
|
|
const lineTypeMenu = [
|
|
{
|
|
{
|
|
- key: VectorEvents.SingleSolidLine,
|
|
|
|
|
|
+ key: VectorStyle.SingleSolidLine,
|
|
icon: "line",
|
|
icon: "line",
|
|
text: "单实线",
|
|
text: "单实线",
|
|
- onClick: clickHandlerFactory(VectorEvents.SingleSolidLine)
|
|
|
|
|
|
+ onClick: clickHandlerFactory(VectorStyle.SingleSolidLine)
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- key: VectorEvents.SingleDashedLine,
|
|
|
|
|
|
+ key: VectorStyle.SingleDashedLine,
|
|
icon: "line",
|
|
icon: "line",
|
|
text: "单虚线",
|
|
text: "单虚线",
|
|
- onClick: clickHandlerFactory(VectorEvents.SingleDashedLine)
|
|
|
|
|
|
+ onClick: clickHandlerFactory(VectorStyle.SingleDashedLine)
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- key: VectorEvents.DoubleSolidLine,
|
|
|
|
|
|
+ key: VectorStyle.DoubleSolidLine,
|
|
icon: "line",
|
|
icon: "line",
|
|
text: "双实线",
|
|
text: "双实线",
|
|
- onClick: clickHandlerFactory(VectorEvents.DoubleSolidLine)
|
|
|
|
|
|
+ onClick: clickHandlerFactory(VectorStyle.DoubleSolidLine)
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- key: VectorEvents.DoubleDashedLine,
|
|
|
|
|
|
+ key: VectorStyle.DoubleDashedLine,
|
|
icon: "line",
|
|
icon: "line",
|
|
text: "双虚线",
|
|
text: "双虚线",
|
|
- onClick: clickHandlerFactory(VectorEvents.DoubleDashedLine)
|
|
|
|
|
|
+ onClick: clickHandlerFactory(VectorStyle.DoubleDashedLine)
|
|
},
|
|
},
|
|
- {key: VectorEvents.BrokenLine, icon: "line", text: "折线", onClick: clickHandlerFactory(VectorEvents.BrokenLine)},
|
|
|
|
|
|
+ {key: VectorStyle.BrokenLine, icon: "line", text: "折线", onClick: clickHandlerFactory(VectorStyle.BrokenLine)},
|
|
{
|
|
{
|
|
- key: VectorEvents.PointDrawLine,
|
|
|
|
|
|
+ key: VectorStyle.PointDrawLine,
|
|
icon: "line",
|
|
icon: "line",
|
|
text: "点画线",
|
|
text: "点画线",
|
|
- onClick: clickHandlerFactory(VectorEvents.PointDrawLine)
|
|
|
|
|
|
+ onClick: clickHandlerFactory(VectorStyle.PointDrawLine)
|
|
},
|
|
},
|
|
- {key: VectorEvents.Greenbelt, icon: "line", text: "绿化带 ", onClick: clickHandlerFactory(VectorEvents.Greenbelt)},
|
|
|
|
|
|
+ {key: VectorStyle.Greenbelt, icon: "line", text: "绿化带 ", onClick: clickHandlerFactory(VectorStyle.Greenbelt)},
|
|
]
|
|
]
|
|
const lineWidthMenu = [
|
|
const lineWidthMenu = [
|
|
- {key: VectorEvents.Bold, icon: 'l_thick', text: "粗", onClick: clickHandlerFactory(VectorEvents.Bold)},
|
|
|
|
- {key: VectorEvents.Thinning, icon: 'l_thin', text: "细", onClick: clickHandlerFactory(VectorEvents.Thinning)},
|
|
|
|
|
|
+ {key: VectorStyle.Bold, icon: 'l_thick', text: "粗", onClick: clickHandlerFactory(VectorStyle.Bold)},
|
|
|
|
+ {key: VectorStyle.Thinning, icon: 'l_thin', text: "细", onClick: clickHandlerFactory(VectorStyle.Thinning)},
|
|
]
|
|
]
|
|
const childMenus = ref<UnwrapRef<typeof menus>>()
|
|
const childMenus = ref<UnwrapRef<typeof menus>>()
|
|
const menus = ref([
|
|
const menus = ref([
|