@titaui/pc 1.15.15 → 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.
- package/lib/components/guide-tip/index.js +3 -1
- package/lib/components/nav-top/index.js +4 -6
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +2 -0
- package/lib/components/okr-review/components/ReviewItem/index.js +12 -25
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components-v1/textarea/index.js +3 -0
- package/lib/utils/mblog.js +2 -1
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ var _popup = _interopRequireDefault(require("../popup"));
|
|
|
15
15
|
|
|
16
16
|
var _button = _interopRequireDefault(require("../button"));
|
|
17
17
|
|
|
18
|
+
var _getLocale = require("../../utils/getLocale");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
var _excluded = ["type", "width", "time", "children", "popupPlacement", "classnames", "content", "onClickClose", "buttonTitle", "visible"];
|
|
@@ -50,7 +52,7 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
50
52
|
_props$onClickClose = props.onClickClose,
|
|
51
53
|
onClickClose = _props$onClickClose === void 0 ? function () {} : _props$onClickClose,
|
|
52
54
|
_props$buttonTitle = props.buttonTitle,
|
|
53
|
-
buttonTitle = _props$buttonTitle === void 0 ? '
|
|
55
|
+
buttonTitle = _props$buttonTitle === void 0 ? (0, _getLocale.getLocale)('TopMenu_button_InvitColleagues') : _props$buttonTitle,
|
|
54
56
|
_props$visible = props.visible,
|
|
55
57
|
visible = _props$visible === void 0 ? false : _props$visible,
|
|
56
58
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
@@ -363,12 +363,10 @@ var NavTop = function NavTop() {
|
|
|
363
363
|
var okrIndex = (0, _bsGlobal.getBSGlobal)('WebHead').AppHead.findIndex(function (item) {
|
|
364
364
|
return item.AppId === '113';
|
|
365
365
|
});
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
return
|
|
369
|
-
}
|
|
370
|
-
return false;
|
|
371
|
-
}
|
|
366
|
+
var newNavigation = (0, _bsGlobal.getBSGlobal)('newNavigation');
|
|
367
|
+
return newNavigation.findIndex(function (v) {
|
|
368
|
+
return v.appId === 113;
|
|
369
|
+
}) !== -1 && okrIndex;
|
|
372
370
|
};
|
|
373
371
|
|
|
374
372
|
(0, _react.useEffect)(function () {
|
|
@@ -271,6 +271,8 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
271
271
|
_this._handlerStandardModeProblemChange = function (value) {
|
|
272
272
|
var data = _objectSpread({}, _this.state.data);
|
|
273
273
|
|
|
274
|
+
console.log((0, _mblog.htmlEncodeByRegExp)(value));
|
|
275
|
+
|
|
274
276
|
_this._updateReviewData(data, "Drawback", value);
|
|
275
277
|
};
|
|
276
278
|
|
|
@@ -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
|
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _i18nFrontTranslate = require("../../utils/i18n-front-translate");
|
|
13
13
|
|
|
14
|
+
var _mblog = require("../../utils/mblog");
|
|
15
|
+
|
|
14
16
|
var _style = require("./style");
|
|
15
17
|
|
|
16
18
|
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); }
|
|
@@ -147,6 +149,7 @@ var TextareaView = /*#__PURE__*/function (_PureComponent) {
|
|
|
147
149
|
isFocus = _this$state.isFocus,
|
|
148
150
|
isHasPlaceholder = _this$state.isHasPlaceholder;
|
|
149
151
|
var valueLen = value.length;
|
|
152
|
+
console.log(123, (0, _mblog.htmlDecodeByRegExp)(value));
|
|
150
153
|
return /*#__PURE__*/_react["default"].createElement(_style.TextareaWrapper, {
|
|
151
154
|
className: className,
|
|
152
155
|
style: style
|
package/lib/utils/mblog.js
CHANGED
|
@@ -22,7 +22,8 @@ function htmlEncodeByRegExp(str) {
|
|
|
22
22
|
function htmlDecodeByRegExp(str) {
|
|
23
23
|
var temp = "";
|
|
24
24
|
if (str.length == 0) return "";
|
|
25
|
-
temp = str.replace(
|
|
25
|
+
temp = str.replace(/<br\/>/g, "\n");
|
|
26
|
+
temp = temp.replace(/&/g, "&");
|
|
26
27
|
temp = temp.replace(/</g, "<");
|
|
27
28
|
temp = temp.replace(/>/g, ">");
|
|
28
29
|
temp = temp.replace(/ /g, " ");
|