@jx3box/jx3box-common-ui 8.9.25 → 8.9.27

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.9.25",
3
+ "version": "8.9.27",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@ import { hasFav, addFav, delFav } from "../../service/fav";
16
16
  import { __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
17
17
  export default {
18
18
  name: "Fav2",
19
- props: ["postType", "postId", "postTitle", "hiddenNum"],
19
+ props: ["postType", "postId", "postTitle", "hiddenNum", "isOld"],
20
20
  data: function () {
21
21
  return {
22
22
  login: User.isLogin(),
@@ -29,10 +29,10 @@ export default {
29
29
  return this.favorite ? "已收藏" : "收藏";
30
30
  },
31
31
  starIcon() {
32
- return __cdn + "design/vector/icon/collect.svg"
32
+ return this.isOld ? require("../../assets/img/widget/star.svg") : __cdn + "design/vector/icon/collect.svg"
33
33
  },
34
34
  unstarIcon() {
35
- return __cdn + "design/vector/icon/uncollect.svg"
35
+ return this.isOld ? require("../../assets/img/widget/unstar.svg") : __cdn + "design/vector/icon/uncollect.svg"
36
36
  },
37
37
  },
38
38
  methods: {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="c-right-affix" :class="{ 'is-close': !isOpen }">
3
3
  <div class="item">
4
- <fav :postId="postId" :postType="postType" :postTitle="postTitle" :hiddenNum="true"></fav>
4
+ <fav :postId="postId" :postType="postType" :postTitle="postTitle" :hiddenNum="true" :isOld="true"></fav>
5
5
  </div>
6
6
  <el-tooltip v-if="showComment" effect="dark" content="去评论" placement="left">
7
7
  <div class="u-item" @click="toComment">