@titaui/pc 1.9.78 → 1.9.80

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/.eslintrc.js +6 -4
  2. package/lib/components/change-okr-modal/Filter.js +1 -1
  3. package/lib/components/change-okr-modal/Item.js +27 -25
  4. package/lib/components/change-okr-modal/filterTab.js +1 -1
  5. package/lib/components/change-okr-modal/index.js +1 -1
  6. package/lib/components/change-okr-modal/styledComponents.js +5 -5
  7. package/lib/components/communication/CommunicationAttachments.js +1 -1
  8. package/lib/components/communication/ConvertUserName.js +1 -1
  9. package/lib/components/communication/index.js +1 -1
  10. package/lib/components/create-okr-modal/objectType.js +1 -1
  11. package/lib/components/date-picker/BodyItem.js +1 -1
  12. package/lib/components/date-picker/CalendarBody.js +1 -1
  13. package/lib/components/date-picker/CalendarHeader.js +1 -1
  14. package/lib/components/date-picker/index.js +1 -1
  15. package/lib/components/date-range-picker/index.js +1 -1
  16. package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
  17. package/lib/components/eReport/eReportListEmpty.js +1 -1
  18. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  19. package/lib/components/eReport/eReportShare/index.js +1 -1
  20. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  21. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  22. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  23. package/lib/components/emotions-selector/selector-content.js +1 -1
  24. package/lib/components/emotions-selector/selector-pop.js +1 -1
  25. package/lib/components/ereport-list/index.js +1 -1
  26. package/lib/components/error-boundary/index.js +1 -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/mblog/style.js +2 -2
  32. package/lib/components/okr-detail/auth.js +1 -1
  33. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  34. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  35. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  36. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  37. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  38. package/lib/components/okr-detail/detail-header/confirm.js +2 -1
  39. package/lib/components/okr-detail/detail-header/index.js +13 -10
  40. package/lib/components/okr-flow/export-modal/index.js +38 -62
  41. package/lib/components/okr-progress-modal/helper.js +59 -45
  42. package/lib/components/okr-progress-modal/index.js +19 -14
  43. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  44. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  45. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  46. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  47. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  48. package/lib/components/okr-review/index.js +1 -1
  49. package/lib/components/okr-share/index.js +7 -2
  50. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  51. package/lib/components/operation-records/index.js +1 -1
  52. package/lib/components/point-demo/input/index.js +1 -1
  53. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  54. package/lib/components/praise-record/index.js +1 -1
  55. package/lib/components/range-picker-pop/index.js +1 -1
  56. package/lib/components/range-selector-pop/RangeList.js +1 -1
  57. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  58. package/lib/components/select/Option.js +1 -1
  59. package/lib/components/select/index.js +1 -1
  60. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  61. package/lib/components/upload/components/uploadedPreview.js +1 -1
  62. package/lib/components/upload/index.js +1 -1
  63. package/lib/components/viewer/ImageListRender.js +1 -1
  64. package/lib/components/viewer/index.js +1 -1
  65. package/lib/components-v1/animate/AnimateChild.js +1 -1
  66. package/lib/components-v1/animate/animate.js +1 -1
  67. package/lib/components-v1/avatar/index.js +1 -1
  68. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  69. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  70. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  71. package/lib/components-v1/confirm/index.js +1 -1
  72. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  73. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  74. package/lib/components-v1/input/Input.js +1 -1
  75. package/lib/components-v1/input/InputNumber.js +1 -1
  76. package/lib/components-v1/placement/placement.js +1 -1
  77. package/lib/components-v1/placement/placementInner.js +1 -1
  78. package/lib/components-v1/pop/Pop.js +1 -1
  79. package/lib/components-v1/pop/PopInner.js +1 -1
  80. package/lib/components-v1/portals/Portals.js +1 -1
  81. package/lib/components-v1/progress/CircleProgress.js +1 -1
  82. package/lib/components-v1/progress/LineProgress.js +1 -1
  83. package/lib/components-v1/progress/index.js +1 -1
  84. package/lib/components-v1/radio/radio.js +1 -1
  85. package/lib/components-v1/radio/radioGroup.js +1 -1
  86. package/lib/components-v1/search/index.js +1 -1
  87. package/lib/components-v1/select/Option.js +1 -1
  88. package/lib/components-v1/select/index.js +1 -1
  89. package/lib/components-v1/tabs/index.js +1 -1
  90. package/lib/components-v1/textarea/index.js +1 -1
  91. package/lib/components-v1/transition/index.js +1 -1
  92. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  93. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  94. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  95. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  96. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  97. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  98. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  99. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  100. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  101. package/lib/components-v1/userSelector/index.js +1 -1
  102. package/lib/pages/appointment-demo/input/index.js +1 -1
  103. package/lib/pages/group-management/components/input-form/index.js +1 -1
  104. package/lib/utils/auth.js +1 -1
  105. package/package.json +2 -1
  106. package/src/components/change-okr-modal/Item.tsx +22 -22
  107. package/src/components/change-okr-modal/styledComponents.ts +11 -5
  108. package/src/components/mblog/style.ts +4 -1
  109. package/src/components/okr-detail/detail-header/confirm.tsx +1 -1
  110. package/src/components/okr-detail/detail-header/index.tsx +19 -13
  111. package/src/components/okr-flow/export-modal/index.tsx +37 -50
  112. package/src/components/okr-progress-modal/helper.js +49 -41
  113. package/src/components/okr-progress-modal/index.tsx +17 -16
  114. package/src/components/okr-share/index.tsx +9 -4
  115. package/yarn-error.log +103 -0
