@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "8.1.7",
3
+ "version": "8.1.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,13 +1,19 @@
1
1
  <template>
2
2
  <div class="m-post-guide" v-if="hasGuide">
3
- <a :href="getPostLink(post.prev_post)" class="el-button el-button--default el-button--small u-prev" :class="{'is-disabled': !post.prev_post }">
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>上一篇: {{ getPostTitle(post.prev_post) }}</span>
6
+ <span>上一篇</span>
6
7
  </a>
7
- <a :href="getPostLink(post.next_post)" class="el-button el-button--default el-button--small u-next" :class="{'is-disabled': !post.next_post }">
8
- <span>下一篇: {{ getPostTitle(post.next_post) }}</span>
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) {