Вынес Запчасти в боковое меню

This commit is contained in:
Ilia Miheev
2026-06-02 22:59:06 +03:00
parent 9db8220fdb
commit 5272c1ddf7
7 changed files with 241 additions and 11 deletions
+6 -1
View File
@@ -1,8 +1,12 @@
<script setup>
import { ref } from "vue";
import { ref, provide } from "vue";
import DroneParts from "@/components/DroneParts.vue";
import MyDropMenu from "@/components/MyDropMenu.vue";
const showDroneParts = ref(false);
const dropMenu = ref(null);
provide('dropMenu', dropMenu);
</script>
<template>
@@ -14,6 +18,7 @@ const showDroneParts = ref(false);
<img src="/images/drone.png" alt="menu" class="btn-icon" />
</button>
<MyDropMenu v-if="!showDroneParts" ref="dropMenu" />
<DroneParts v-if="showDroneParts" @back="showDroneParts = false" />
<router-view v-if="!showDroneParts" />
</template>