@jx3box/jx3box-common-ui 6.2.5 → 6.2.7

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": "6.2.5",
3
+ "version": "6.2.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  <LeftSidebar :open="true">
17
17
  <LeftSideToggle :mobileOnly="true" />
18
- <Author :author="author" :uid="28338" />
18
+ <Author :author="author" :uid="8" />
19
19
  </LeftSidebar>
20
20
 
21
21
  <Main :withoutLeft="false" :withoutRight="false">
@@ -29,13 +29,13 @@
29
29
  placement="top"
30
30
  v-if="index < 5"
31
31
  >
32
- <el-avatar class="u-avatar" shape="circle" :size="30" :src="showAvatar(item.pay_user.avatar)"
32
+ <a class="u-fan" :href="authorLink(item.pay_user_id)"><el-avatar class="u-avatar" shape="circle" :size="30" :src="showAvatar(item.pay_user.avatar)"
33
33
  ><i class="el-icon-s-custom"></i
34
- ></el-avatar>
34
+ ></el-avatar></a>
35
35
  </el-tooltip>
36
36
  </el-col>
37
37
  <el-col :span="4" v-if="list.length > 5">
38
- <el-avatar class="u-avatar" shape="circle" :size="30">
38
+ <el-avatar class="u-avatar u-more" shape="circle" :size="30">
39
39
  <span class="f-avatar-num" v-if="list.length > 99">···</span>
40
40
  <span class="f-avatar-num" v-else>+{{ list.length - 5 }}</span>
41
41
  </el-avatar>
@@ -48,7 +48,7 @@
48
48
 
49
49
  <script>
50
50
  import { getFansList } from "../../service/author";
51
- import { showAvatar } from "@jx3box/jx3box-common/js/utils";
51
+ import { showAvatar,authorLink } from "@jx3box/jx3box-common/js/utils";
52
52
  export default {
53
53
  name: "AuthorFans",
54
54
  props: {
@@ -71,6 +71,7 @@ export default {
71
71
  });
72
72
  },
73
73
  showAvatar,
74
+ authorLink,
74
75
  },
75
76
  watch: {
76
77
  uid: {
@@ -161,14 +162,11 @@ export default {
161
162
  .mt(10px);
162
163
  height: 30px;
163
164
  .f-avatar-num {
164
- .fz(10px);
165
- color: #434343;
165
+ .fz(12px);
166
+ color: #888;
166
167
  font-weight: 700;
167
168
  }
168
169
  }
169
- .u-avatar {
170
- background-color: #d9d9d9;
171
- }
172
170
  .f-bottom {
173
171
  .mt(10px);
174
172
  .fz(12px, 14px);
@@ -19,7 +19,7 @@
19
19
  placement="bottom"
20
20
  trigger="hover"
21
21
  popper-class="c-author-follow-popover"
22
- :visible-arrow="false"
22
+ :visible-arrow="true"
23
23
  >
24
24
  <div class="u-action-list">
25
25
  <div class="u-action-item" v-for="item in actions" :key="item.label" @click.stop="item.action">
@@ -58,7 +58,7 @@ export default {
58
58
  return this.isFollow ? "已关注" : "关注";
59
59
  },
60
60
  btnIcon() {
61
- return this.isSelf ? "" : this.isFollow ? "" : "el-icon-plus";
61
+ return this.isSelf ? "el-icon-plus" : this.isFollow ? "" : "el-icon-plus";
62
62
  },
63
63
  btnType() {
64
64
  return this.isFollow ? "info" : "warning";
@@ -161,19 +161,25 @@ export default {
161
161
  background: #ecf5ff;
162
162
  }
163
163
  }
164
- /*.u-trigger {
164
+
165
+ .u-fans-box {
166
+ cursor: not-allowed;
167
+ &:hover {
168
+ cursor: not-allowed;
169
+ }
170
+ }
171
+ .u-trigger {
165
172
  &:hover {
166
173
  cursor: default;
167
- background: unset;
168
174
  }
169
- }*/
175
+ }
170
176
  }
171
177
  .c-author-follow-popover {
172
178
  //.u-follow-popover {
173
179
  &.el-popover {
174
180
  min-width: 100px;
175
181
  padding: 0;
176
- margin: 0;
182
+ margin-top: 5px;
177
183
  .u-action-list {
178
184
  .u-action-item {
179
185
  text-align: center;