浏览代码

fix:头像hover弹框点击回调修改

zhengyingya 5 年前
父节点
当前提交
6f9d57501b

+ 1
- 1
lib/components/CommentInput/index.js.map
文件差异内容过多而无法显示
查看文件


+ 3
- 1
lib/components/ContentItem/AvatarHoverCard.js 查看文件

@@ -77,7 +77,9 @@ var AvatarHoverCard = function (_Component) {
77 77
           } },
78 78
         _react2.default.createElement(
79 79
           "div",
80
-          { onClick: this.props.userAvaClick },
80
+          { onClick: function onClick() {
81
+              return _this2.props.userAvaClick(user_id);
82
+            } },
81 83
           _react2.default.createElement(
82 84
             _row2.default,
83 85
             { type: "flex", className: "rowUser" },

+ 1
- 1
lib/components/ContentItem/AvatarHoverCard.js.map
文件差异内容过多而无法显示
查看文件


+ 1
- 0
lib/components/ContentItem/AvatarHoverCard.less 查看文件

@@ -5,6 +5,7 @@
5 5
 
6 6
 .rowUser {
7 7
   align-items: center;
8
+  cursor: pointer;
8 9
 }
9 10
 .avatar {
10 11
   width: 48px;

+ 1
- 1
lib/components/ContentItem/index.js.map
文件差异内容过多而无法显示
查看文件


+ 4
- 4
lib/version.json 查看文件

@@ -1,8 +1,8 @@
1 1
 {
2 2
     "name":       "comment",
3
-    "buildDate":  1562985105668,
3
+    "buildDate":  1563244545737,
4 4
     "version":    "1.0.4",
5
-    "numCommits": 161,
6
-    "hash":       "a7dfeba",
7
-    "dirty":      true
5
+    "numCommits": 162,
6
+    "hash":       "388cc92",
7
+    "dirty":      false
8 8
 }

+ 1
- 1
src/components/ContentItem/AvatarHoverCard.js 查看文件

@@ -25,7 +25,7 @@ class AvatarHoverCard extends Component {
25 25
     return (
26 26
       <div className="AvatarHoverCard" onClick={e => e.stopPropagation()}>
27 27
         {/* <Link to={`/bilingual/user/${user_id}`}> */}
28
-        <div onClick={this.props.userAvaClick}>
28
+        <div onClick={() => this.props.userAvaClick(user_id)}>
29 29
           <Row type="flex" className="rowUser">
30 30
             <div
31 31
               className="avatar"

+ 1
- 0
src/components/ContentItem/AvatarHoverCard.less 查看文件

@@ -5,6 +5,7 @@
5 5
 
6 6
 .rowUser {
7 7
   align-items: center;
8
+  cursor: pointer;
8 9
 }
9 10
 .avatar {
10 11
   width: 48px;