@titaui/pc 1.10.52 → 1.10.53
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.
|
@@ -56,7 +56,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
56
56
|
var preCls = "titaui-user-message-msg-reply";
|
|
57
57
|
|
|
58
58
|
function Reply(props) {
|
|
59
|
-
var onItemClick = props.onItemClick
|
|
59
|
+
var onItemClick = props.onItemClick,
|
|
60
|
+
handleIntervalRequestMessageInfo = props.handleIntervalRequestMessageInfo;
|
|
60
61
|
|
|
61
62
|
var _useState = (0, _react.useState)([]),
|
|
62
63
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -116,7 +117,10 @@ function Reply(props) {
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
setIsLoading(false);
|
|
119
|
-
});
|
|
120
|
+
});
|
|
121
|
+
(0, _request.clearReplys)().then(function () {
|
|
122
|
+
return handleIntervalRequestMessageInfo();
|
|
123
|
+
});
|
|
120
124
|
}, 300);
|
|
121
125
|
}, []);
|
|
122
126
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
@@ -124,7 +128,7 @@ function Reply(props) {
|
|
|
124
128
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
125
129
|
src: _loading["default"],
|
|
126
130
|
className: (0, _classnames["default"])("".concat(preCls, "__loading")),
|
|
127
|
-
alt: "\
|
|
131
|
+
alt: "\u6B63\u5728\u8BF7\u6C42"
|
|
128
132
|
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
129
133
|
condition: replys.length !== 0
|
|
130
134
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
@@ -150,7 +150,7 @@ function PageLayout(props) {
|
|
|
150
150
|
}
|
|
151
151
|
}, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
152
|
className: (0, _classnames["default"])("".concat(preCls, "__help"))
|
|
153
|
-
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTencentHr && !(0, _helpers.isDingDing)() && !(0, _helpers.isFeishu)() && /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
154
154
|
popup: popup,
|
|
155
155
|
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
156
156
|
placement: "topLeft",
|
package/lib/utils/helpers.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.escapeHtml = escapeHtml;
|
|
|
8
8
|
exports.getLoginUserInfo = void 0;
|
|
9
9
|
exports.getTenantInfo = getTenantInfo;
|
|
10
10
|
exports.getUploadMaxSize = getUploadMaxSize;
|
|
11
|
-
exports.isTencentHr = exports.isLocal = exports.isDingDing = void 0;
|
|
11
|
+
exports.isTencentHr = exports.isLocal = exports.isFeishu = exports.isDingDing = void 0;
|
|
12
12
|
|
|
13
13
|
var _bsGlobal = require("./bs-global");
|
|
14
14
|
|
|
@@ -43,6 +43,12 @@ var isDingDing = function isDingDing() {
|
|
|
43
43
|
|
|
44
44
|
exports.isDingDing = isDingDing;
|
|
45
45
|
|
|
46
|
+
var isFeishu = function isFeishu() {
|
|
47
|
+
return getTenantInfo().Source === 862;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.isFeishu = isFeishu;
|
|
51
|
+
|
|
46
52
|
var isLocal = function isLocal() {
|
|
47
53
|
return !!getTenantInfo().isLocal;
|
|
48
54
|
};
|