feat(projects): 添加全屏显示
This commit is contained in:
parent
a0392b3d28
commit
0a1711d5b1
@ -1,3 +1,3 @@
|
||||
import HeaderItemContainer from './HeaderItemContainer.vue';
|
||||
import HeaderItem from './HeaderItem.vue';
|
||||
|
||||
export { HeaderItemContainer };
|
||||
export { HeaderItem };
|
||||
|
@ -1,17 +1,22 @@
|
||||
<template>
|
||||
<div class="global-header flex-y-center justify-between">
|
||||
<h2></h2>
|
||||
<header-item-container class="w-40px h-full" @click="openSettingDrawer">
|
||||
<div class="global-header flex-y-center justify-end">
|
||||
<header-item class="w-40px h-full" @click="toggle">
|
||||
<icon-gridicons-fullscreen-exit v-if="isFullscreen" class="text-16px" />
|
||||
<icon-gridicons-fullscreen v-else class="text-16px" />
|
||||
</header-item>
|
||||
<header-item class="w-40px h-full" @click="openSettingDrawer">
|
||||
<icon-mdi-light-cog class="text-16px" />
|
||||
</header-item-container>
|
||||
</header-item>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useFullscreen } from '@vueuse/core';
|
||||
import { useAppStore } from '@/store';
|
||||
import { HeaderItemContainer } from './components';
|
||||
import { HeaderItem } from './components';
|
||||
|
||||
const { openSettingDrawer } = useAppStore();
|
||||
const { isFullscreen, toggle } = useFullscreen();
|
||||
</script>
|
||||
<style scoped>
|
||||
.global-header {
|
||||
|
Loading…
Reference in New Issue
Block a user