@@ -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
 
@@ -37,7 +37,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
37
37
 
38
38
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
39
 
40
- 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); }
40
+ 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); }
41
41
 
42
42
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
@@ -51,7 +51,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
51
51
 
52
52
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
53
53
 
54
- 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); }
54
+ 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); }
55
55
 
56
56
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
57
 
@@ -51,7 +51,8 @@ function OkrDetailHeaderConfirm(_ref) {
51
51
  }, []);
52
52
  return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
53
53
  visible: visible,
54
- type: "warning"
54
+ type: "warning",
55
+ zIndex: 2400
55
56
  },
56
57
  /*#__PURE__*/
57
58
  // @ts-ignore
@@ -140,7 +140,7 @@ function OkrDetailHeader(_ref) {
140
140
  detailInfo: detailInfo,
141
141
  openShareModal: function () {
142
142
  var _openShareModal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
143
- var krs;
143
+ var krss;
144
144
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
145
145
  while (1) {
146
146
  switch (_context2.prev = _context2.next) {
@@ -151,8 +151,8 @@ function OkrDetailHeader(_ref) {
151
151
  });
152
152
 
153
153
  case 2:
154
- krs = _context2.sent;
155
- setKrs(krs);
154
+ krss = _context2.sent;
155
+ setKrs(krss);
156
156
  setShareVisible(true);
157
157
 
158
158
  case 5:
@@ -170,8 +170,11 @@ function OkrDetailHeader(_ref) {
170
170
  return openShareModal;
171
171
  }(),
172
172
  changeVisiblilty: function changeVisiblilty(visibility) {
173
- if (visibility == 4) {
174
- userSelectRef.current && userSelectRef.current.open();
173
+ if (visibility === 4) {
174
+ if (userSelectRef.current) {
175
+ userSelectRef.current.open();
176
+ }
177
+
175
178
  return;
176
179
  }
177
180
 
@@ -205,8 +208,7 @@ function OkrDetailHeader(_ref) {
205
208
  break;
206
209
  }
207
210
 
208
- if (!follow // @ts-ignore
209
- ) {
211
+ if (!follow) {
210
212
  _context3.next = 9;
211
213
  break;
212
214
  }
@@ -367,13 +369,13 @@ function OkrDetailHeader(_ref) {
367
369
  className: "tu-icon-liebiao-duiqinubiao"
368
370
  }), /*#__PURE__*/_react["default"].createElement("span", {
369
371
  onClick: function onClick() {
370
- return parent.type == "okr" ? _drawerManager["default"].open("okrDetail", {
372
+ return parent.type === "okr" ? _drawerManager["default"].open("okrDetail", {
371
373
  okrId: parent.id
372
374
  }) : _drawerManager["default"].open("krDetail", {
373
375
  krId: parent.id
374
376
  });
375
377
  }
376
- }, /*#__PURE__*/_react["default"].createElement("span", null, parent.type == "okr" ? "O " : "KR "), parent.name)) : null
378
+ }, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === "okr" ? "O " : "KR "), parent.name)) : null
377
379
  }), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
