@sugarat/theme 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -24,9 +24,15 @@
|
|
|
24
24
|
<!-- 简介 -->
|
|
25
25
|
<div class="des">
|
|
26
26
|
<!-- title -->
|
|
27
|
-
<el-link
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
<el-link
|
|
28
|
+
type="info"
|
|
29
|
+
class="title"
|
|
30
|
+
:class="{
|
|
31
|
+
current: isCurrentDoc(v.route)
|
|
32
|
+
}"
|
|
33
|
+
:href="v.route"
|
|
34
|
+
>{{ v.meta.title }}</el-link
|
|
35
|
+
>
|
|
30
36
|
<!-- 描述信息 -->
|
|
31
37
|
<div class="suffix">
|
|
32
38
|
<!-- 日期 -->
|
|
@@ -89,6 +95,11 @@ const recommendList = computed(() => {
|
|
|
89
95
|
|
|
90
96
|
return topList.concat(normalList)
|
|
91
97
|
})
|
|
98
|
+
|
|
99
|
+
const isCurrentDoc = (value: string) => {
|
|
100
|
+
return value === decodeURIComponent(route.path).replace(/.html$/, '')
|
|
101
|
+
}
|
|
102
|
+
|
|
92
103
|
const currentPage = ref(1)
|
|
93
104
|
const changePage = () => {
|
|
94
105
|
const newIdx =
|
|
@@ -165,6 +176,9 @@ const showChangeBtn = computed(() => {
|
|
|
165
176
|
color: var(--vp-c-text-1);
|
|
166
177
|
word-break: break-all;
|
|
167
178
|
white-space: break-spaces;
|
|
179
|
+
&.current {
|
|
180
|
+
color: var(--vp-c-brand);
|
|
181
|
+
}
|
|
168
182
|
}
|
|
169
183
|
|
|
170
184
|
.suffix {
|