@jx3box/jx3box-common-ui 9.0.1 → 9.0.3

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.
@@ -75,6 +75,21 @@
75
75
  .u-block{
76
76
  .mt(20px);
77
77
  }
78
+
79
+ .u-btn {
80
+ &:hover {
81
+ .u-msg-icon {
82
+ filter: invert(33%) sepia(39%) saturate(6852%) hue-rotate(201deg) brightness(87%) contrast(98%);
83
+ }
84
+ }
85
+ }
86
+
87
+ .u-msg-icon {
88
+ .size(12px);
89
+ .pr;
90
+ top: 2px;
91
+ filter: invert(40%) sepia(5%) saturate(419%) hue-rotate(182deg) brightness(89%) contrast(84%);
92
+ }
78
93
  }
79
94
 
80
95
  .c-sidebar-left .c-author {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.0.1",
3
+ "version": "9.0.3",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.9.9",
34
- "@jx3box/jx3box-common": "^8.4.7",
35
- "@jx3box/jx3box-data": "^3.6.9",
34
+ "@jx3box/jx3box-common": "^8.4.8",
35
+ "@jx3box/jx3box-data": "^3.7.0",
36
36
  "@jx3box/jx3box-editor": "^2.2.16",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
package/src/Author.vue CHANGED
@@ -6,7 +6,10 @@
6
6
  <!-- <AuthorFollow style="margin-right: 8px" :uid="uid" /> -->
7
7
  <AuthorRss style="margin-right: 8px" :uid="uid" />
8
8
  <!-- <AuthorGift :uid="uid" /> -->
9
- <el-button icon="el-icon-message" class="u-btn" size="mini" @click="onMessage">私信</el-button>
9
+ <el-button class="u-btn" size="mini" @click="onMessage">
10
+ <img class="u-msg-icon" svg-inline :src="src" />
11
+ 私信
12
+ </el-button>
10
13
  </div>
11
14
  <!-- <AuthorMsg :uid="uid" /> -->
12
15
  <AuthorLink class="u-block u-links" :uid="uid" :data="data" />
@@ -30,12 +33,14 @@ import AuthorMedals from "./author/AuthorMedals.vue";
30
33
  import AuthorTeams from "./author/AuthorTeams.vue";
31
34
  import AuthorPosts from "./author/AuthorPosts.vue";
32
35
  import AuthorRss from "./author/AuthorRss.vue";
36
+ import {__cdn} from "@jx3box/jx3box-common/data/jx3box.json";
33
37
  export default {
34
38
  name: "Author",
35
39
  props: ["uid"],
36
40
  data: function () {
37
41
  return {
38
42
  data: "",
43
+ src: __cdn + "design/vector/icon/message.svg",
39
44
  };
40
45
  },
41
46
  methods: {
@@ -2,7 +2,9 @@
2
2
  <div class="c-author-rss">
3
3
  <el-button
4
4
  class="u-btn"
5
+ :class="{ 'u-fans-box': isSelf }"
5
6
  size="mini"
7
+ plain
6
8
  @click="subscribe"
7
9
  :loading="loading"
8
10
  :disabled="isSelf"
@@ -49,7 +51,7 @@ export default {
49
51
  return User.isLogin();
50
52
  },
51
53
  src() {
52
- return __cdn + "design/vector/icon/rss_origin.svg";
54
+ return __cdn + "design/vector/icon/rss_author.svg";
53
55
  }
54
56
  },
55
57
  watch: {
@@ -128,17 +130,20 @@ export default {
128
130
  cursor: default;
129
131
  &:hover {
130
132
  cursor: pointer;
131
- // background-color: @light-pink;
132
- // color: #fff;
133
- // border-color: darken(@light-pink, 2%);
133
+ background-color: @light-pink;
134
+ color: #fff;
135
+ border-color: darken(@light-pink, 2%);
134
136
 
135
137
  .u-icon {
136
- filter: invert(30%) sepia(87%) saturate(1486%) hue-rotate(194deg) brightness(87%) contrast(107%);
138
+ filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(198deg) brightness(104%) contrast(101%);
137
139
  }
138
140
  }
139
141
  }
140
142
  .u-icon {
141
143
  .size(12px);
144
+ .pr;
145
+ top: 2px;
146
+ filter: invert(40%) sepia(5%) saturate(419%) hue-rotate(182deg) brightness(89%) contrast(84%);
142
147
  }
143
148
  }
144
149
 
@@ -42,6 +42,10 @@ export default {
42
42
  type: Boolean,
43
43
  default: false,
44
44
  },
45
+ title: {
46
+ type: String,
47
+ default: "",
48
+ },
45
49
  },
46
50
  data() {
47
51
  return {
@@ -87,6 +91,9 @@ export default {
87
91
  return {
88
92
  type: this.type,
89
93
  id: this.id,
94
+ data: {
95
+ title: this.title
96
+ }
90
97
  }
91
98
  },
92
99
  isLogin() {
@@ -38,7 +38,7 @@
38
38
  />
39
39
  <Like :postId="postId" :postType="postType"></Like>
40
40
  <fav :postId="postId" :postType="postType" :postTitle="postTitle"></fav>
41
- <Rss v-if="showRss" :type="postType" :id="postId"></Rss>
41
+ <Rss v-if="showRss" :type="postType" :id="postId" :title="postTitle"></Rss>
42
42
  <boxcoin-user
43
43
  v-if="userBoxcoinEnable && boxcoin_enable && allowGift"
44
44
  :postId="postId"