@titaui/pc 1.9.52 → 1.9.56

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.
Files changed (115) hide show
  1. package/lib/components/change-okr-modal/Filter.js +1 -1
  2. package/lib/components/change-okr-modal/Item.js +1 -1
  3. package/lib/components/change-okr-modal/filterTab.js +1 -1
  4. package/lib/components/change-okr-modal/index.js +1 -1
  5. package/lib/components/communication/CommunicationAttachments.js +1 -1
  6. package/lib/components/communication/ConvertUserName.js +1 -1
  7. package/lib/components/communication/index.js +1 -1
  8. package/lib/components/create-okr-modal/objectType.js +1 -1
  9. package/lib/components/date-picker/BodyItem.js +1 -1
  10. package/lib/components/date-picker/CalendarBody.js +1 -1
  11. package/lib/components/date-picker/CalendarHeader.js +1 -1
  12. package/lib/components/date-picker/index.js +1 -1
  13. package/lib/components/date-range-picker/index.js +1 -1
  14. package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
  15. package/lib/components/dynamic/dynamic.js +4 -2
  16. package/lib/components/eReport/eReportListEmpty.js +1 -1
  17. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  18. package/lib/components/eReport/eReportShare/index.js +1 -1
  19. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  20. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  21. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  22. package/lib/components/emotions-selector/selector-content.js +1 -1
  23. package/lib/components/emotions-selector/selector-pop.js +1 -1
  24. package/lib/components/ereport-list/index.js +1 -1
  25. package/lib/components/error-boundary/index.js +1 -1
  26. package/lib/components/hr-header/index.js +7 -1
  27. package/lib/components/mblog/components/ConfirmPop.js +1 -1
  28. package/lib/components/mblog/components/MblogAction.js +1 -1
  29. package/lib/components/mblog/components/MblogContent.js +1 -1
  30. package/lib/components/mblog/index.js +1 -1
  31. package/lib/components/okr-detail/auth.js +1 -1
  32. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  33. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  34. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  35. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  36. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  37. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  38. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  39. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  40. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  41. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  42. package/lib/components/okr-review/index.js +1 -1
  43. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  44. package/lib/components/operation-records/index.js +1 -1
  45. package/lib/components/point-demo/input/index.js +1 -1
  46. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  47. package/lib/components/praise-record/index.js +1 -1
  48. package/lib/components/range-picker-pop/index.js +1 -1
  49. package/lib/components/range-selector-pop/RangeList.js +1 -1
  50. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  51. package/lib/components/select/Option.js +1 -1
  52. package/lib/components/select/index.js +1 -1
  53. package/lib/components/stop-taking-modal/index.js +3 -0
  54. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  55. package/lib/components/top-global-prompt/img/top-message.png +0 -0
  56. package/lib/components/top-global-prompt/index.css +32 -0
  57. package/lib/components/top-global-prompt/index.js +52 -0
  58. package/lib/components/upload/components/uploadedPreview.js +1 -1
  59. package/lib/components/upload/index.js +1 -1
  60. package/lib/components/viewer/ImageListRender.js +1 -1
  61. package/lib/components/viewer/index.js +1 -1
  62. package/lib/components-v1/animate/AnimateChild.js +1 -1
  63. package/lib/components-v1/animate/animate.js +1 -1
  64. package/lib/components-v1/avatar/index.js +1 -1
  65. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  66. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  67. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  68. package/lib/components-v1/confirm/index.js +1 -1
  69. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  70. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  71. package/lib/components-v1/input/Input.js +1 -1
  72. package/lib/components-v1/input/InputNumber.js +1 -1
  73. package/lib/components-v1/placement/placement.js +1 -1
  74. package/lib/components-v1/placement/placementInner.js +1 -1
  75. package/lib/components-v1/pop/Pop.js +1 -1
  76. package/lib/components-v1/pop/PopInner.js +1 -1
  77. package/lib/components-v1/portals/Portals.js +1 -1
  78. package/lib/components-v1/progress/CircleProgress.js +1 -1
  79. package/lib/components-v1/progress/LineProgress.js +1 -1
  80. package/lib/components-v1/progress/index.js +1 -1
  81. package/lib/components-v1/radio/radio.js +1 -1
  82. package/lib/components-v1/radio/radioGroup.js +1 -1
  83. package/lib/components-v1/search/index.js +1 -1
  84. package/lib/components-v1/select/Option.js +1 -1
  85. package/lib/components-v1/select/index.js +1 -1
  86. package/lib/components-v1/tabs/index.js +1 -1
  87. package/lib/components-v1/textarea/index.js +1 -1
  88. package/lib/components-v1/transition/index.js +1 -1
  89. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  90. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  91. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  92. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  93. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  94. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  95. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  96. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  97. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  98. package/lib/components-v1/userSelector/index.js +1 -1
  99. package/lib/pages/aha2021/index.css +0 -2
  100. package/lib/pages/aha2021/index.js +47 -2
  101. package/lib/pages/appointment-demo/input/index.js +1 -1
  102. package/lib/pages/group-management/components/input-form/index.js +1 -1
  103. package/lib/utils/auth.js +1 -1
  104. package/lib/utils/bs-global.js +1 -1
  105. package/package.json +1 -1
  106. package/src/components/dynamic/dynamic.tsx +1 -2
  107. package/src/components/hr-header/index.tsx +5 -1
  108. package/src/components/stop-taking-modal/index.tsx +2 -0
  109. package/src/components/top-global-prompt/img/top-message.png +0 -0
  110. package/src/components/top-global-prompt/index.scss +29 -0
  111. package/src/components/top-global-prompt/index.tsx +27 -0
  112. package/src/pages/aha2021/index.scss +0 -2
  113. package/src/pages/aha2021/index.tsx +21 -3
  114. package/src/utils/bs-global.js +1 -1
  115. package/yarn-error.log +16 -15807
