fix
This commit is contained in:
parent
c55b521e57
commit
70c8690623
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<FocusTrap v-bind:active="isActive">
|
<div ref="el" class="sfhdhdhr" tabindex="-1">
|
||||||
<div ref="el" class="sfhdhdhr" tabindex="-1">
|
|
||||||
<MkMenu
|
<MkMenu
|
||||||
ref="menu"
|
ref="menu"
|
||||||
:items="items"
|
:items="items"
|
||||||
|
@ -10,7 +9,6 @@
|
||||||
@close="onChildClosed"
|
@close="onChildClosed"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</FocusTrap>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
@ -25,8 +23,6 @@ import {
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import MkMenu from "./MkMenu.vue";
|
import MkMenu from "./MkMenu.vue";
|
||||||
import { MenuItem } from "@/types/menu";
|
import { MenuItem } from "@/types/menu";
|
||||||
import { FocusTrap } from 'focus-trap-vue';
|
|
||||||
import * as os from "@/os";
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
items: MenuItem[];
|
items: MenuItem[];
|
||||||
|
|
|
@ -115,6 +115,7 @@
|
||||||
class="_button item parent"
|
class="_button item parent"
|
||||||
:class="{ childShowing: childShowingItem === item }"
|
:class="{ childShowing: childShowingItem === item }"
|
||||||
@mouseenter="showChildren(item, $event)"
|
@mouseenter="showChildren(item, $event)"
|
||||||
|
@click="showChildren(item, $event)"
|
||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
v-if="item.icon"
|
v-if="item.icon"
|
||||||
|
|
Loading…
Reference in New Issue