@jx3box/jx3box-common-ui 8.0.15 → 8.0.17

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.0.15",
3
+ "version": "8.0.17",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^1.8.1",
34
- "@jx3box/jx3box-common": "^8.1.3",
33
+ "@jx3box/jx3box-comment-ui": "^1.8.6",
34
+ "@jx3box/jx3box-common": "^8.1.9",
35
35
  "@jx3box/jx3box-data": "^3.5.6",
36
- "@jx3box/jx3box-editor": "^2.0.9",
36
+ "@jx3box/jx3box-editor": "^2.1.4",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
39
39
  "dayjs": "^1.11.0",
@@ -4,7 +4,7 @@
4
4
  <li
5
5
  class="u-client"
6
6
  :class="{ on: client == value }"
7
- v-for="(label, value) in clients"
7
+ v-for="(label, value) in computedClients"
8
8
  :key="value"
9
9
  @click="filter(value)"
10
10
  >{{ label }}</li>
@@ -20,14 +20,17 @@ const clients = {
20
20
  };
21
21
  export default {
22
22
  name: "clientBy",
23
- props: ["type"],
23
+ props: ["type", "clients"],
24
24
  data: function () {
25
25
  return {
26
26
  client: this.type || "all",
27
- clients,
28
27
  };
29
28
  },
30
- computed: {},
29
+ computed: {
30
+ computedClients: function () {
31
+ return this.clients || clients;
32
+ },
33
+ },
31
34
  methods: {
32
35
  filter: function (val) {
33
36
  this.client = val;
@@ -2,27 +2,62 @@
2
2
  <div class="w-thx">
3
3
  <template v-if="type === 'batchReward'">
4
4
  <!-- 批量打赏 -->
5
- <batch-reward :postType="postType" :items="postId" :boxcoin="boxcoin" :userId="userId" :own="admin_left" :points="admin_points"
6
- :authors="authors" :client="client" v-if="hasRight && adminBoxcoinEnable && boxcoin_enable" :max="admin_max"
7
- :min="admin_min" :total="admin_total"
8
- @updateRecord="updateRecord" />
5
+ <batch-reward
6
+ :postType="postType"
7
+ :items="postId"
8
+ :boxcoin="boxcoin"
9
+ :userId="userId"
10
+ :own="admin_left"
11
+ :points="admin_points"
12
+ :authors="authors"
13
+ :client="client"
14
+ v-if="hasRight && adminBoxcoinEnable && boxcoin_enable"
15
+ :max="admin_max"
16
+ :min="admin_min"
17
+ :total="admin_total"
18
+ @updateRecord="updateRecord"
19
+ />
9
20
  </template>
10
21
  <template v-else>
11
22
  <div class="w-thx-panel">
12
- <boxcoin-admin :postId="postId" :postType="postType"
13
- v-if="hasRight && adminBoxcoinEnable && boxcoin_enable" :userId="userId" :max="admin_max"
14
- :min="admin_min" :own="admin_left" :total="admin_total" :points="admin_points" :authors="authors"
15
- @updateRecord="updateRecord" :client="client" />
23
+ <boxcoin-admin
24
+ :postId="postId"
25
+ :postType="postType"
26
+ v-if="hasRight && adminBoxcoinEnable && boxcoin_enable"
27
+ :userId="userId"
28
+ :max="admin_max"
29
+ :min="admin_min"
30
+ :own="admin_left"
31
+ :total="admin_total"
32
+ :points="admin_points"
33
+ :authors="authors"
34
+ @updateRecord="updateRecord"
35
+ :client="client"
36
+ />
16
37
  <Like :postId="postId" :postType="postType"></Like>
17
38
  <fav :postId="postId" :postType="postType" :postTitle="postTitle"></fav>
18
- <boxcoin-user :postId="postId" :postType="postType" :boxcoin="boxcoin" :userId="userId" :own="user_left"
19
- :points="user_points" :authors="authors" v-if="userBoxcoinEnable && boxcoin_enable && allowGift"
20
- @updateRecord="updateRecord" :client="client" />
39
+ <boxcoin-user
40
+ :postId="postId"
41
+ :postType="postType"
42
+ :boxcoin="boxcoin"
43
+ :userId="userId"
44
+ :own="user_left"
45
+ :points="user_points"
46
+ :authors="authors"
47
+ v-if="userBoxcoinEnable && boxcoin_enable && allowGift"
48
+ @updateRecord="updateRecord"
49
+ :client="client"
50
+ />
21
51
  <Share :postId="postId" :postType="postType" :client="client" />
22
52
  </div>
23
53
  <div class="w-thx-records">
24
- <boxcoin-records :postId="postId" :postType="postType" :postClient="client" :cacheRecord="cacheRecord"
25
- :mode="mode" />
54
+ <boxcoin-records
55
+ :postId="postId"
56
+ :postType="postType"
57
+ :postClient="client"
58
+ :cacheRecord="cacheRecord"
59
+ :mode="mode"
60
+ />
26
61
  </div>
27
62
  <div class="w-thx-copyright">
28
63
  &copy;
@@ -30,7 +65,6 @@
30
65
  签约作者独家特约稿件,及所有魔盒官方评分作品用户一经兑现则视为有偿付费稿件,所有商业稿件的转载引用需同时征得魔盒平台授权。
31
66
  </div>
32
67
  </template>
33
-
34
68
  </div>
35
69
  </template>
36
70
 
@@ -52,7 +86,7 @@ export default {
52
86
  default: "normal",
53
87
  },
54
88
  postId: {
55
- type: [Number, Array],
89
+ type: [Number, Array, String],
56
90
  default: 0,
57
91
  },
58
92
  postType: {
@@ -167,7 +201,7 @@ export default {
167
201
  this.cacheRecord = data;
168
202
  },
169
203
  },
170
- created: function () { },
204
+ created: function () {},
171
205
  };
172
206
  </script>
173
207