378
380
  visible: shareVisible,
379
381
  onClose: closeShareModal,
@@ -389,7 +391,8 @@ function OkrDetailHeader(_ref) {
389
391
  src: detailInfo.principalUser.avatar.medium
390
392
  }
391
393
  })
392
- }
394
+ },
395
+ zIndex: 2400
393
396
  }), /*#__PURE__*/_react["default"].createElement(_titaUi.PopConfirm, {
394
397
  ref: popRef,
395
398
  showArrow: false,
@@ -61,7 +61,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
61
61
 
62
62
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
63
 
64
- var ExportMapModal = function ExportMapModal(props) {
64
+ function ExportMapModal(props) {
65
65
  var _props$visible = props.visible,
66
66
  visible = _props$visible === void 0 ? false : _props$visible,
67
67
  onCloseHandler = props.onCloseHandler,
@@ -89,25 +89,18 @@ var ExportMapModal = function ExportMapModal(props) {
89
89
 
90
90
  var modalRef = (0, _react.useRef)();
91
91
  (0, _react.useEffect)(function () {
92
- if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
93
- if (window.WWOpenData.enableCanvasSharing) {
94
- window.WWOpenData.enableCanvasSharing();
95
- }
96
-
97
- if (window.WWOpenData.initCanvas) {
98
- window.WWOpenData.initCanvas();
99
- }
92
+ if ((0, _bsGlobal.isWx)()) {
93
+ window.WWOpenData && window.WWOpenData.enableCanvasSharing && window.WWOpenData.enableCanvasSharing();
94
+ window.WWOpenData && window.WWOpenData.initCanvas && window.WWOpenData.initCanvas();
100
95
  }
101
96
  }, []);
102
97
  (0, _react.useEffect)(function () {
103
- if (visible && mapInstance) {
104
- mapInstance.fitView();
105
- }
98
+ visible && mapInstance && mapInstance.fitView();
106
99
  }, [visible, mapInstance]);
107
100
 
108
101
  var downloadImg = /*#__PURE__*/function () {
109
102
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
110
- var okrMapRef, width, height, canvas, scale, opts;
103
+ var okrMapRef, width, height, canvas, scale, opts, result, imgUrl, url, image;
111
104
  return regeneratorRuntime.wrap(function _callee$(_context) {
112
105
  while (1) {
113
106
  switch (_context.prev = _context.next) {
@@ -143,66 +136,52 @@ var ExportMapModal = function ExportMapModal(props) {
143
136
 
144
137
  };
145
138
  _context.next = 12;
146
- return (0, _html2canvas["default"])(okrMapRef, opts).then(function (result) {
147
- if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
148
- if (window.WWOpenData.enableCanvasSharing) {
149
- window.WWOpenData.enableCanvasSharing();
150
- }
151
-
152
- if (window.WWOpenData.initCanvas) {
153
- window.WWOpenData.initCanvas();
154
- }
155
- }
139
+ return (0, _html2canvas["default"])(okrMapRef, opts);
156
140
 
157
- var imgUrl = result.toDataURL("image/png"); // 得到图片的base64编码数据
141
+ case 12:
142
+ result = _context.sent;
158
143
 
159
- // 得到图片的base64编码数据
160
- (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(",")[1]).then(function (url) {
161
- var image = new Image();
162
- image.setAttribute("crossOrigin", "anonymous");
144
+ if ((0, _bsGlobal.isWx)()) {
145
+ window.WWOpenData && window.WWOpenData.enableCanvasSharing && window.WWOpenData.enableCanvasSharing();
146
+ window.WWOpenData && window.WWOpenData.initCanvas && window.WWOpenData.initCanvas();
147
+ }
163
148
 
164
- image.onload = function () {
165
- if (!url.Data.obj) {
166
- _toast["default"].Error("导出失败,请稍后重试", {
167
- canClose: false
168
- });
169
- }
149
+ imgUrl = result.toDataURL("image/png"); // 得到图片的base64编码数据
170
150
 
171
- var a = document.createElement("a"); // 生成一个a元素
151
+ _context.next = 17;
152
+ return (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(",")[1]);
172
153
 
173
- // 生成一个a元素
174
- var event = new MouseEvent("click"); // 创建一个单击事件
154
+ case 17:
155
+ url = _context.sent;
156
+ image = new Image();
157
+ image.setAttribute("crossOrigin", "anonymous");
175
158
 
176
- // 创建一个单击事件
177
- a.download = "okr地图"; // 设置图片名称
159
+ image.onload = function () {
160
+ if (!url.Data.obj) {
161
+ _toast["default"].Error("导出失败,请稍后重试", {
162
+ canClose: false
163
+ });
164
+ }
178
165
 
179
- // 设置图片名称
180
- a.href = url.Data.obj; // 将生成的URL设置为a.href属性
166
+ var a = document.createElement("a"); // 生成一个a元素
181
167
 
182
- // 将生成的URL设置为a.href属性
183
- a.dispatchEvent(event); // 触发a的单击事件
168
+ var event = new MouseEvent("click"); // 创建一个单击事件
184
169
 
185
- // 触发a的单击事件
186
- _toast["default"].Success("导出成功");
170
+ a.download = "okr地图"; // 设置图片名称
187
171
 
188
- setIsExport(false);
172
+ a.href = url.Data.obj; // 将生成的URL设置为a.href属性
189
173
 
190
- if (onCloseHandler) {
191
- onCloseHandler();
192
- }
193
- };
174
+ a.dispatchEvent(event); // 触发a的单击事件
175
+
176
+ _toast["default"].Success("导出成功");
194
177
 
195
- image.src = imgUrl;
196
- });
197
- })["catch"](function (err) {
198
178
  setIsExport(false);
179
+ onCloseHandler && onCloseHandler();
180
+ };
199
181
 
200
- _toast["default"].Error(err, {
201
- canClose: false
202
- });
203
- });
182
+ image.src = imgUrl;
204
183
 
205
- case 12:
184
+ case 22:
206
185
  case "end":
207
186
  return _context.stop();
208
187
  }
@@ -288,10 +267,7 @@ var ExportMapModal = function ExportMapModal(props) {
288
267
  background: bgColor
289
268
  }
290
269
  }))))));
291
- };
270
+ }
292
271
 
