@titaui/pc 1.16.7 → 1.16.8
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.
|
@@ -393,6 +393,9 @@ function Header(props, ref) {
|
|
|
393
393
|
if (onSearch) onSearch(params);
|
|
394
394
|
}, [onSearch, setSearchParams]);
|
|
395
395
|
|
|
396
|
+
var onOperateRecordCloseHandler = (0, _react.useCallback)(function () {
|
|
397
|
+
setMoreMenuSelectValue(undefined);
|
|
398
|
+
}, []);
|
|
396
399
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
397
400
|
className: "".concat(_precls.precls, "__header")
|
|
398
401
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -459,6 +462,7 @@ function Header(props, ref) {
|
|
|
459
462
|
})))), userInfo && /*#__PURE__*/_react["default"].createElement(_operateRecord["default"], {
|
|
460
463
|
toUserId: toUserId,
|
|
461
464
|
userInfo: userInfo,
|
|
465
|
+
onClose: onOperateRecordCloseHandler,
|
|
462
466
|
activation: moreMenuSelectValue === MoreMenuType.Record,
|
|
463
467
|
relation: relationShip,
|
|
464
468
|
okrFeedParams: {
|
|
@@ -46,7 +46,8 @@ var OperateRecord = function OperateRecord(props) {
|
|
|
46
46
|
toUserId = props.toUserId,
|
|
47
47
|
relation = props.relation,
|
|
48
48
|
okrFeedParams = props.okrFeedParams,
|
|
49
|
-
activation = props.activation
|
|
49
|
+
activation = props.activation,
|
|
50
|
+
onClose = props.onClose;
|
|
50
51
|
|
|
51
52
|
var _useContext = (0, _react.useContext)(_context.Context),
|
|
52
53
|
OkrOperateRecordDrawer = _useContext.OkrOperateRecordDrawer,
|
|
@@ -74,6 +75,7 @@ var OperateRecord = function OperateRecord(props) {
|
|
|
74
75
|
|
|
75
76
|
return /*#__PURE__*/_react["default"].createElement("div", null, (toUserId !== undefined || Number(relation) === 1 || Object.keys((0, _tools.getQueryString)()).length === 0) && !!userInfo && /*#__PURE__*/_react["default"].createElement(OkrOperateRecordDrawer, {
|
|
76
77
|
ref: drawerRef,
|
|
78
|
+
onClose: onClose,
|
|
77
79
|
userInfo: {
|
|
78
80
|
id: userInfo.userId,
|
|
79
81
|
name: userInfo.name,
|