@titaui/pc 1.15.56 → 1.15.59
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/dynamic/dynamic-item/dynamic-create-o/index.js +4 -4
- package/lib/components/expiration-reminder/index.css +6 -0
- package/lib/components/expiration-reminder/index.js +9 -3
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -6
- package/lib/components/menus/components/menu-tree/tree-node/summary-tongji.js +7 -6
- package/package.json +1 -1
|
@@ -92,10 +92,10 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
92
92
|
// 个人
|
|
93
93
|
2: {
|
|
94
94
|
icon: 'tu-icon-liebiao-xiashu',
|
|
95
|
-
text: okrTypeId === -1 ? '默认部门' :
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
text: okrTypeId === -1 ? '默认部门' :
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// <OpenDepartmentName id={okrTypeId} name={okrTypeName} />
|
|
98
|
+
_react["default"].createElement("span", null, (0, _openData.parseString)(okrTypeName))
|
|
99
99
|
},
|
|
100
100
|
// 部门
|
|
101
101
|
3: {
|
|
@@ -62,6 +62,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
64
|
var prefixCls = 'titaui-expiration-reminder';
|
|
65
|
+
var isOffiial = (0, _bsGlobal.getTenantInfo)().Source === 0;
|
|
65
66
|
|
|
66
67
|
var ExpirationReminder = function ExpirationReminder() {
|
|
67
68
|
var _trialVersion, _officialVersion;
|
|
@@ -250,12 +251,17 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
250
251
|
}, title, content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
251
252
|
className: "".concat(prefixCls, "__footer")
|
|
252
253
|
}, /*#__PURE__*/_react["default"].createElement("p", null, button), /*#__PURE__*/_react["default"].createElement("p", {
|
|
253
|
-
className: "".concat(prefixCls, "__contact")
|
|
254
|
-
onClick: onCopy
|
|
254
|
+
className: "".concat(prefixCls, "__contact")
|
|
255
255
|
}, "\u8054\u7CFB\u7535\u8BDD:", /*#__PURE__*/_react["default"].createElement("span", {
|
|
256
256
|
className: "".concat(prefixCls, "__contact-number"),
|
|
257
|
+
onClick: onCopy,
|
|
257
258
|
ref: telRef
|
|
258
|
-
}, _utils.ContactNumber)
|
|
259
|
+
}, _utils.ContactNumber), isOffiial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
260
|
+
className: "".concat(prefixCls, "__contact-out"),
|
|
261
|
+
onClick: function onClick() {
|
|
262
|
+
return window.open('/Account/Logout', '_self ');
|
|
263
|
+
}
|
|
264
|
+
}, "\u9000\u51FA\u767B\u5F55"))), closeEnable && /*#__PURE__*/_react["default"].createElement("div", {
|
|
259
265
|
className: "".concat(prefixCls, "__close"),
|
|
260
266
|
onClick: deleteCache
|
|
261
267
|
}), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
@@ -49,13 +49,15 @@ var SummaryShare = function SummaryShare(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowShareList = function handleShowShareList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowShare(!isShowShare);
|
|
58
|
-
};
|
|
55
|
+
}; // const handleShowShareList = (e) => {
|
|
56
|
+
// e.stopPropagation();
|
|
57
|
+
// onExpand(e);
|
|
58
|
+
// setIsShowShare(!isShowShare);
|
|
59
|
+
// };
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
63
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
@@ -66,8 +68,7 @@ var SummaryShare = function SummaryShare(props) {
|
|
|
66
68
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
70
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowShareList
|
|
71
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
73
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__share-arrow-down"), isShowShare))
|
|
73
74
|
})));
|
|
@@ -49,13 +49,15 @@ var SummaryTongji = function SummaryTongji(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowShareList = function handleShowShareList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowTongji(!isShowTongji);
|
|
58
|
-
};
|
|
55
|
+
}; // const handleShowShareList = (e) => {
|
|
56
|
+
// e.stopPropagation();
|
|
57
|
+
// onExpand(e);
|
|
58
|
+
// setIsShowTongji(!isShowTongji);
|
|
59
|
+
// };
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
63
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
@@ -66,8 +68,7 @@ var SummaryTongji = function SummaryTongji(props) {
|
|
|
66
68
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
70
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowShareList
|
|
71
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
73
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__share-arrow-down"), isShowTongji))
|
|
73
74
|
})));
|