@titaui/pc 1.15.18 → 1.15.19
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.
|
@@ -45,35 +45,23 @@ var ReviewItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(ReviewItem);
|
|
46
46
|
|
|
47
47
|
function ReviewItem() {
|
|
48
|
-
var _this;
|
|
49
|
-
|
|
50
48
|
_classCallCheck(this, ReviewItem);
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
args[_key] = arguments[_key];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this._handlerLinkToReviewDetail = function () {
|
|
57
|
-
var _this$props = _this.props,
|
|
58
|
-
feedId = _this$props.feedId,
|
|
59
|
-
reviewItemData = _this$props.reviewItemData,
|
|
60
|
-
krIndex = _this$props.krIndex,
|
|
61
|
-
editAble = _this$props.editAble;
|
|
62
|
-
window.open("".concat(location.pathname, "#okr/reviewDetail?okrId=8077&back=").concat(location.hash, "&replayId=").concat(reviewItemData.replayId, "&feedId=").concat(feedId, "&krIndex=").concat(krIndex, "&editAble=").concat(editAble));
|
|
63
|
-
}, _assertThisInitialized(_this)));
|
|
50
|
+
return _super.apply(this, arguments);
|
|
64
51
|
}
|
|
65
52
|
|
|
66
53
|
_createClass(ReviewItem, [{
|
|
67
54
|
key: "render",
|
|
68
55
|
value: function render() {
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
isCompactMode = _this$
|
|
74
|
-
editReview = _this$
|
|
75
|
-
reviewItemData = _this$
|
|
76
|
-
editAble = _this$
|
|
56
|
+
var _this$props = this.props,
|
|
57
|
+
className = _this$props.className,
|
|
58
|
+
feedId = _this$props.feedId,
|
|
59
|
+
krIndex = _this$props.krIndex,
|
|
60
|
+
isCompactMode = _this$props.isCompactMode,
|
|
61
|
+
editReview = _this$props.editReview,
|
|
62
|
+
reviewItemData = _this$props.reviewItemData,
|
|
63
|
+
editAble = _this$props.editAble;
|
|
64
|
+
var href = "".concat(location.pathname, "#okr/reviewDetail?okrId=8077&back=").concat(location.hash, "&replayId=").concat(reviewItemData.replayId, "&feedId=").concat(feedId, "&krIndex=").concat(krIndex, "&editAble=").concat(editAble);
|
|
77
65
|
return /*#__PURE__*/_react["default"].createElement(_style.ReviewItemContainer, {
|
|
78
66
|
className: className,
|
|
79
67
|
mode: isCompactMode ? 0 : 1
|
|
@@ -87,9 +75,8 @@ var ReviewItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
87
75
|
}, /*#__PURE__*/_react["default"].createElement(_style.IconEdit, {
|
|
88
76
|
className: "tu-icon-bianji"
|
|
89
77
|
}), /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Mod_Editor"))), /*#__PURE__*/_react["default"].createElement(_style.ItemDetail, {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
78
|
+
href: href,
|
|
79
|
+
target: "_blank"
|
|
93
80
|
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Mod_Checkdetails")), /*#__PURE__*/_react["default"].createElement(_style.IconDetail, {
|
|
94
81
|
className: "tu-icon-xiangqing"
|
|
95
82
|
}))));
|
|
@@ -37,7 +37,7 @@ var ItemEdit = _styledComponents["default"].div(_templateObject4 || (_templateOb
|
|
|
37
37
|
|
|
38
38
|
exports.ItemEdit = ItemEdit;
|
|
39
39
|
|
|
40
|
-
var ItemDetail = _styledComponents["default"].
|
|
40
|
+
var ItemDetail = _styledComponents["default"].a(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: 20px;\n color: #2879ff;\n \n &:hover {\n color: #5C8EFF;\n }\n"])));
|
|
41
41
|
|
|
42
42
|
exports.ItemDetail = ItemDetail;
|
|
43
43
|
|