2022-01-07 18:51:06 +08:00
|
|
|
<template>
|
|
|
|
<n-button
|
2022-01-08 20:49:21 +08:00
|
|
|
type="primary"
|
|
|
|
:class="[{ '!right-330px': app.settingDrawerVisible }, app.settingDrawerVisible ? 'ease-out' : 'ease-in']"
|
2022-08-07 12:02:00 +08:00
|
|
|
class="fixed top-360px right-14px z-10000 w-42px h-42px !p-0 transition-all duration-300"
|
2022-04-22 09:00:21 +08:00
|
|
|
@click="app.toggleSettingDrawerVisible"
|
2022-01-07 18:51:06 +08:00
|
|
|
>
|
2022-03-05 01:55:21 +08:00
|
|
|
<icon-ant-design-close-outlined v-if="app.settingDrawerVisible" class="text-24px" />
|
|
|
|
<icon-ant-design-setting-outlined v-else class="text-24px" />
|
2022-01-07 18:51:06 +08:00
|
|
|
</n-button>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { useAppStore } from '@/store';
|
|
|
|
|
2022-07-10 14:02:00 +08:00
|
|
|
defineOptions({ name: 'DrawerButton' });
|
|
|
|
|
2022-01-07 18:51:06 +08:00
|
|
|
const app = useAppStore();
|
|
|
|
</script>
|
2022-05-28 12:30:17 +08:00
|
|
|
|
2022-01-07 18:51:06 +08:00
|
|
|
<style scoped></style>
|