ruoyi-plus-soybean/src/layouts/common/SettingDrawer/components/DrawerButton/index.vue

19 lines
425 B
Vue
Raw Normal View History

2022-01-07 18:51:06 +08:00
<template>
<n-button
class="fixed top-240px right-14px z-10000"
:class="{ '!right-330px': app.settingDrawerVisible }"
@click="toggleSettingdrawerVisible"
>
点击
</n-button>
</template>
<script setup lang="ts">
import { NButton } from 'naive-ui';
import { useAppStore } from '@/store';
const app = useAppStore();
const { toggleSettingdrawerVisible } = useAppStore();
</script>
<style scoped></style>