|
|
@ -87,7 +87,8 @@ watch(slug, load, { immediate: true }) |
|
|
<h1 class="detail-title">{{ article.title }}</h1> |
|
|
<h1 class="detail-title">{{ article.title }}</h1> |
|
|
<p v-if="article.summary" class="detail-summary">{{ article.summary }}</p> |
|
|
<p v-if="article.summary" class="detail-summary">{{ article.summary }}</p> |
|
|
<div class="detail-meta"> |
|
|
<div class="detail-meta"> |
|
|
<span>作者:{{ article.authorName }}</span> |
|
|
|
|
|
|
|
|
<span class="detail-author">作者:{{ article.authorName }}</span> |
|
|
|
|
|
<div class="detail-meta-row"> |
|
|
<ArticleMetaBar |
|
|
<ArticleMetaBar |
|
|
mode="detail" |
|
|
mode="detail" |
|
|
:created-at="article.publishedAt || article.createdAt" |
|
|
:created-at="article.publishedAt || article.createdAt" |
|
|
@ -101,6 +102,7 @@ watch(slug, load, { immediate: true }) |
|
|
<span class="star-count">{{ starCount }}</span> |
|
|
<span class="star-count">{{ starCount }}</span> |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<div class="detail-tags"> |
|
|
<div class="detail-tags"> |
|
|
<span v-for="tag in article.tagNames" :key="tag" class="tag">{{ tag }}</span> |
|
|
<span v-for="tag in article.tagNames" :key="tag" class="tag">{{ tag }}</span> |
|
|
</div> |
|
|
</div> |
|
|
@ -133,12 +135,24 @@ watch(slug, load, { immediate: true }) |
|
|
|
|
|
|
|
|
.detail-meta { |
|
|
.detail-meta { |
|
|
display: flex; |
|
|
display: flex; |
|
|
gap: 20px; |
|
|
|
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
gap: 6px; |
|
|
color: var(--ac-text-disabled); |
|
|
color: var(--ac-text-disabled); |
|
|
font-size: 13px; |
|
|
font-size: 13px; |
|
|
margin: 12px 0; |
|
|
margin: 12px 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.detail-author { |
|
|
|
|
|
color: var(--ac-text-secondary); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.detail-meta-row { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
gap: 8px 20px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.detail-tags { |
|
|
.detail-tags { |
|
|
margin-bottom: 16px; |
|
|
margin-bottom: 16px; |
|
|
} |
|
|
} |
|
|
|