@titaui/pc 1.12.18 → 1.12.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/nav-top/components/user-message/components/inform/inform-item.js +1 -4
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +7 -10
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +1 -4
- package/package.json +1 -1
|
@@ -250,10 +250,7 @@ function Inform(props) {
|
|
|
250
250
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-name"))
|
|
251
251
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
252
252
|
overlayClassName: "".concat(preCls, "__item-right-name-tooltip"),
|
|
253
|
-
text:
|
|
254
|
-
id: item.user.userId,
|
|
255
|
-
name: item.user.name
|
|
256
|
-
}),
|
|
253
|
+
text: (0, _openData.parseHtmlAndTextTag)(item.user.name),
|
|
257
254
|
maxWidth: 100,
|
|
258
255
|
mouseEnterDelay: 0.8
|
|
259
256
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -25,7 +25,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
25
25
|
|
|
26
26
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
27
|
|
|
28
|
-
var preCls =
|
|
28
|
+
var preCls = 'titaui-user-message-msg-reply';
|
|
29
29
|
|
|
30
30
|
function Reply(props) {
|
|
31
31
|
var item = props.item,
|
|
@@ -40,20 +40,20 @@ function Reply(props) {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
var getDescText = function getDescText() {
|
|
43
|
-
if (item.content.indexOf(
|
|
44
|
-
return
|
|
43
|
+
if (item.content.indexOf('@') !== -1) {
|
|
44
|
+
return '@我';
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
if (!item.content.trim() && item.attachments.length > 0) {
|
|
48
|
-
return
|
|
48
|
+
return '分享了文件';
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
return
|
|
51
|
+
return '回复我';
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
var feedText = function feedText() {
|
|
55
55
|
if (!item.content.trim()) {
|
|
56
|
-
return
|
|
56
|
+
return '分享了文件';
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
return (0, _utils.deleteText)((0, _utils.htmlToText)(item.content));
|
|
@@ -95,10 +95,7 @@ function Reply(props) {
|
|
|
95
95
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-name"))
|
|
96
96
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
97
97
|
overlayClassName: "".concat(preCls, "__item-right-header-name-tooltip"),
|
|
98
|
-
text:
|
|
99
|
-
id: item.user.userId,
|
|
100
|
-
name: item.user.name
|
|
101
|
-
}),
|
|
98
|
+
text: (0, _openData.parseHtmlAndTextTag)(item.user.name),
|
|
102
99
|
maxWidth: 100,
|
|
103
100
|
mouseEnterDelay: 0.8
|
|
104
101
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -66,10 +66,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
66
66
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-name"))
|
|
67
67
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
68
68
|
overlayClassName: "".concat(preCls, "__item-right-header-name-tooltip"),
|
|
69
|
-
text:
|
|
70
|
-
id: item.User.userId,
|
|
71
|
-
name: item.User.name
|
|
72
|
-
}),
|
|
69
|
+
text: (0, _openData.parseHtmlAndTextTag)(item.User.name),
|
|
73
70
|
maxWidth: 100,
|
|
74
71
|
mouseEnterDelay: 0.8
|
|
75
72
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|