diff --git a/src/components/draw-app/properties/SeparatorProperty.vue b/src/components/draw-app/properties/SeparatorProperty.vue index 81003d2..f5434d9 100644 --- a/src/components/draw-app/properties/SeparatorProperty.vue +++ b/src/components/draw-app/properties/SeparatorProperty.vue @@ -3,7 +3,6 @@ @@ -20,23 +19,18 @@ import { SeparatorData } from 'src/drawApp/graphics/SeparatorInteraction'; import { Separator } from 'src/graphics/separator/Separator'; import { useDrawStore } from 'src/stores/draw-store'; -import { computed, onMounted, reactive, watch } from 'vue'; +import { onMounted, reactive, watch } from 'vue'; const drawStore = useDrawStore(); const separatorModel = reactive(new SeparatorData()); const typeOptions = [ - { label: '左方向', value: 'endA' }, - { label: '右方向', value: 'endB' }, + { label: '区段分隔符', value: 'section' }, + { label: '道岔分隔符', value: 'turnout' }, + { label: '左断路分隔符', value: 'endA' }, + { label: '右断路分隔符', value: 'endB' }, ]; -const showType = computed(() => { - const find = typeOptions.find((item) => { - return item.value == separatorModel.separatorType; - }); - return !!find; -}); - drawStore.$subscribe; watch( () => drawStore.selectedGraphic, diff --git a/src/components/draw-app/properties/TurnoutProperty.vue b/src/components/draw-app/properties/TurnoutProperty.vue index 75f0d41..10d703f 100644 --- a/src/components/draw-app/properties/TurnoutProperty.vue +++ b/src/components/draw-app/properties/TurnoutProperty.vue @@ -7,6 +7,24 @@ @blur="onUpdate" label="编号" /> + +