Skip to content

Commit

Permalink
feat(projects): 返回顶部功能适配新布局
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbowe committed Mar 14, 2023
1 parent 42e6de3 commit 54e2cb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
12 changes: 2 additions & 10 deletions src/layouts/basic-layout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,15 @@
<global-footer />
</template>
</admin-layout>
<global-back-top />
<n-back-top :key="theme.scrollMode" :listen-to="`#${app.scrollElId}`" class="z-100" />
<setting-drawer />
</template>

<script setup lang="ts">
import { AdminLayout } from '@soybeanjs/vue-materials';
import { useAppStore, useThemeStore } from '@/store';
import { useBasicLayout } from '@/composables';
import {
GlobalBackTop,
GlobalContent,
GlobalFooter,
GlobalHeader,
GlobalSider,
GlobalTab,
SettingDrawer
} from '../common';
import { GlobalContent, GlobalFooter, GlobalHeader, GlobalSider, GlobalTab, SettingDrawer } from '../common';
defineOptions({ name: 'BasicLayout' });
Expand Down
15 changes: 0 additions & 15 deletions src/layouts/common/global-back-top/index.vue

This file was deleted.

3 changes: 1 addition & 2 deletions src/layouts/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit 54e2cb5

Please sign in to comment.