@jx3box/jx3box-common-ui 8.0.14 → 8.0.16

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.14",
3
+ "version": "8.0.16",
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.2",
34
+ "@jx3box/jx3box-common": "^8.1.4",
35
35
  "@jx3box/jx3box-data": "^3.5.6",
36
- "@jx3box/jx3box-editor": "^2.0.9",
36
+ "@jx3box/jx3box-editor": "^2.1.1",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
39
39
  "dayjs": "^1.11.0",
@@ -128,6 +128,14 @@ export default {
128
128
  return this.post?.client || "std";
129
129
  },
130
130
  },
131
+ watch: {
132
+ post: {
133
+ deep: true,
134
+ handler: function(val) {
135
+ this.countWords();
136
+ },
137
+ }
138
+ },
131
139
  methods: {
132
140
  showClientLabel: function(val) {
133
141
  return __clients[val];
@@ -142,7 +150,6 @@ export default {
142
150
  }
143
151
  },
144
152
  mounted: function() {
145
- this.countWords();
146
153
  },
147
154
  };
148
155
  </script>
@@ -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