ai-manus/chat-client/library/components/VabFullScreen/index.vue

17 lines
403 B
Vue

<script lang="ts" setup>
import { useSettingsStore } from '@/store/modules/settings'
const { isFullscreen, toggle } = useFullscreen()
const settingsStore = useSettingsStore()
const { theme } = storeToRefs(settingsStore)
</script>
<template>
<vab-icon
v-if="theme.showFullScreen"
:icon="isFullscreen ? 'fullscreen-exit-fill' : 'fullscreen-fill'"
@click="toggle"
/>
</template>