-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from MarleneJiang/issue-29-新增文章详情
refactor: 目录重构+对接相关文章
- Loading branch information
Showing
6 changed files
with
69 additions
and
43 deletions.
There are no files selected for viewing
File renamed without changes.
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
40 changes: 40 additions & 0 deletions
40
frontend/components/ArticlesContent/SideBar/Right/index.vue
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,40 @@ | ||
<script setup> | ||
const props = defineProps({ | ||
content: { | ||
type: String, | ||
default: '', | ||
}, | ||
author: { | ||
type: Object, | ||
}, | ||
relatedArticles: { | ||
type: Array, | ||
}, | ||
}) | ||
const { immerseState } = useImmerse() | ||
</script> | ||
|
||
<template> | ||
<div class="sidebar hidden lg:block lg:w-4/12"> | ||
<ArticlesContentSideBarRightAuthor v-show="!immerseState" :author="props.author" /> | ||
<ArticlesContentSideBarRightRelatedArticles v-show="!immerseState" class="sidebar-block" :article-list="props.relatedArticles" /> | ||
<ArticlesContentSideBarRightCatalogue class="sidebar-block" :content="props.content" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.sidebar-block { | ||
position: relative; | ||
margin-bottom: 1.5rem; | ||
background-color: #fff; | ||
} | ||
.sidebar .sidebar-block { | ||
margin-bottom: 20px; | ||
} | ||
.sidebar { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
width: 25rem; | ||
} | ||
</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