mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-26 03:23:42 +08:00
refactor(projects): 精简版+动态路由权限初步
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
<template>
|
||||
<div
|
||||
class="fixed flex-center top-240px right-14px z-10000 w-48px h-48px bg-primary rounded-4px cursor-pointer transition-right duration-300 ease-in-out"
|
||||
:class="{ '!right-330px': app.settingDrawer.visible }"
|
||||
@click="handleClickButton"
|
||||
>
|
||||
<icon-ic:round-close v-if="app.settingDrawer.visible" class="z-20 text-24px text-white" />
|
||||
<icon-ic-round-settings v-else class="z-20 text-24px text-white" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useAppStore } from '@/store';
|
||||
|
||||
const app = useAppStore();
|
||||
const { openSettingDrawer, closeSettingDrawer } = useAppStore();
|
||||
|
||||
function handleClickButton() {
|
||||
if (app.settingDrawer.visible) {
|
||||
closeSettingDrawer();
|
||||
} else {
|
||||
openSettingDrawer();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user