perf: refs #8197 perf
This commit is contained in:
parent
b54f39f1a0
commit
76b73cc616
|
@ -15,7 +15,6 @@ onMounted(
|
||||||
() => (stateStore.leftDrawer = useQuasar().screen.gt.xs ? $props.leftDrawer : false)
|
() => (stateStore.leftDrawer = useQuasar().screen.gt.xs ? $props.leftDrawer : false)
|
||||||
);
|
);
|
||||||
|
|
||||||
const targetId = 'left-panel';
|
|
||||||
const teleportRef = ref({});
|
const teleportRef = ref({});
|
||||||
const hasContent = ref();
|
const hasContent = ref();
|
||||||
let observer;
|
let observer;
|
||||||
|
@ -37,7 +36,7 @@ onMounted(() => {
|
||||||
<template>
|
<template>
|
||||||
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
|
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
|
||||||
<QScrollArea class="fit text-grey-8">
|
<QScrollArea class="fit text-grey-8">
|
||||||
<div :id="targetId" ref="teleportRef"></div>
|
<div id="left-panel" ref="teleportRef"></div>
|
||||||
<LeftMenu v-if="!hasContent" />
|
<LeftMenu v-if="!hasContent" />
|
||||||
</QScrollArea>
|
</QScrollArea>
|
||||||
</QDrawer>
|
</QDrawer>
|
||||||
|
|
Loading…
Reference in New Issue