293
- ExportMapModal.defaultProps = {
294
- onCloseHandler: function onCloseHandler() {}
295
- };
296
272
  var _default = ExportMapModal;
297
273
  exports["default"] = _default;
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.transProgress = exports.getOptions = exports.getO_SETTING = exports.getKrOptions = exports.getKR_SETTING = void 0;
8
+ exports.transProgress = exports.getOptions = exports.getOSetting = exports.getKrSetting = exports.getKrOptions = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -15,7 +15,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  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; }
17
17
 
18
- var getO_SETTING = function getO_SETTING() {
18
+ var getOSetting = function getOSetting() {
19
19
  return {
20
20
  settingTitle: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Setmatically"),
21
21
  switchLabel: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Setmatically"),
@@ -28,38 +28,45 @@ var getO_SETTING = function getO_SETTING() {
28
28
  key: 2,
29
29
  tooltip: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_SubO")
30
30
  }],
31
- getRecommandText: function getRecommandText() {
32
- var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
33
- var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
34
- var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
31
+ getRecommandText: function getRecommandText(recommandProgressObj) {
32
+ var autoUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33
+ var updateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
35
34
 
36
35
  if (autoUpdate) {
37
- if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
36
+ if (updateWay === 1) return /*#__PURE__*/_react["default"].createElement("span", {
38
37
  className: "auto-update__recommand-tip"
39
38
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Automatic"));
40
- if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
39
+ if (updateWay === 2) return /*#__PURE__*/_react["default"].createElement("span", {
41
40
  className: "auto-update__recommand-tip"
42
41
  }, (0, _getLocale.getLocale)("OKR_MyO_calculationSubO"));
43
- } else {
44
- var childOkrProgress = recommandProgressObj.childOkrProgress,
45
- childkrProgress = recommandProgressObj.childkrProgress;
46
- var textArr = [];
47
- childkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_KRCom")).concat(childkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
48
- childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
49
- if (textArr.length == 0) return "";
50
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
51
- className: "auto-update__recommand-icon"
52
- }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
53
- className: "auto-update__recommand-tip"
54
- }, "\uFF08", textArr.join(","), "\uFF09"));
42
+ return /*#__PURE__*/_react["default"].createElement("span", null);
43
+ }
44
+
45
+ var childOkrProgress = recommandProgressObj.childOkrProgress,
46
+ childkrProgress = recommandProgressObj.childkrProgress;
47
+ var textArr = [];
48
+
49
+ if (childkrProgress !== -1) {
50
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_KRCom")).concat(childkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
55
51
  }
52
+
53
+ if (childOkrProgress !== -1) {
54
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
55
+ }
56
+
57
+ if (textArr.length === 0) return "";
58
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
59
+ className: "auto-update__recommand-icon"
60
+ }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
61
+ className: "auto-update__recommand-tip"
62
+ }, "\uFF08", textArr.join(","), "\uFF09"));
56
63
  }
