mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-15 06:13:42 +08:00
feat(projects): 返回顶部功能适配新布局
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<template>
|
||||
<n-back-top :show="show" class="z-1000" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import { useWindowScroll } from '@vueuse/core';
|
||||
|
||||
defineOptions({ name: 'GlobalBackTop' });
|
||||
|
||||
const { y: scrollY } = useWindowScroll();
|
||||
|
||||
const show = computed(() => scrollY.value > 180);
|
||||
</script>
|
||||
<style scoped></style>
|
@@ -5,6 +5,5 @@ import GlobalSider from './global-sider/index.vue';
|
||||
import GlobalContent from './global-content/index.vue';
|
||||
import GlobalFooter from './global-footer/index.vue';
|
||||
import GlobalLogo from './global-logo/index.vue';
|
||||
import GlobalBackTop from './global-back-top/index.vue';
|
||||
|
||||
export { SettingDrawer, GlobalHeader, GlobalTab, GlobalSider, GlobalContent, GlobalFooter, GlobalLogo, GlobalBackTop };
|
||||
export { SettingDrawer, GlobalHeader, GlobalTab, GlobalSider, GlobalContent, GlobalFooter, GlobalLogo };
|
||||
|
Reference in New Issue
Block a user