@jx3box/jx3box-common-ui 8.1.7 → 8.1.8
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 +1 -1
- package/src/single/PostGuide.vue +21 -4
package/package.json
CHANGED
package/src/single/PostGuide.vue
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="m-post-guide" v-if="hasGuide">
|
|
3
|
-
|
|
3
|
+
<div class="u-prev">
|
|
4
|
+
<a :href="getPostLink(post.prev_post)" class="el-button el-button--default el-button--small" :class="{'is-disabled': !post.prev_post }">
|
|
4
5
|
<i class="el-icon-arrow-left"></i>
|
|
5
|
-
<span
|
|
6
|
+
<span>上一篇</span>
|
|
6
7
|
</a>
|
|
7
|
-
<a :href="getPostLink(post.
|
|
8
|
-
|
|
8
|
+
<a :href="getPostLink(post.prev_post)" class="u-post-title">{{ getPostTitle(post.prev_post) }}</a>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="u-next">
|
|
11
|
+
<a :href="getPostLink(post.next_post)" class="el-button el-button--default el-button--small" :class="{'is-disabled': !post.next_post }">
|
|
12
|
+
<span>下一篇</span>
|
|
9
13
|
<i class="el-icon-arrow-right"></i>
|
|
10
14
|
</a>
|
|
15
|
+
<a :href="getPostLink(post.prev_post)" class="u-post-title">{{ getPostTitle(post.next_post) }}</a>
|
|
16
|
+
</div>
|
|
11
17
|
</div>
|
|
12
18
|
</template>
|
|
13
19
|
|
|
@@ -42,6 +48,17 @@ export default {
|
|
|
42
48
|
.flex;
|
|
43
49
|
align-items: center;
|
|
44
50
|
justify-content: space-between;
|
|
51
|
+
|
|
52
|
+
.u-post-title {
|
|
53
|
+
margin-left: 5px;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
color: #666;
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
color: #0366d6;
|
|
59
|
+
box-shadow: 0 1px 0 #0366d6;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
45
62
|
}
|
|
46
63
|
|
|
47
64
|
@media screen and (max-width: @phone) {
|