57
64
  };
58
65
  };
59
66
 
60
- exports.getO_SETTING = getO_SETTING;
67
+ exports.getOSetting = getOSetting;
61
68
 
62
- var getKR_SETTING = function getKR_SETTING() {
69
+ var getKrSetting = function getKrSetting() {
63
70
  return {
64
71
  settingTitle: (0, _getLocale.getLocale)("OKR_MyO_KRCompletion"),
65
72
  switchLabel: (0, _getLocale.getLocale)("OKR_MyO_SetKRcompletion"),
@@ -72,42 +79,49 @@ var getKR_SETTING = function getKR_SETTING() {
72
79
  key: 2,
73
80
  tooltip: (0, _getLocale.getLocale)("OKR_MyO_KRcompletionde")
74
81
  }],
75
- getRecommandText: function getRecommandText() {
76
- var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
77
- var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
78
- var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
82
+ getRecommandText: function getRecommandText(recommandProgressObj) {
83
+ var autoUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
84
+ var updateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
79
85
 
80
86
  if (autoUpdate) {
81
- if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
87
+ if (updateWay === 1) return /*#__PURE__*/_react["default"].createElement("span", {
82
88
  className: "auto-update__recommand-tip"
83
89
  }, (0, _getLocale.getLocale)("OKR_MyO_Automatic"));
84
- if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
90
+ if (updateWay === 2) return /*#__PURE__*/_react["default"].createElement("span", {
85
91
  className: "auto-update__recommand-tip"
86
92
  }, (0, _getLocale.getLocale)("OKR_MyO_calculationSubO"));
87
- } else {
88
- var childOkrProgress = recommandProgressObj.childOkrProgress,
89
- childEProgress = recommandProgressObj.childEProgress;
90
- var textArr = [];
91
- childEProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ecompletion")).concat(childEProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
92
- childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
93
- if (textArr.length == 0) return "";
94
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
95
- className: "auto-update__recommand-icon"
96
- }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
97
- className: "auto-update__recommand-tip",
98
- style: {
99
- marginLeft: 0
100
- }
101
- }, "(", textArr.join(","), ")"));
93
+ return /*#__PURE__*/_react["default"].createElement("span", null);
102
94
  }
95
+
96
+ var childOkrProgress = recommandProgressObj.childOkrProgress,
97
+ childEProgress = recommandProgressObj.childEProgress;
98
+ var textArr = [];
99
+
100
+ if (childEProgress !== -1) {
101
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ecompletion")).concat(childEProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
102
+ }
103
+
104
+ if (childOkrProgress !== -1) {
105
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
106
+ }
107
+
108
+ if (textArr.length === 0) return "";
109
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
110
+ className: "auto-update__recommand-icon"
111
+ }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
112
+ className: "auto-update__recommand-tip",
113
+ style: {
114
+ marginLeft: 0
115
+ }
116
+ }, "(", textArr.join(","), ")"));
103
117
  }
