feat: refs #6891 create rightMenu

This commit is contained in:
Jorge Penadés 2024-05-06 14:25:39 +02:00
parent d444a8721d
commit b487ff4adc
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<script setup>
import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore';
defineProps({
dataKey: { type: String, required: true },
});
const { t } = useI18n();
const stateStore = useStateStore();
</script>
<template>
<Teleport to="#actions-append">
<div class="row q-gutter-x-sm">
<QBtn flat @click="stateStore.toggleRightDrawer()" round dense icon="menu">
<QTooltip bottom anchor="bottom right">
{{ t('globals.collapseMenu') }}
</QTooltip>
</QBtn>
</div>
</Teleport>
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
<QScrollArea class="fit text-grey-8">
<slot name="right-panel" />
</QScrollArea>
</QDrawer>
</template>