@titaui/pc 1.9.44 → 1.9.45
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/lib/components/change-okr-modal/index.js +2 -2
- package/lib/components/common-share/publishMblog.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +11 -12
- package/lib/components/dynamic/dynamic-like-ranking/index.js +10 -8
- package/lib/components/dynamic/dynamic-like-ranking/item.js +10 -12
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -1
- package/package.json +1 -1
- package/src/components/change-okr-modal/index.tsx +2 -2
- package/src/components/common-share/publishMblog.tsx +1 -1
- package/src/components/create-okr-modal/fields/okr-visibility-detail.tsx +2 -1
- package/src/components/dynamic/dynamic-like-ranking/index.scss +12 -12
- package/src/components/dynamic/dynamic-like-ranking/index.tsx +17 -11
- package/src/components/dynamic/dynamic-like-ranking/item.tsx +23 -28
- package/src/components/edit-kr-wight/EditKrWightModal.tsx +1 -0
|
@@ -308,9 +308,9 @@ var ChangeOkr = /*#__PURE__*/function (_PureComponent) {
|
|
|
308
308
|
onClick: function onClick() {
|
|
309
309
|
return _this3.getListData(true);
|
|
310
310
|
}
|
|
311
|
-
}, loadingMore ? '
|
|
311
|
+
}, loadingMore ? (0, _getLocale.getLocale)('Mod_loading') + '…' : (0, _getLocale.getLocale)('OKR_MyO_Butt_Loadmore'), /*#__PURE__*/_react["default"].createElement("i", {
|
|
312
312
|
className: "tu-icon-arrow-down"
|
|
313
|
-
}))), !!data.length && isEnd && /*#__PURE__*/_react["default"].createElement(_styledComponents.NoMore, null, "\
|
|
313
|
+
}))), !!data.length && isEnd && /*#__PURE__*/_react["default"].createElement(_styledComponents.NoMore, null, (0, _getLocale.getLocale)('Mod_Nomore'), "\uFF5E"))), /*#__PURE__*/_react["default"].createElement(_styledComponents.Footer, null, okrPopType === 1 && parentId != 0 && !hideCancelBtn && /*#__PURE__*/_react["default"].createElement(_styledComponents.Button, {
|
|
314
314
|
type: "confirm",
|
|
315
315
|
onClick: this.handleUnConnect
|
|
316
316
|
}, (0, _getLocale.getLocale)('OKR_MyO_Text_Cancel')), /*#__PURE__*/_react["default"].createElement(_styledComponents.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_styledComponents.Button, {
|
|
@@ -59,7 +59,7 @@ function PublishMblog(_ref) {
|
|
|
59
59
|
closeModal = _ref.closeModal,
|
|
60
60
|
uid = _ref.uid,
|
|
61
61
|
_ref$defaultContent = _ref.defaultContent,
|
|
62
|
-
defaultContent = _ref$defaultContent === void 0 ?
|
|
62
|
+
defaultContent = _ref$defaultContent === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Popup_ShowmyOKR') : _ref$defaultContent;
|
|
63
63
|
|
|
64
64
|
var _useState = (0, _react.useState)({
|
|
65
65
|
url: "",
|
|
@@ -67,29 +67,24 @@
|
|
|
67
67
|
margin: auto;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.danamic-like-
|
|
71
|
-
display:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
margin-bottom: 16px;
|
|
70
|
+
.danamic-like-ranking__content-table-items {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-template-columns: auto auto auto auto;
|
|
73
|
+
grid-row-gap: 16px;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
.danamic-like-ranking__item:last-of-type {
|
|
78
77
|
margin-bottom: unset;
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
.danamic-like-ranking__item-
|
|
80
|
+
.danamic-like-ranking__item-pre {
|
|
82
81
|
display: flex;
|
|
83
82
|
align-items: center;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
.danamic-like-ranking__item-pre {
|
|
87
|
-
width: 21px;
|
|
88
|
-
text-align: center;
|
|
83
|
+
justify-content: center;
|
|
89
84
|
}
|
|
90
85
|
|
|
91
86
|
.danamic-like-ranking__item-medal {
|
|
92
|
-
width: 21px;
|
|
87
|
+
min-width: 21px;
|
|
93
88
|
height: 24px;
|
|
94
89
|
}
|
|
95
90
|
|
|
@@ -107,6 +102,8 @@
|
|
|
107
102
|
|
|
108
103
|
.danamic-like-ranking__item-name {
|
|
109
104
|
margin-left: 8px;
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
110
107
|
}
|
|
111
108
|
|
|
112
109
|
.danamic-like-ranking__item-like-text {
|
|
@@ -114,6 +111,8 @@
|
|
|
114
111
|
font-weight: 400;
|
|
115
112
|
color: #89919f;
|
|
116
113
|
line-height: 22px;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
.danamic-like-ranking__item-like-num {
|
|
@@ -54,7 +54,7 @@ var DynamicLikeRanking = function DynamicLikeRanking() {
|
|
|
54
54
|
rankingData = _useState2[0],
|
|
55
55
|
setRankingData = _useState2[1];
|
|
56
56
|
|
|
57
|
-
var _useState3 = (0, _react.useState)((0, _getLocale.getLocale)(
|
|
57
|
+
var _useState3 = (0, _react.useState)((0, _getLocale.getLocale)("Mod_all")),
|
|
58
58
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
59
|
type = _useState4[0],
|
|
60
60
|
setType = _useState4[1];
|
|
@@ -115,10 +115,10 @@ var DynamicLikeRanking = function DynamicLikeRanking() {
|
|
|
115
115
|
var createDate = "";
|
|
116
116
|
var endDate = "";
|
|
117
117
|
|
|
118
|
-
if (item == (0, _getLocale.getLocale)(
|
|
118
|
+
if (item == (0, _getLocale.getLocale)("Feed_Tab_Title_Thismonth")) {
|
|
119
119
|
createDate = (0, _formatTime.showMonthFirstDay)();
|
|
120
120
|
endDate = (0, _formatTime.showNextMonthFirstDay)();
|
|
121
|
-
} else if (item == (0, _getLocale.getLocale)(
|
|
121
|
+
} else if (item == (0, _getLocale.getLocale)("Feed_Tab_Title_Thisweek")) {
|
|
122
122
|
createDate = (0, _formatTime.showWeekFirstDay)();
|
|
123
123
|
endDate = (0, _formatTime.showNextWeekFirstDay)();
|
|
124
124
|
}
|
|
@@ -130,7 +130,7 @@ var DynamicLikeRanking = function DynamicLikeRanking() {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
var TabBar = function TabBar() {
|
|
133
|
-
var typeData = [(0, _getLocale.getLocale)(
|
|
133
|
+
var typeData = [(0, _getLocale.getLocale)("Mod_all"), (0, _getLocale.getLocale)("Feed_Tab_Title_Thisweek"), (0, _getLocale.getLocale)("Feed_Tab_Title_Thismonth")];
|
|
134
134
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
135
|
className: "".concat(preCls, "__tab-bar")
|
|
136
136
|
}, typeData.map(function (item, key) {
|
|
@@ -155,10 +155,10 @@ var DynamicLikeRanking = function DynamicLikeRanking() {
|
|
|
155
155
|
src: require("./image/like-ranking.svg")
|
|
156
156
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
157
157
|
className: (0, _classnames["default"])("".concat(preCls, "__header-text"))
|
|
158
|
-
}, (0, _getLocale.getLocale)(
|
|
158
|
+
}, (0, _getLocale.getLocale)("Feed_Title_Likeranking"))), Auth.hasPraiseAuth() && /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
159
|
className: (0, _classnames["default"])("".concat(preCls, "__header-right")),
|
|
160
160
|
onClick: handleLinkToPraiseRaking
|
|
161
|
-
}, (0, _getLocale.getLocale)(
|
|
161
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_More"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
162
|
className: (0, _classnames["default"])("".concat(preCls, "__content"))
|
|
163
163
|
}, TabBar(), /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
164
|
className: (0, _classnames["default"])("".concat(preCls, "__content-table"))
|
|
@@ -166,12 +166,14 @@ var DynamicLikeRanking = function DynamicLikeRanking() {
|
|
|
166
166
|
className: "".concat(preCls, "__content-table-empty")
|
|
167
167
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
168
168
|
className: "".concat(preCls, "__content-table-empty-text")
|
|
169
|
-
}, "\u6682\u65E0\u6392\u884C")), rankingData && rankingData.length > 0 &&
|
|
169
|
+
}, "\u6682\u65E0\u6392\u884C")), rankingData && rankingData.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: (0, _classnames["default"])("".concat(preCls, "__content-table-items"))
|
|
171
|
+
}, rankingData.map(function (item, index) {
|
|
170
172
|
return /*#__PURE__*/_react["default"].createElement(_item["default"], {
|
|
171
173
|
userInfo: item,
|
|
172
174
|
key: index
|
|
173
175
|
});
|
|
174
|
-
}))));
|
|
176
|
+
})))));
|
|
175
177
|
};
|
|
176
178
|
|
|
177
179
|
var _default = DynamicLikeRanking;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
12
|
var _avatar = _interopRequireDefault(require("../../avatar"));
|
|
13
13
|
|
|
@@ -23,6 +23,10 @@ require("./index.css");
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
26
30
|
var preCls = "danamic-like-ranking__item";
|
|
27
31
|
|
|
28
32
|
var Item = function Item(_ref) {
|
|
@@ -70,11 +74,7 @@ var Item = function Item(_ref) {
|
|
|
70
74
|
// window.open(url, "_blank");
|
|
71
75
|
// };
|
|
72
76
|
|
|
73
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
|
-
className: (0, _classnames["default"])("".concat(preCls))
|
|
75
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
-
className: (0, _classnames["default"])("".concat(preCls, "-left"))
|
|
77
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
78
|
className: "".concat(preCls, "-pre")
|
|
79
79
|
}, formatRaking(rankNum)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
80
|
className: "".concat(preCls, "-avatar")
|
|
@@ -96,13 +96,11 @@ var Item = function Item(_ref) {
|
|
|
96
96
|
name: name
|
|
97
97
|
}),
|
|
98
98
|
maxWidth: 120
|
|
99
|
-
}))
|
|
100
|
-
className: (0, _classnames["default"])("".concat(preCls, "-left"))
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
100
|
className: "".concat(preCls, "-like-text")
|
|
103
101
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
102
|
className: "".concat(preCls, "-like-num")
|
|
105
|
-
}, (0, _bsGlobal.formatNum)(pariseNums)), (0, _getLocale.getLocale)(
|
|
103
|
+
}, (0, _bsGlobal.formatNum)(pariseNums)), (0, _getLocale.getLocale)("Mod_Kudos")));
|
|
106
104
|
};
|
|
107
105
|
|
|
108
106
|
var _default = Item;
|
|
@@ -303,7 +303,8 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
|
|
|
303
303
|
,
|
|
304
304
|
onClose: this.onModalClose,
|
|
305
305
|
onOk: this.handleOk,
|
|
306
|
-
onCancel: this.handleCancel
|
|
306
|
+
onCancel: this.handleCancel,
|
|
307
|
+
zIndex: 2000
|
|
307
308
|
}, /*#__PURE__*/_react["default"].createElement(_style.EditWightContent, null, milepostData && milepostData.map(function (data, index) {
|
|
308
309
|
var feedId = data.feedId,
|
|
309
310
|
mileStoneId = data.mileStoneId,
|
package/package.json
CHANGED
|
@@ -422,12 +422,12 @@ export default class ChangeOkr extends PureComponent<Props, State> {
|
|
|
422
422
|
{!!data.length && !isEnd && (
|
|
423
423
|
<LoadMore>
|
|
424
424
|
<a onClick={() => this.getListData(true)}>
|
|
425
|
-
{loadingMore ? '
|
|
425
|
+
{loadingMore ? getLocale('Mod_loading') + '…' : getLocale('OKR_MyO_Butt_Loadmore')}
|
|
426
426
|
<i className='tu-icon-arrow-down' />
|
|
427
427
|
</a>
|
|
428
428
|
</LoadMore>
|
|
429
429
|
)}
|
|
430
|
-
{!!data.length && isEnd && <NoMore
|
|
430
|
+
{!!data.length && isEnd && <NoMore>{getLocale('Mod_Nomore')}~</NoMore>}
|
|
431
431
|
</List>
|
|
432
432
|
</Body>
|
|
433
433
|
<Footer>
|
|
@@ -22,7 +22,7 @@ function PublishMblog({
|
|
|
22
22
|
getModalRef,
|
|
23
23
|
closeModal,
|
|
24
24
|
uid,
|
|
25
|
-
defaultContent=
|
|
25
|
+
defaultContent = getLocale('OKR_MyO_Popup_ShowmyOKR')
|
|
26
26
|
}: Props): ReactElement {
|
|
27
27
|
const [file, setFile] = useState({ url: "", pending: true });
|
|
28
28
|
const [status, setStatus] = useState(0);
|
|
@@ -64,31 +64,27 @@
|
|
|
64
64
|
margin: auto;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
&-items {
|
|
68
|
+
display: grid;
|
|
69
|
+
grid-template-columns: auto auto auto auto;
|
|
70
|
+
grid-row-gap: 16px;
|
|
71
|
+
}
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
&__item {
|
|
71
|
-
display: flex;
|
|
72
|
-
justify-content: space-between;
|
|
73
|
-
align-items: center;
|
|
74
|
-
margin-bottom: 16px;
|
|
75
|
-
|
|
76
76
|
&:last-of-type {
|
|
77
77
|
margin-bottom: unset;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
&-
|
|
80
|
+
&-pre {
|
|
81
81
|
display: flex;
|
|
82
82
|
align-items: center;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
&-pre {
|
|
86
|
-
width: 21px;
|
|
87
|
-
text-align: center;
|
|
83
|
+
justify-content: center;
|
|
88
84
|
}
|
|
89
85
|
|
|
90
86
|
&-medal {
|
|
91
|
-
width: 21px;
|
|
87
|
+
min-width: 21px;
|
|
92
88
|
height: 24px;
|
|
93
89
|
}
|
|
94
90
|
|
|
@@ -106,6 +102,8 @@
|
|
|
106
102
|
|
|
107
103
|
&-name {
|
|
108
104
|
margin-left: 8px;
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
&-like-text {
|
|
@@ -113,6 +111,8 @@
|
|
|
113
111
|
font-weight: 400;
|
|
114
112
|
color: #89919f;
|
|
115
113
|
line-height: 22px;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
&-like-num {
|
|
@@ -18,7 +18,7 @@ const Auth = new DynamicManagerAuth();
|
|
|
18
18
|
|
|
19
19
|
const DynamicLikeRanking: FC = () => {
|
|
20
20
|
const [rankingData, setRankingData] = useState([]);
|
|
21
|
-
const [type, setType] = useState(getLocale(
|
|
21
|
+
const [type, setType] = useState(getLocale("Mod_all"));
|
|
22
22
|
const [date, setDate] = useState({ createDate: "", endDate: "" });
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
const { createDate, endDate } = date;
|
|
@@ -62,10 +62,10 @@ const DynamicLikeRanking: FC = () => {
|
|
|
62
62
|
setType(item);
|
|
63
63
|
let createDate = "";
|
|
64
64
|
let endDate = "";
|
|
65
|
-
if (item == getLocale(
|
|
65
|
+
if (item == getLocale("Feed_Tab_Title_Thismonth")) {
|
|
66
66
|
createDate = showMonthFirstDay();
|
|
67
67
|
endDate = showNextMonthFirstDay();
|
|
68
|
-
} else if (item == getLocale(
|
|
68
|
+
} else if (item == getLocale("Feed_Tab_Title_Thisweek")) {
|
|
69
69
|
createDate = showWeekFirstDay();
|
|
70
70
|
endDate = showNextWeekFirstDay();
|
|
71
71
|
}
|
|
@@ -73,7 +73,11 @@ const DynamicLikeRanking: FC = () => {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
const TabBar = () => {
|
|
76
|
-
const typeData = [
|
|
76
|
+
const typeData = [
|
|
77
|
+
getLocale("Mod_all"),
|
|
78
|
+
getLocale("Feed_Tab_Title_Thisweek"),
|
|
79
|
+
getLocale("Feed_Tab_Title_Thismonth"),
|
|
80
|
+
];
|
|
77
81
|
return (
|
|
78
82
|
<div className={`${preCls}__tab-bar`}>
|
|
79
83
|
{typeData.map((item, key) => {
|
|
@@ -102,7 +106,7 @@ const DynamicLikeRanking: FC = () => {
|
|
|
102
106
|
src={require("./image/like-ranking.svg")}
|
|
103
107
|
></img>
|
|
104
108
|
<span className={classNames(`${preCls}__header-text`)}>
|
|
105
|
-
{getLocale(
|
|
109
|
+
{getLocale("Feed_Title_Likeranking")}
|
|
106
110
|
</span>
|
|
107
111
|
</div>
|
|
108
112
|
{Auth.hasPraiseAuth() && (
|
|
@@ -110,7 +114,7 @@ const DynamicLikeRanking: FC = () => {
|
|
|
110
114
|
className={classNames(`${preCls}__header-right`)}
|
|
111
115
|
onClick={handleLinkToPraiseRaking}
|
|
112
116
|
>
|
|
113
|
-
{getLocale(
|
|
117
|
+
{getLocale("Feed_Set_Pop_Butt_More")}
|
|
114
118
|
</div>
|
|
115
119
|
)}
|
|
116
120
|
</div>
|
|
@@ -125,11 +129,13 @@ const DynamicLikeRanking: FC = () => {
|
|
|
125
129
|
</span>
|
|
126
130
|
</div>
|
|
127
131
|
))}
|
|
128
|
-
{rankingData &&
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
{rankingData && rankingData.length > 0 && (
|
|
133
|
+
<div className={classNames(`${preCls}__content-table-items`)}>
|
|
134
|
+
{rankingData.map((item, index) => {
|
|
135
|
+
return <Item userInfo={item} key={index}></Item>;
|
|
136
|
+
})}
|
|
137
|
+
</div>
|
|
138
|
+
)}
|
|
133
139
|
</div>
|
|
134
140
|
</div>
|
|
135
141
|
</div>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
|
-
import classNames from "classnames";
|
|
1
|
+
import React, { FC, Fragment } from "react";
|
|
3
2
|
import Avatar from "../../avatar";
|
|
4
3
|
import { formatNum } from "../../../utils/bs-global";
|
|
5
4
|
import { OpenUserName } from "../../../utils/open-data";
|
|
6
|
-
import Tooltip from
|
|
5
|
+
import Tooltip from "../../tooltip";
|
|
7
6
|
import { getLocale } from "../../../utils/getLocale";
|
|
8
7
|
import "./index.scss";
|
|
9
8
|
const preCls = "danamic-like-ranking__item";
|
|
@@ -42,7 +41,7 @@ const Item: FC<any> = ({ userInfo }) => {
|
|
|
42
41
|
if (!userInfo || Object.keys(userInfo).length === 0) return null;
|
|
43
42
|
const { rankNum, user, pariseNums } = userInfo;
|
|
44
43
|
const { avatar, name, userId, userType } = user;
|
|
45
|
-
|
|
44
|
+
|
|
46
45
|
// 之后要用
|
|
47
46
|
// const url = getUrlForUserPage({
|
|
48
47
|
// userId: userId,
|
|
@@ -54,32 +53,28 @@ const Item: FC<any> = ({ userInfo }) => {
|
|
|
54
53
|
// };
|
|
55
54
|
|
|
56
55
|
return (
|
|
57
|
-
<
|
|
58
|
-
<div className={
|
|
59
|
-
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/>
|
|
74
|
-
</div>
|
|
56
|
+
<Fragment>
|
|
57
|
+
<div className={`${preCls}-pre`}>{formatRaking(rankNum)}</div>
|
|
58
|
+
<div className={`${preCls}-avatar`}>
|
|
59
|
+
<Avatar
|
|
60
|
+
name={name}
|
|
61
|
+
src={avatar.small}
|
|
62
|
+
color={avatar.color}
|
|
63
|
+
userId={userId}
|
|
64
|
+
size={{ width: 28, textNum: 1, fontSize: 14 }}
|
|
65
|
+
/>
|
|
66
|
+
</div>
|
|
67
|
+
<div className={`${preCls}-name`}>
|
|
68
|
+
<Tooltip.Text
|
|
69
|
+
text={<OpenUserName id={userId} name={name} />}
|
|
70
|
+
maxWidth={120}
|
|
71
|
+
/>
|
|
75
72
|
</div>
|
|
76
|
-
<div className={
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
{getLocale('Mod_Kudos')}
|
|
80
|
-
</div>
|
|
73
|
+
<div className={`${preCls}-like-text`}>
|
|
74
|
+
<span className={`${preCls}-like-num`}>{formatNum(pariseNums)}</span>
|
|
75
|
+
{getLocale("Mod_Kudos")}
|
|
81
76
|
</div>
|
|
82
|
-
</
|
|
77
|
+
</Fragment>
|
|
83
78
|
);
|
|
84
79
|
};
|
|
85
80
|
|