104
118
  };
105
119
  };
106
120
 
107
- exports.getKR_SETTING = getKR_SETTING;
121
+ exports.getKrSetting = getKrSetting;
108
122
 
109
123
  var transProgress = function transProgress(progress) {
110
- return progress == -1 ? 0 : progress;
124
+ return progress === -1 ? 0 : progress;
111
125
  };
112
126
 
113
127
  exports.transProgress = transProgress;
@@ -52,6 +52,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
52
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
 
54
54
  var ProgressModal = function ProgressModal(props) {
55
+ var _window, _window$BSGlobal, _window$BSGlobal$OkrA, _window$BSGlobal$OkrA2;
56
+
55
57
  var maxLength = props.maxLength,
56
58
  okrInfo = props.okrInfo,
57
59
  onClose = props.onClose,
@@ -60,7 +62,7 @@ var ProgressModal = function ProgressModal(props) {
60
62
  title = _props$title === void 0 ? window.getLocale("OKR_MyO_Prog_Butt_Update") : _props$title,
61
63
  visible = props.visible,
62
64
  isKr = props.isKr;
63
- var configure = isKr ? (0, _helper.getKR_SETTING)() : (0, _helper.getO_SETTING)();
65
+ var configure = isKr ? (0, _helper.getKrSetting)() : (0, _helper.getOSetting)();
64
66
  var reg = /^[0-9]*[1-9][0-9]*$/;
65
67
 
66
68
  var _useState = (0, _react.useState)(false),
@@ -95,11 +97,7 @@ var ProgressModal = function ProgressModal(props) {
95
97
  selected = _useState12[0],
96
98
  setSelected = _useState12[1];
97
99
 
98
- var _useState13 = (0, _react.useState)(function () {
99
- return (// @ts-ignore
100
- window.BSGlobal.OkrAdvancedSetting.KRSetting.ShowKrProgress
101
- );
102
- }),
100
+ var _useState13 = (0, _react.useState)((_window = window) === null || _window === void 0 ? void 0 : (_window$BSGlobal = _window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$OkrA = _window$BSGlobal.OkrAdvancedSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : (_window$BSGlobal$OkrA2 = _window$BSGlobal$OkrA.KRSetting) === null || _window$BSGlobal$OkrA2 === void 0 ? void 0 : _window$BSGlobal$OkrA2.ShowKrProgress),
103
101
  _useState14 = _slicedToArray(_useState13, 1),
104
102
  ShowKrProgress = _useState14[0];
105
103
 
@@ -136,11 +134,11 @@ var ProgressModal = function ProgressModal(props) {
136
134
  case 3:
137
135
  data = _context.sent;
138
136
 
139
- if (data.Code == 1) {
137
+ if (data.Code === 1) {
140
138
  _data$Data = data.Data, UpdateProgressWay = _data$Data.UpdateProgressWay, Progress = _data$Data.Progress;
141
139
  setRecommandProgressObj(data.Data);
142
- setUpdate(UpdateProgressWay != 0);
143
- setUpdateWay(UpdateProgressWay == 0 ? 1 : UpdateProgressWay);
140
+ setUpdate(UpdateProgressWay !== 0);
141
+ setUpdateWay(UpdateProgressWay === 0 ? 1 : UpdateProgressWay);
144
142
  setProgress(Progress);
145
143
  }
146
144
 
@@ -169,8 +167,14 @@ var ProgressModal = function ProgressModal(props) {
169
167
  var childOkrProgress = recommandProgressObj.childOkrProgress,
170
168
  childkrProgress = recommandProgressObj.childkrProgress,
171
169
  childEProgress = recommandProgressObj.childEProgress;
172
- updateWay == 1 && setProgress(isKr ? (0, _helper.transProgress)(childEProgress) : (0, _helper.transProgress)(childkrProgress));
173
- updateWay == 2 && setProgress((0, _helper.transProgress)(childOkrProgress));
170
+
171
+ if (updateWay === 1) {
172
+ setProgress(isKr ? (0, _helper.transProgress)(childEProgress) : (0, _helper.transProgress)(childkrProgress));
173
+ }
174
+
175
+ if (updateWay === 2) {
176
+ setProgress((0, _helper.transProgress)(childOkrProgress));
177
+ }
174
178
  }, [updateWay, autoUpdate, recommandProgressObj]);
175
179
 
176
180
  var descriptionText = /*#__PURE__*/_react["default"].createElement(_style.Item, null, /*#__PURE__*/_react["default"].createElement("span", {
@@ -229,7 +233,8 @@ var ProgressModal = function ProgressModal(props) {
229
233
  okDisabled: errorProgress || errorRemark,
230
234
  title: title,
231
235
  visible: visible,
232
- width: 600
236
+ width: 600,
237
+ zIndex: 2400
233
238
  }, /*#__PURE__*/_react["default"].createElement(_style.List, null, /*#__PURE__*/_react["default"].createElement(_style.Item, null, /*#__PURE__*/_react["default"].createElement("span", {
234
239
  className: "auto-update__item-label"
235
240
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("div", {
@@ -259,7 +264,7 @@ var ProgressModal = function ProgressModal(props) {
259
264
  }
260
265
  }, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
261
266
  color: option.color,
262
- className: selected == option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
267
+ className: selected === option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
263
268
  }), /*#__PURE__*/_react["default"].createElement("p", null, option.text));
264
269
  }))), descriptionText, /*#__PURE__*/_react["default"].createElement("div", {
265
270
  className: "auto-update-setting"
@@ -278,7 +283,7 @@ var ProgressModal = function ProgressModal(props) {
278
283
  },
279
284
  className: "auto-update-setting__option"
280
285
  }, /*#__PURE__*/_react["default"].createElement("span", {
281
- className: (0, _classnames["default"])("auto-update-setting__radio", "auto-update-setting__radio".concat(updateWay == option.key ? "--selected" : ""))
286
+ className: (0, _classnames["default"])("auto-update-setting__radio", "auto-update-setting__radio".concat(updateWay === option.key ? "--selected" : ""))
282
287
  }), /*#__PURE__*/_react["default"].createElement("span", null, option.label), /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
283
288
  content: option.tooltip,
284
289
  container: document.body,
@@ -65,7 +65,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
65
65
 
66
66
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
67
67
 
68
- 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); }
68
+ 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); }
69
69
 
70
70
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
71
71
 
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- 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); }
24
+ 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); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
39
39
 
