Skip to content

Commit

Permalink
feat: add NBackTop component
Browse files Browse the repository at this point in the history
  • Loading branch information
flingyp committed Sep 21, 2023
1 parent 9e44e65 commit 88136e7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ declare module '@vue/runtime-core' {
'IconLineMd:sunnyOutlineToMoonAltLoopTransition': typeof import('~icons/line-md/sunny-outline-to-moon-alt-loop-transition')['default']
'IconMaterialSymbols:keyboardDoubleArrowLeftRounded': typeof import('~icons/material-symbols/keyboard-double-arrow-left-rounded')['default']
'IconMaterialSymbols:keyboardDoubleArrowRightRounded': typeof import('~icons/material-symbols/keyboard-double-arrow-right-rounded')['default']
'IconMaterialSymbols:rocketOutline': typeof import('~icons/material-symbols/rocket-outline')['default']
'IconMdi:github': typeof import('~icons/mdi/github')['default']
'IconMdi:shieldLockOutline': typeof import('~icons/mdi/shield-lock-outline')['default']
'IconMdi:signIn': typeof import('~icons/mdi/sign-in')['default']
Expand All @@ -43,7 +44,10 @@ declare module '@vue/runtime-core' {
'IconOpenmoji:angryFace': typeof import('~icons/openmoji/angry-face')['default']
'IconOpenmoji:annoyedFaceWithTongue': typeof import('~icons/openmoji/annoyed-face-with-tongue')['default']
'IconOpenmoji:apple': typeof import('~icons/openmoji/apple')['default']
'IconPh:rocket': typeof import('~icons/ph/rocket')['default']
'IconPh:rocketBold': typeof import('~icons/ph/rocket-bold')['default']
'IconUil:alignJustify': typeof import('~icons/uil/align-justify')['default']
NBackTop: typeof import('naive-ui')['NBackTop']
NBreadcrumb: typeof import('naive-ui')['NBreadcrumb']
NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem']
NButton: typeof import('naive-ui')['NButton']
Expand Down
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ define(['./workbox-ab7aa862'], (function (workbox) { 'use strict';
"revision": "f3ed520397ebbc805e5b0a84961b16dd"
}, {
"url": "index.html",
"revision": "0.jllf0juo138"
"revision": "0.7p5ue6rvq0g"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@iconify-json/mdi-light": "^1.1.7",
"@iconify-json/noto": "^1.1.12",
"@iconify-json/openmoji": "^1.1.30",
"@iconify-json/ph": "^1.1.6",
"@iconify-json/ri": "^1.1.12",
"@iconify-json/tabler": "^1.1.91",
"@iconify-json/uil": "^1.1.5",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/layout/mode/GlobalContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ provide(IS_RELOAD_CONTENT, isReloadContent)
</template>
</NSpin>
</div>
<NBackTop :right="40">
<div class="text-xl">
<icon-ph:rocket-bold />
</div>
</NBackTop>
</template>

0 comments on commit 88136e7

Please sign in to comment.