|
@@ -7,7 +7,7 @@
|
|
</ui-button>
|
|
</ui-button>
|
|
</template>
|
|
</template>
|
|
</ui-group>
|
|
</ui-group>
|
|
- <ui-group>
|
|
|
|
|
|
+ <ui-group style="padding-bottom: 60px">
|
|
<GuideSign
|
|
<GuideSign
|
|
v-for="guide in guides"
|
|
v-for="guide in guides"
|
|
:key="guide.id"
|
|
:key="guide.id"
|
|
@@ -29,19 +29,13 @@ import { ref, watchEffect } from "vue";
|
|
import GuideSign from "./sign.vue";
|
|
import GuideSign from "./sign.vue";
|
|
import EditPaths from "./edit-paths.vue";
|
|
import EditPaths from "./edit-paths.vue";
|
|
import { useViewStack } from "@/hook";
|
|
import { useViewStack } from "@/hook";
|
|
-import {
|
|
|
|
- guides,
|
|
|
|
- createGuide,
|
|
|
|
- enterEdit,
|
|
|
|
- sysBus,
|
|
|
|
- autoSaveGuides,
|
|
|
|
-} from "@/store";
|
|
|
|
|
|
+import { guides, createGuide, enterEdit, sysBus, autoSaveGuides } from "@/store";
|
|
|
|
|
|
import type { Guide } from "@/store";
|
|
import type { Guide } from "@/store";
|
|
|
|
|
|
const currentGuide = ref<Guide | null>(null);
|
|
const currentGuide = ref<Guide | null>(null);
|
|
-const emit = defineEmits<{(e: 'update:current', v: Guide | null): void}>()
|
|
|
|
-watchEffect(() => emit('update:current', currentGuide.value))
|
|
|
|
|
|
+const emit = defineEmits<{ (e: "update:current", v: Guide | null): void }>();
|
|
|
|
+watchEffect(() => emit("update:current", currentGuide.value));
|
|
|
|
|
|
const leaveEdit = () => (currentGuide.value = null);
|
|
const leaveEdit = () => (currentGuide.value = null);
|
|
const edit = (guide: Guide) => {
|
|
const edit = (guide: Guide) => {
|