40
40
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
41
41
 
42
- 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); }
42
+ 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); }
43
43
 
44
44
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
45
 
@@ -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
 
@@ -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
 
@@ -76,7 +76,8 @@ var ShareContent = function ShareContent(_ref) {
76
76
  var OkrShare = function OkrShare(_ref2) {
77
77
  var data = _ref2.data,
78
78
  visible = _ref2.visible,
79
- onClose = _ref2.onClose;
79
+ onClose = _ref2.onClose,
80
+ zIndex = _ref2.zIndex;
80
81
  var modalRef = (0, _react.useRef)();
81
82
  return /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
82
83
  visible: visible,
@@ -87,7 +88,8 @@ var OkrShare = function OkrShare(_ref2) {
87
88
  onCancel: function onCancel() {
88
89
  return onClose();
89
90
  },
90
- ref: modalRef
91
+ ref: modalRef,
92
+ zIndex: zIndex
91
93
  }, visible ? /*#__PURE__*/_react["default"].createElement(ShareContent, {
92
94
  closeModal: function closeModal() {
93
95
  return onClose();
@@ -99,5 +101,8 @@ var OkrShare = function OkrShare(_ref2) {
99
101
  }) : null);
100
102
  };
101
103
 
104
+ OkrShare.defaultProps = {
105
+ zIndex: 1300
106
+ };
102
107
  var _default = OkrShare;
103
108
  exports["default"] = _default;
@@ -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