feat: replace context menu items splicing with implementation of context menu item sections
This commit is contained in:
parent
c9bbd10af1
commit
0f02142eb1
9 changed files with 85 additions and 50 deletions
4
app.vue
4
app.vue
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<Banner v-if="banner" />
|
||||
<ContextMenu v-if="contextMenu && contextMenu.show" :pointer-x="contextMenu.pointerX" :pointer-y="contextMenu.pointerY" :menu-items="contextMenu.items" />
|
||||
<ContextMenu v-if="contextMenu && contextMenu.show" :pointer-x="contextMenu.pointerX" :pointer-y="contextMenu.pointerY" :menu-sections="contextMenu.sections" />
|
||||
<NuxtPage :keepalive="true" />
|
||||
</div>
|
||||
</template>
|
||||
|
@ -12,7 +12,7 @@ import type { ContextMenuInterface } from './types/interfaces';
|
|||
|
||||
const banner = useState("banner", () => false);
|
||||
|
||||
const contextMenu = useState<ContextMenuInterface>("contextMenu", () => ({ show: false, pointerX: 0, pointerY: 0, items: [] }));
|
||||
const contextMenu = useState<ContextMenuInterface>("contextMenu", () => ({ show: false, pointerX: 0, pointerY: 0, sections: [] }));
|
||||
|
||||
onMounted(() => {
|
||||
loadPreferredThemes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue