aboutsummaryrefslogtreecommitdiff
path: root/src/components/MenuLayout.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-04-22 23:31:40 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-04-22 23:31:40 +0200
commit086d31eab5b3b1a927803eab5e650585f61abe19 (patch)
tree7c6b14d08370694f24d2b967343b37b16271bf3c /src/components/MenuLayout.vue
parent8e29a97404ea0aa9b9b576656358c8c276b6f992 (diff)
downloadit-tools-086d31eab5b3b1a927803eab5e650585f61abe19.tar.gz
it-tools-086d31eab5b3b1a927803eab5e650585f61abe19.tar.zst
it-tools-086d31eab5b3b1a927803eab5e650585f61abe19.zip
refactor(lint): linter auto fix
Diffstat (limited to 'src/components/MenuLayout.vue')
-rw-r--r--src/components/MenuLayout.vue15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/components/MenuLayout.vue b/src/components/MenuLayout.vue
index 721a14d..177de2b 100644
--- a/src/components/MenuLayout.vue
+++ b/src/components/MenuLayout.vue
@@ -14,11 +14,7 @@
</n-layout-sider>
<n-layout class="content">
<slot name="content" />
- <div
- v-show="isSmallScreen && !isMenuCollapsed"
- class="overlay"
- @click="isMenuCollapsed = true"
- />
+ <div v-show="isSmallScreen && !isMenuCollapsed" class="overlay" @click="isMenuCollapsed = true" />
</n-layout>
</n-layout>
</template>
@@ -27,9 +23,9 @@
import { useStyleStore } from '@/stores/style.store';
import { toRefs, computed } from 'vue';
-const styleStore = useStyleStore()
-const { isMenuCollapsed, isSmallScreen } = toRefs(styleStore)
-const siderPosition = computed(() => isSmallScreen.value ? 'absolute' : 'static')
+const styleStore = useStyleStore();
+const { isMenuCollapsed, isSmallScreen } = toRefs(styleStore);
+const siderPosition = computed(() => (isSmallScreen.value ? 'absolute' : 'static'));
</script>
<style lang="less" scoped>
@@ -44,7 +40,6 @@ const siderPosition = computed(() => isSmallScreen.value ? 'absolute' : 'static'
}
.content {
-
// background-color: #f1f5f9;
::v-deep(.n-layout-scroll-container) {
padding: 26px;
@@ -54,4 +49,4 @@ const siderPosition = computed(() => isSmallScreen.value ? 'absolute' : 'static'
.n-layout {
height: 100vh;
}
-</style> \ No newline at end of file
+</style>