mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
32 lines
644 B
Vue
32 lines
644 B
Vue
<script setup lang="ts">
|
|
import { useFullscreen } from "@vueuse/core";
|
|
const { isFullscreen, toggle } = useFullscreen();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="screen-full" @click="toggle">
|
|
<i
|
|
:title="
|
|
isFullscreen
|
|
? $t('buttons.hsexitfullscreen')
|
|
: $t('buttons.hsfullscreen')
|
|
"
|
|
:class="
|
|
isFullscreen
|
|
? 'iconfont team-iconexit-fullscreen'
|
|
: 'iconfont team-iconfullscreen'
|
|
"
|
|
></i>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.screen-full {
|
|
width: 36px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
}
|
|
</style>
|