@jx3box/jx3box-common-ui 8.1.3 → 8.1.5
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 +2 -2
- package/service/cms.js +1 -1
- package/src/App.vue +4 -0
- package/src/single/PostGuide.vue +41 -0
- package/src/single/PostHeader.vue +18 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.5",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.8.7",
|
|
34
|
-
"@jx3box/jx3box-common": "^8.2.
|
|
34
|
+
"@jx3box/jx3box-common": "^8.2.2",
|
|
35
35
|
"@jx3box/jx3box-data": "^3.5.6",
|
|
36
36
|
"@jx3box/jx3box-editor": "^2.1.4",
|
|
37
37
|
"@jx3box/reporter": "^0.0.4",
|
package/service/cms.js
CHANGED
|
@@ -58,4 +58,4 @@ function getTopicBucket(params) {
|
|
|
58
58
|
return $cms().get(`/api/cms/topic/bucket`, { params });
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export { getPostAuthors, uploadImage, upload, getDecoration, getDecorationJson, checkTeamMember, getHonorJson, getSliders, getCollection, getTopicBucket
|
|
61
|
+
export { getPostAuthors, uploadImage, upload, getDecoration, getDecorationJson, checkTeamMember, getHonorJson, getSliders, getCollection, getTopicBucket };
|
package/src/App.vue
CHANGED
|
@@ -58,6 +58,8 @@
|
|
|
58
58
|
<QRcode />
|
|
59
59
|
<Sharing />
|
|
60
60
|
|
|
61
|
+
<PostGuide :post="post" />
|
|
62
|
+
|
|
61
63
|
<hr />
|
|
62
64
|
|
|
63
65
|
<markBy />
|
|
@@ -160,6 +162,7 @@ import PostCollection from "./single/PostCollection.vue";
|
|
|
160
162
|
import Thx from "./single/Thx.vue";
|
|
161
163
|
import Collection from "./single/Collection.vue";
|
|
162
164
|
import Creators from "./single/Creators.vue";
|
|
165
|
+
import PostGuide from "./single/PostGuide.vue";
|
|
163
166
|
|
|
164
167
|
import Mark from "./interact/Mark.vue";
|
|
165
168
|
import Fav from "./interact/Fav.vue";
|
|
@@ -241,6 +244,7 @@ export default {
|
|
|
241
244
|
WikiComments,
|
|
242
245
|
|
|
243
246
|
UserPop,
|
|
247
|
+
PostGuide,
|
|
244
248
|
},
|
|
245
249
|
data: function () {
|
|
246
250
|
return {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<template>
|
|
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" :class="{'is-disabled': !post.prev_post }">
|
|
4
|
+
<i class="el-icon-arrow-left"></i>
|
|
5
|
+
<span>上一篇</span>
|
|
6
|
+
</a>
|
|
7
|
+
<a :href="getPostLink(post.next_post)" class="el-button el-button--default el-button--small" :class="{'is-disabled': !post.next_post }">
|
|
8
|
+
<span>下一篇</span>
|
|
9
|
+
<i class="el-icon-arrow-right"></i>
|
|
10
|
+
</a>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
props: {
|
|
17
|
+
post: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => {},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
computed: {
|
|
23
|
+
hasGuide() {
|
|
24
|
+
return this.post.prev_post || this.post.next_post;
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
getPostLink(id) {
|
|
29
|
+
return id ? location.origin + "/post/" + id : "javascript:;";
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style lang="less">
|
|
36
|
+
.m-post-guide {
|
|
37
|
+
.flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<!-- 客户端 -->
|
|
35
35
|
<div class="u-meta u-sub-block">
|
|
36
36
|
<em class="u-label">适用客户端</em>
|
|
37
|
-
<span class="u-value u-client" :class="client">{{ showClientLabel(client) }}</span>
|
|
37
|
+
<span class="u-value u-client" :class="'i-client-' + client">{{ showClientLabel(client) }}</span>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
40
|
<!-- 发布日期 -->
|
|
@@ -155,6 +155,23 @@ export default {
|
|
|
155
155
|
</script>
|
|
156
156
|
|
|
157
157
|
<style lang="less">
|
|
158
|
+
.i-client-all{
|
|
159
|
+
border: 1px solid #a26ef7;
|
|
160
|
+
color: #a26ef7;
|
|
161
|
+
}
|
|
162
|
+
.i-client-std{
|
|
163
|
+
border: 1px solid #f0b400;
|
|
164
|
+
color: #f0b400;
|
|
165
|
+
}
|
|
166
|
+
.i-client-origin{
|
|
167
|
+
border: 1px solid #0eb7ce;
|
|
168
|
+
color: #0eb7ce;
|
|
169
|
+
}
|
|
170
|
+
.i-client-wujie{
|
|
171
|
+
border: 1px solid #fc79bf;
|
|
172
|
+
color: #fc79bf;
|
|
173
|
+
}
|
|
174
|
+
|
|
158
175
|
.m-single-header {
|
|
159
176
|
padding-top: 20px;
|
|
160
177
|
padding-bottom: 20px;
|
|
@@ -233,10 +250,6 @@ export default {
|
|
|
233
250
|
.fz(12px, 20px);
|
|
234
251
|
color: #666;
|
|
235
252
|
|
|
236
|
-
@origin: #0eb7ce;
|
|
237
|
-
@std: #f0b400;
|
|
238
|
-
@all: #a26ef7;
|
|
239
|
-
|
|
240
253
|
.u-client {
|
|
241
254
|
// .fl;
|
|
242
255
|
font-style: normal;
|
|
@@ -244,21 +257,6 @@ export default {
|
|
|
244
257
|
padding: 0px 5px;
|
|
245
258
|
.r(3px);
|
|
246
259
|
// .mr(10px);
|
|
247
|
-
|
|
248
|
-
&.std {
|
|
249
|
-
border: 1px solid @std;
|
|
250
|
-
color: @std;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&.origin {
|
|
254
|
-
border: 1px solid @origin;
|
|
255
|
-
color: @origin;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&.all {
|
|
259
|
-
border: 1px solid @all;
|
|
260
|
-
color: @all;
|
|
261
|
-
}
|
|
262
260
|
}
|
|
263
261
|
|
|
264
262
|
* {
|