@@ -35,7 +35,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
35
35
 
36
36
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
37
37
 
38
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
38
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
39
 
40
40
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
@@ -49,7 +49,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
49
49
 
50
50
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
51
51
 
52
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
52
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
53
53
 
54
54
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
55
55
 
@@ -33,7 +33,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
33
33
 
34
34
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
35
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
37
 
38
38
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
@@ -35,7 +35,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
35
35
 
36
36
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
37
37
 
38
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
38
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
39
 
40
40
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
@@ -41,7 +41,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
41
41
 
42
42
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
43
43
 
44
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
44
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
45
45
 
46
46
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
47
47
 
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
25
 
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -33,7 +33,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
33
33
 
34
34
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
35
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
37
 
38
38
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -43,7 +43,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
43
43
 
44
44
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
45
45
 
46
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
46
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
47
47
 
48
48
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
49
 
@@ -6,7 +6,6 @@
6
6
  }
7
7
 
8
8
  .titaui-aha-2021__header {
9
- height: 54px;
10
9
  margin-bottom: 20px;
11
10
  }
12
11
 
@@ -66,7 +65,6 @@
66
65
 
67
66
  .titaui-aha-2021__body {
68
67
  display: flex;
69
- height: calc(100vh - 74px);
70
68
  padding: 0 16px;
71
69
  }
72
70
 
@@ -25,6 +25,8 @@ var _pointDemo = _interopRequireDefault(require("../../components/point-demo/poi
25
25
 
26
26
  var _platform = require("../../utils/platform");
27
27
 
28
+ var _topGlobalPrompt = _interopRequireDefault(require("../../components/top-global-prompt"));
29
+
28
30
  require("./index.css");
29
31
 
30
32
  var _helpers = require("../../utils/helpers");
@@ -33,13 +35,28 @@ var _hrHeader = _interopRequireDefault(require("../../components/hr-header"));
33
35
 
34
36
  var _hrMessage = _interopRequireDefault(require("../../components/nav-top/components/user-message/hrMessage"));
35
37
 
38
+ var _localStorage = require("../../utils/local-storage");
39
+
36
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
37
41
 
38
42
  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); }
39
43
 
40
44
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
41
45
 
46
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
47
+
48
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
49
+
50
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
51
+
52
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
53
+
54
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
55
+
56
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
57
+
42
58
  var preCls = "titaui-aha-2021";
59
+ var storage = new _localStorage.localStorage();
43
60
 
