mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
use <Teleport> for setting footer content
This commit is contained in:
parent
318a9f9220
commit
39033b17fe
@ -1,10 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="text-default bg-default h-full flex flex-col items-stretch">
|
<div class="text-default bg-default h-full flex flex-col items-stretch">
|
||||||
<router-view v-if="providesValid" @updateFooterText="text => routerViewFooterText = text" />
|
<router-view v-if="providesValid" />
|
||||||
<div class="flex flex-row items-center px-4 py-2">
|
<div class="flex flex-row items-center px-4 py-2 gap-2">
|
||||||
<div class="text-sm" v-html="routerViewFooterText"></div>
|
<div id="footer-text" class="flex flex-row flex-wrap gap-x-4 gap-y-0 text-xs grow basis-0"></div>
|
||||||
<div class="grow" />
|
<div class="grow-0">
|
||||||
<div id="footer-buttons" class="flex flex-row-reverse gap-buttons">
|
45Drives
|
||||||
|
</div>
|
||||||
|
<div id="footer-buttons" class="flex flex-row-reverse gap-buttons grow basis-0">
|
||||||
<SettingsMenu />
|
<SettingsMenu />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -60,6 +62,4 @@ const clipboard = reactive({
|
|||||||
provide(clipboardInjectionKey, clipboard);
|
provide(clipboardInjectionKey, clipboard);
|
||||||
providesValid.value = true;
|
providesValid.value = true;
|
||||||
|
|
||||||
const routerViewFooterText = ref("");
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user