-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: page-wrapper * feat: transition * feat: optimization * feat: update project info * feat: optimization * feat(demo): page wrapper
- Loading branch information
Showing
15 changed files
with
273 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import PageWrapper from './src/PageWrapper.vue' | ||
|
||
export { | ||
PageWrapper | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div> | ||
<a-page-header v-if="title" class="!bg-white border-t border-gray-500/20" :title="title"> | ||
<template v-if="content"> | ||
{{ content }} | ||
</template> | ||
</a-page-header> | ||
|
||
<div class="p-16px"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
interface Props { | ||
title?: string | ||
content?: string | ||
} | ||
defineProps<Props>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<template> | ||
<div class="layout-content"> | ||
<router-view v-slot="{ Component, route }"> | ||
<keep-alive> | ||
<component :is="Component" :key="route.fullPath" /> | ||
</keep-alive> | ||
<transition name="fade-slide" mode="out-in" appear> | ||
<keep-alive> | ||
<component :is="Component" :key="route.fullPath" /> | ||
</keep-alive> | ||
</transition> | ||
</router-view> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="less"> | ||
.layout-content { | ||
@apply p-16px; | ||
min-height: calc(100vh - var(--header-height) - var(--footer-height)); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<template> | ||
<project-introduction class="enter-y" /> | ||
<project-info class="enter-y !mt-16px" /> | ||
<dependencies class="enter-y !mt-16px" /> | ||
<dev-dependencies class="enter-y !mt-16px" /> | ||
<page-wrapper title="关于" content="vue-hbs-admin 是一个基于 Vue3.0、Vite、TypeScript、Ant-Design-Vue 的后台解决方案,为后台管理系统提供现成的开箱解决方案及丰富的示例,提高开发效率。"> | ||
<project-info class="enter-y" /> | ||
<dependencies class="enter-y !mt-16px" /> | ||
<dev-dependencies class="enter-y !mt-16px" /> | ||
</page-wrapper> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import ProjectIntroduction from './components/ProjectIntroduction.vue' | ||
import ProjectInfo from './components/ProjectInfo.vue' | ||
import Dependencies from './components/Dependencies.vue' | ||
import DevDependencies from './components/DevDependencies.vue' | ||
import { PageWrapper } from '~/components/Page' | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.