44
61
  var ContentTemplate = function ContentTemplate(props) {
45
62
  var children = props.children,
@@ -64,6 +81,27 @@ var ContentTemplate = function ContentTemplate(props) {
64
81
 
65
82
  var PageLayout = function PageLayout(props) {
66
83
  var children = props.children;
84
+
85
+ var _useState = (0, _react.useState)(function () {
86
+ var stopTaking = storage.getItem("topGlobalCard");
87
+
88
+ if (stopTaking !== null && stopTaking !== void 0 && stopTaking.date) {
89
+ var oldDate = new Date(stopTaking === null || stopTaking === void 0 ? void 0 : stopTaking.date).getDate();
90
+ var newDate = new Date().getDate();
91
+
92
+ if (newDate > oldDate) {
93
+ return true;
94
+ } else {
95
+ return false;
96
+ }
97
+ }
98
+
99
+ return true;
100
+ }),
101
+ _useState2 = _slicedToArray(_useState, 2),
102
+ topCardVisible = _useState2[0],
103
+ setTopCardVisible = _useState2[1];
104
+
67
105
  var isTrial = window.BSGlobal.tenantAuthentication.Version == 1 && (0, _platform.isOfficialSite)();
68
106
  var isTencentHr = window.BSGlobal.tenantInfo.Source == 964;
69
107
 
@@ -81,10 +119,17 @@ var PageLayout = function PageLayout(props) {
81
119
  className: (0, _classnames["default"])(preCls)
82
120
  }, /*#__PURE__*/_react["default"].createElement("div", {
83
121
  className: (0, _classnames["default"])("".concat(preCls, "__header"))
84
- }, (0, _helpers.getTenantInfo)().Source == 964 ? /*#__PURE__*/_react["default"].createElement(_hrHeader["default"], null) : /*#__PURE__*/_react["default"].createElement(_navTop["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
122
+ }, topCardVisible ? /*#__PURE__*/_react["default"].createElement(_topGlobalPrompt["default"], {
123
+ text: '为了给您带来安全与稳定的体验,我们将于1.21 23:00- 1.22 23:59进行停服升级,请您提前安排好工作!',
124
+ link: 'https://wiki.tita.com/x/RICeAQ',
125
+ setTopCardVisible: setTopCardVisible
126
+ }) : null, (0, _helpers.getTenantInfo)().Source == 964 ? /*#__PURE__*/_react["default"].createElement(_hrHeader["default"], null) : /*#__PURE__*/_react["default"].createElement(_navTop["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
85
127
  className: (0, _classnames["default"])("".concat(preCls, "__message"))
86
128
  }, /*#__PURE__*/_react["default"].createElement(_followerVisitor["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
87
- className: (0, _classnames["default"])("".concat(preCls, "__body"))
129
+ className: (0, _classnames["default"])("".concat(preCls, "__body")),
130
+ style: {
131
+ height: "calc(100vh - ".concat(topCardVisible ? 114 : 74, "px)")
132
+ }
88
133
  }, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
89
134
  className: (0, _classnames["default"])("".concat(preCls, "__help"))
90
135
  }, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
package/lib/utils/auth.js CHANGED
@@ -9,7 +9,7 @@ exports.hasSuperior = exports.OAuth = exports.KRAuth = exports.EAuth = exports.D
9
9
 
10
10
  var _bsGlobal = require("./bs-global");
11
11
 
12
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
13
 
14
14
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
15
 
@@ -56,7 +56,7 @@ var getUploadMaxSize = function getUploadMaxSize() {
56
56
  exports.getUploadMaxSize = getUploadMaxSize;
57
57
 
58
58
  function isWx() {
59
- return (getTenantInfo().Source == 860 || getTenantInfo().Source == 964) && getTenantInfo().corpCreateType != 2;
59
+ return getTenantInfo().Source == 860 && getTenantInfo().corpCreateType != 2;
60
60
  }
61
61
  /*
62
62
  *通过AppId,来查询是否开通这个产品
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.52",
3
+ "version": "1.9.56",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -78,8 +78,7 @@ const Dynamic: FC = () => {
78
78
  setActiveFirstLevelTabKey(1004);
79
79
  setActiveSecondLevelTabKey(1018);
80
80
  // @ts-ignore
81
- const secondTabsArr = tabsInfo.find((item) => item.CodeId === 1004)
82
- .ChildMenus;
81
+ const secondTabsArr = tabsInfo.find((item) => item.CodeId === 1004)?.ChildMenus || [];
83
82
  setSecondTabs(secondTabsArr);
84
83
  resetValue();
85
84
  setIsChangeConditionLoading(true);
@@ -8,6 +8,10 @@ import './index.scss';
8
8
 
9
9
  interface Props {}
10
10
  const preCls = 'tencent-hr-header';
11
+ const handleLogout = () => {
12
+ axios.get(window.BSGlobal.apiPath+'/Account/Logout');
13
+
14
+ }
11
15
  function HrHeader({}: Props): ReactElement {
12
16
  const [menus, setMenus] = useState<any[]>([]);
13
17
  const [isShowMore, setIsShowMore] = useState(false);
@@ -101,7 +105,7 @@ function HrHeader({}: Props): ReactElement {
101
105
  popupPlacement="bottom"
102
106
  popup={
103
107
  <div className='tencent-hr-header-popup'>
104
- <a className='tencent-hr-header-popup__item' href={'/_logout?r='+(new Date().getTime())}>退出</a>
108
+ <a className='tencent-hr-header-popup__item' target="_self" href={'/_logout?r='+(new Date().getTime())} onClick={handleLogout}>退出</a>
105
109
  </div>
106
110
  }
107
111
  >
@@ -1,6 +1,7 @@
1
1
  import React, { ReactElement, useState, useCallback } from "react";
2
2
  import { Modal } from "tita-ui";
3
3
  import { getLocale } from "../../utils/getLocale";
4
+ import {getTenantInfo} from '../../utils/bs-global'
4
5
  import { localStorage } from "../../utils/local-storage";
5
6
  import "./index.scss";
6
7
 
@@ -9,6 +10,7 @@ const storage = new localStorage();
9
10
 
10
11
  function StopTakingModel(): ReactElement {
11
12
  const [visible, setVisible] = useState<any>(() => {
13
+ if(getTenantInfo().Source == 964) return false;
12
14
  const stopTaking: any = storage.getItem("stopTaking");
13
15
  if (stopTaking?.date) {
14
16
  const oldDate = new Date(stopTaking?.date).getDate();
@@ -0,0 +1,29 @@
1
+ .top-global-prompt {
2
+ width: 100%;
3
+ height: 40px;
4
+ background: #FCEDD4;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ font-size: 12px;
9
+ font-weight: 400;
10
+ color: #3F4755;
11
+ line-height: 18px;
12
+ position: relative;
13
+ &__link{
14
+ color: #F6BD16;
15
+ cursor: pointer;
16
+ }
17
+ &__close{
18
+ color: #F6BD16;
19
+ cursor: pointer;
20
+ font-size: 16px;
21
+ position: absolute;
22
+ right: 24px;
23
+ }
24
+ &__image{
25
+ width: 16px;
26
+ height: 16px;
27
+ margin-right: 8px;
28
+ }
29
+ }
@@ -0,0 +1,27 @@
1
+ import React, { FC,useCallback } from 'react';
2
+ import { localStorage } from "../../utils/local-storage";
3
+ import './index.scss'
4
+ interface Props {
5
+ text: any;
6
+ link: string;
7
+ setTopCardVisible: any;
8
+ }
9
+
10
+ const preCls = 'top-global-prompt';
11
+
12
+ const TopGlobalCard: FC<Props> = ({text,link,setTopCardVisible}) => {
13
+ const storage = new localStorage();
14
+ const handleClose = useCallback(() => {
15
+ setTopCardVisible(false);
16
+ storage.setItem("topGlobalCard", { bol: false, date: new Date() });
17
+ }, []);
18
+
19
+ return <div className={`${preCls}`}>
20
+ <img className={`${preCls}__image`} src={require('./img/top-message.png')} alt="" />
21
+ {text}
22
+ <span className={`${preCls}__link`} onClick={()=>open(link)}>了解详情</span>
23
+ <span className={`tu-icon-close ${preCls}__close`} onClick={handleClose}></span>
24
+ </div>;
25
+ };
26
+
27
+ export default TopGlobalCard;
@@ -5,7 +5,6 @@
5
5
  overflow: hidden;
6
6
 
7
7
  &__header {
8
- height: 54px;
9
8
  margin-bottom: 20px;
10
9
  }
11
10
 
@@ -62,7 +61,6 @@
62
61
 
63
62
  &__body {
64
63
  display: flex;
65
- height: calc(100vh - 74px);
66
64
  padding: 0 16px;
67
65
 
68
66
  &-menu {
@@ -1,4 +1,4 @@
1
- import React, { Children, useEffect } from "react";
1
+ import React, { Children, useEffect, useState } from "react";
2
2
  import classNames from "classnames";
3
3
  import Tooltip from "../../components/tooltip";
4
4
  import NavTop from "../../components/nav-top";
@@ -7,12 +7,15 @@ import InvitePeople from "../../components/invite-people";
7
7
  import HelpCard from "../../components/help-card";
8
8
  import PointDemo from "../../components/point-demo/point-demo";
9
9
  import { isOfficialSite, isPlatform } from "../../utils/platform";
10
+ import TopGlobalCard from "../../components/top-global-prompt";
10
11
  import "./index.scss";
11
12
  import { getTenantInfo } from "../../utils/helpers";
12
13
  import HrHeader from "../../components/hr-header";
13
14
  import HrMessage from "../../components/nav-top/components/user-message/hrMessage";
15
+ import { localStorage } from "../../utils/local-storage";
14
16
 
15
17
  const preCls = `titaui-aha-2021`;
18
+ const storage = new localStorage()
16
19
 
17
20
  const ContentTemplate = (props) => {
18
21
  const { children, title } = props;
@@ -40,7 +43,21 @@ const ContentTemplate = (props) => {
40
43
 
41
44
  const PageLayout = (props) => {
42
45
  const { children } = props;
46
+ const [ topCardVisible, setTopCardVisible ] = useState(()=>{
47
+ const stopTaking: any = storage.getItem("topGlobalCard");
48
+ if (stopTaking?.date) {
49
+ const oldDate = new Date(stopTaking?.date).getDate();
50
+ const newDate = new Date().getDate();
51
+ if (newDate > oldDate) {
52
+ return true;
53
+ } else {
54
+ return false;
55
+ }
56
+ }
57
+ return true;
58
+ }
43
59
 
60
+ )
44
61
  const isTrial =
45
62
  window.BSGlobal.tenantAuthentication.Version == 1 && isOfficialSite();
46
63
  const isTencentHr = window.BSGlobal.tenantInfo.Source == 964;
@@ -59,13 +76,14 @@ const PageLayout = (props) => {
59
76
 
60
77
  return (
61
78
  <div className={classNames(preCls)}>
62
- <div className={classNames(`${preCls}__header`)}>
79
+ <div className={classNames(`${preCls}__header`)} >
80
+ {topCardVisible?<TopGlobalCard text={'为了给您带来安全与稳定的体验,我们将于1.21 23:00- 1.22 23:59进行停服升级,请您提前安排好工作!'} link={'https://wiki.tita.com/x/RICeAQ'} setTopCardVisible={setTopCardVisible} />:null}
63
81
  {getTenantInfo().Source == 964 ? <HrHeader /> : <NavTop />}
64
82
  </div>
65
83
  <div className={classNames(`${preCls}__message`)}>
66
84
  <FollowerVisitor />
67
85
  </div>
68
- <div className={classNames(`${preCls}__body`)}>{children}</div>
86
+ <div className={classNames(`${preCls}__body`)} style={{ height:`calc(100vh - ${topCardVisible?114:74}px)` }} >{children}</div>
69
87
  {!isTencentHr && <div className={classNames(`${preCls}__help`)}>
70
88
  <HelpCard />
71
89
  </div>}
@@ -36,7 +36,7 @@ export const getUploadMaxSize = () => {
36
36
  };
37
37
 
38
38
  export function isWx() {
39
- return (getTenantInfo().Source == 860 || getTenantInfo().Source == 964) && getTenantInfo().corpCreateType != 2
39
+ return (getTenantInfo().Source == 860) && getTenantInfo().corpCreateType != 2
40
40
  }
41
41
 
42
42
  /*