@titaui/pc 1.9.72 → 1.9.76

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 (139) hide show
  1. package/.eslintrc.js +1 -1
  2. package/lib/components/change-okr-modal/Filter.js +1 -1
  3. package/lib/components/change-okr-modal/Item.js +1 -1
  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/communication/CommunicationAttachments.js +1 -1
  7. package/lib/components/communication/ConvertUserName.js +1 -1
  8. package/lib/components/communication/index.js +1 -1
  9. package/lib/components/create-okr-modal/fields/okr-case.js +8 -9
  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/dynamic/dynamic-item/dynamic-project/constant.js +15 -10
  18. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -3
  19. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +5 -3
  20. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +6 -4
  21. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +15 -10
  22. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +6 -5
  23. package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -5
  24. package/lib/components/dynamic/dynamic-liking/item.js +1 -2
  25. package/lib/components/dynamic/dynamic.js +7 -2
  26. package/lib/components/eReport/eReportListEmpty.js +1 -1
  27. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  28. package/lib/components/eReport/eReportShare/index.js +1 -1
  29. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  30. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  31. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  32. package/lib/components/emotions-selector/selector-content.js +1 -1
  33. package/lib/components/emotions-selector/selector-pop.js +1 -1
  34. package/lib/components/ereport-list/index.js +1 -1
  35. package/lib/components/error-boundary/index.js +1 -1
  36. package/lib/components/mblog/components/ConfirmPop.js +1 -1
  37. package/lib/components/mblog/components/MblogAction.js +1 -1
  38. package/lib/components/mblog/components/MblogContent.js +1 -1
  39. package/lib/components/mblog/index.js +1 -1
  40. package/lib/components/mblog/style.js +2 -2
  41. package/lib/components/okr-detail/auth.js +1 -1
  42. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  43. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  44. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  45. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  46. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  47. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +1 -1
  48. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  49. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  50. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  51. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  52. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  53. package/lib/components/okr-review/index.js +1 -1
  54. package/lib/components/okrcase-library/index.css +3 -1
  55. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  56. package/lib/components/operation-records/index.js +1 -1
  57. package/lib/components/part-notice/index.js +6 -0
  58. package/lib/components/part-notice/not-allow-data.js +10 -0
  59. package/lib/components/photo-card/index.js +3 -6
  60. package/lib/components/photo-card/request.apis.js +2 -2
  61. package/lib/components/point-demo/input/index.js +1 -1
  62. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  63. package/lib/components/praise-record/index.js +1 -1
  64. package/lib/components/range-picker-pop/index.js +1 -1
  65. package/lib/components/range-selector-pop/RangeList.js +1 -1
  66. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  67. package/lib/components/select/Option.js +1 -1
  68. package/lib/components/select/index.js +1 -1
  69. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  70. package/lib/components/upload/components/uploadedPreview.js +1 -1
  71. package/lib/components/upload/index.js +1 -1
  72. package/lib/components/viewer/ImageListRender.js +1 -1
  73. package/lib/components/viewer/index.js +1 -1
  74. package/lib/components-v1/animate/AnimateChild.js +1 -1
  75. package/lib/components-v1/animate/animate.js +1 -1
  76. package/lib/components-v1/avatar/index.js +1 -1
  77. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  78. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  79. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  80. package/lib/components-v1/confirm/index.js +1 -1
  81. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  82. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  83. package/lib/components-v1/input/Input.js +1 -1
  84. package/lib/components-v1/input/InputNumber.js +1 -1
  85. package/lib/components-v1/placement/placement.js +1 -1
  86. package/lib/components-v1/placement/placementInner.js +1 -1
  87. package/lib/components-v1/pop/Pop.js +1 -1
  88. package/lib/components-v1/pop/PopInner.js +1 -1
  89. package/lib/components-v1/portals/Portals.js +1 -1
  90. package/lib/components-v1/progress/CircleProgress.js +1 -1
  91. package/lib/components-v1/progress/LineProgress.js +1 -1
  92. package/lib/components-v1/progress/index.js +1 -1
  93. package/lib/components-v1/radio/radio.js +1 -1
  94. package/lib/components-v1/radio/radioGroup.js +1 -1
  95. package/lib/components-v1/search/index.js +1 -1
  96. package/lib/components-v1/select/Option.js +1 -1
  97. package/lib/components-v1/select/index.js +1 -1
  98. package/lib/components-v1/tabs/index.js +1 -1
  99. package/lib/components-v1/textarea/index.js +1 -1
  100. package/lib/components-v1/transition/index.js +1 -1
  101. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  102. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  103. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  104. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  105. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  106. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  107. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  108. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  109. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  110. package/lib/components-v1/userSelector/index.js +1 -1
  111. package/lib/pages/appointment-demo/input/index.js +1 -1
  112. package/lib/pages/group-management/components/input-form/index.js +1 -1
  113. package/lib/pages/new-okr-list/index.js +1 -1
  114. package/lib/utils/auth.js +1 -1
  115. package/lib/utils/helpers.js +12 -6
  116. package/lib/utils/tools.js +94 -45
  117. package/package.json +1 -1
  118. package/src/components/create-okr-modal/fields/okr-case.tsx +7 -7
  119. package/src/components/dynamic/constant.ts +18 -18
  120. package/src/components/dynamic/dynamic-item/dynamic-project/constant.ts +4 -2
  121. package/src/components/dynamic/dynamic-item/dynamic-project/index.tsx +5 -5
  122. package/src/components/dynamic/dynamic-item/dynamic-replay/index.scss +5 -3
  123. package/src/components/dynamic/dynamic-item/dynamic-replay/index.tsx +6 -5
  124. package/src/components/dynamic/dynamic-item/dynamic-task/constant.ts +4 -2
  125. package/src/components/dynamic/dynamic-item/dynamic-task/index.tsx +6 -6
  126. package/src/components/dynamic/dynamic-like-ranking/index.scss +2 -3
  127. package/src/components/dynamic/dynamic-liking/item.tsx +1 -2
  128. package/src/components/dynamic/dynamic.tsx +8 -3
  129. package/src/components/mblog/style.ts +2 -2
  130. package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.tsx +1 -1
  131. package/src/components/okrcase-library/index.scss +9 -7
  132. package/src/components/part-notice/index.tsx +3 -0
  133. package/src/components/part-notice/not-allow-data.tsx +110 -0
  134. package/src/components/photo-card/index.tsx +5 -6
  135. package/src/components/photo-card/request.apis.ts +1 -1
  136. package/src/pages/new-okr-list/index.tsx +1 -1
  137. package/src/utils/helpers.ts +6 -4
  138. package/src/utils/tools.js +48 -20
  139. package/yarn-error.log +16 -15807
package/.eslintrc.js CHANGED
@@ -125,7 +125,7 @@ module.exports = {
125
125
  "react/jsx-no-constructed-context-values": 1,
126
126
  "new-cap": 2,
127
127
  "function-paren-newline": 2,
128
- "global-require": 2,
128
+ "global-require": 1,
129
129
  "jsx-a11y/alt-text": 2,
130
130
  "react/no-array-index-key": 2,
131
131
  "react/no-unstable-nested-components": 2,
@@ -63,7 +63,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
63
63
 
64
64
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
65
65
 
66
- 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); }
66
+ 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); }
67
67
 
68
68
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
69
69
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -61,7 +61,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
61
61
 
62
62
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
63
63
 
64
- 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); }
64
+ 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); }
65
65
 
66
66
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
67
67
 
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
29
29
 
30
30
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
31
 
32
- 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); }
32
+ 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); }
33
33
 
34
34
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
35
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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["default"] = _default;
8
+ exports["default"] = OkrCase;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -41,7 +41,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
41
41
 
42
42
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
43
 
44
- function _default(_ref) {
44
+ function OkrCase(_ref) {
45
45
  var onOkrApply = _ref.onOkrApply,
46
46
  okrTemplateEnabled = _ref.okrTemplateEnabled;
47
47
 
@@ -59,13 +59,13 @@ function _default(_ref) {
59
59
  };
60
60
 
61
61
  var OnOkrApplyHandler = function OnOkrApplyHandler(data) {
62
- onOkrApply && onOkrApply(data);
62
+ onOkrApply === null || onOkrApply === void 0 ? void 0 : onOkrApply(data);
63
63
  setVisible(false);
64
64
 
65
65
  _toast["default"].Success("成功套用");
66
66
  };
67
67
 
68
- return /*#__PURE__*/_react["default"].createElement(_style.Line, null, okrTemplateEnabled && !(0, _helpers.isLocal)() ? /*#__PURE__*/_react["default"].createElement(_style.CaseLink, {
68
+ return /*#__PURE__*/_react["default"].createElement(_style.Line, null, okrTemplateEnabled && !(0, _helpers.isLocal)() && !(0, _helpers.isTencentHr)() ? /*#__PURE__*/_react["default"].createElement(_style.CaseLink, {
69
69
  onClick: okrCaseClickHandler,
70
70
  className: "tu-icon-shoushi"
71
71
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Butt_AddfromOKR")) : null, okrTemplateEnabled && /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
@@ -95,8 +95,7 @@ function _default(_ref) {
95
95
  // offsetPosition={{ 'top': 41 }}
96
96
  // fullSize={true}
97
97
  // >
98
-
99
-
100
- {
101
- /* <OKRCases onClose={onCasesCloseHandler} onApplyTpl={OnOkrApplyHandler} /> */
102
- } // </OldModal>
98
+ // {
99
+ // /* <OKRCases onClose={onCasesCloseHandler} onApplyTpl={OnOkrApplyHandler} /> */
100
+ // }
101
+ // </OldModal>
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
29
29
 
30
30
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
31
 
32
- 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); }
32
+ 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); }
33
33
 
34
34
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
35
 
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
29
29
 
30
30
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
31
 
32
- 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); }
32
+ 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); }
33
33
 
34
34
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
35
 
@@ -29,7 +29,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
29
29
 
30
30
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
31
 
32
- 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); }
32
+ 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); }
33
33
 
34
34
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
35
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -3,17 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EStatusClass2StatusTypeText = void 0;
6
+ exports.getEStatusClass2StatusTypeText = exports["default"] = void 0;
7
7
 
8
8
  var _getLocale = require("../../../../utils/getLocale");
9
9
 
10
- var EStatusClass2StatusTypeText = {
11
- 2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed"),
12
- 1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
13
- 4: (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled"),
14
- 3: (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed"),
15
- 6: (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended"),
16
- 0: (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted"),
17
- 5: (0, _getLocale.getLocale)("OKR_MyO_E_From_Notaccepted")
10
+ var getEStatusClass2StatusTypeText = function getEStatusClass2StatusTypeText() {
11
+ return {
12
+ 2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed"),
13
+ 1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
14
+ 4: (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled"),
15
+ 3: (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed"),
16
+ 6: (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended"),
17
+ 0: (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted"),
18
+ 5: (0, _getLocale.getLocale)("OKR_MyO_E_From_Notaccepted")
19
+ };
18
20
  };
19
- exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
21
+
22
+ exports.getEStatusClass2StatusTypeText = getEStatusClass2StatusTypeText;
23
+ var _default = getEStatusClass2StatusTypeText;
24
+ exports["default"] = _default;
@@ -65,7 +65,7 @@ var DynamicProject = function DynamicProject(_ref) {
65
65
  feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
66
66
 
67
67
  var handleClickTitle = function handleClickTitle() {
68
- window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(data.obj.objId)));
68
+ window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(data.obj.objId)));
69
69
  };
70
70
 
71
71
  var renderName = (0, _react.useMemo)(function () {
@@ -98,7 +98,8 @@ var DynamicProject = function DynamicProject(_ref) {
98
98
  className: "".concat(prefix, "__content")
99
99
  }, /*#__PURE__*/_react["default"].createElement("img", {
100
100
  className: "".concat(prefix, "__content-img"),
101
- src: _dynamicProject["default"]
101
+ src: _dynamicProject["default"],
102
+ alt: ""
102
103
  }), /*#__PURE__*/_react["default"].createElement("div", {
103
104
  className: "".concat(prefix, "__content-info")
104
105
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -113,7 +114,7 @@ var DynamicProject = function DynamicProject(_ref) {
113
114
  className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
114
115
  }), /*#__PURE__*/_react["default"].createElement("span", {
115
116
  className: "".concat(prefix, "__content-status-text")
116
- }, _constant.EStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
117
+ }, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
117
118
  className: (0, _classnames["default"])("tu-icon-deferred")
118
119
  }), /*#__PURE__*/_react["default"].createElement("span", {
119
120
  className: "".concat(prefix, "__content-time-range")
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  .titaui-dynamic-reply-item__detail-tasks-item::before {
32
- content: "";
32
+ content: '';
33
33
  display: inline-block;
34
34
  width: 6px;
35
35
  height: 6px;
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  .titaui-dynamic-reply-item__detail-block-title::before {
56
- content: "";
56
+ content: '';
57
57
  display: inline-block;
58
58
  width: 4px;
59
59
  height: 12px;
@@ -71,10 +71,11 @@
71
71
  color: #3f4755;
72
72
  line-height: 22px;
73
73
  margin-left: 8px;
74
+ white-space: pre-wrap;
74
75
  }
75
76
 
76
77
  .titaui-dynamic-reply-item__detail-block-title--sub::before {
77
- content: "";
78
+ content: '';
78
79
  display: inline-block;
79
80
  width: 6px;
80
81
  height: 6px;
@@ -90,6 +91,7 @@
90
91
  line-height: 22px;
91
92
  margin-bottom: 4px;
92
93
  margin-left: 8px;
94
+ white-space: pre-wrap;
93
95
  }
94
96
 
95
97
  .titaui-dynamic-reply-item__detail-block-content--sub {
@@ -29,6 +29,8 @@ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
29
29
 
30
30
  var _getLocale = require("../../../../utils/getLocale");
31
31
 
32
+ var _tools = require("../../../../utils/tools");
33
+
32
34
  require("./index.css");
33
35
 
34
36
  var _excluded = ["data"];
@@ -135,7 +137,7 @@ var DynamicReply = function DynamicReply(_ref) {
135
137
  }, (0, _getLocale.getLocale)("OKR_MyO_KRP_Pop_Value")), /*#__PURE__*/_react["default"].createElement("div", {
136
138
  className: "".concat(prefix, "__detail-block-content")
137
139
  }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
138
- str: data.gains,
140
+ str: (0, _tools.htmlDecodeByHtmlRegExp)(data.gains),
139
141
  keyWord: searchKeyWord
140
142
  }))), /*#__PURE__*/_react["default"].createElement("div", null, data.drawbacks && data.drawbacks.map(function (item, index) {
141
143
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -146,21 +148,21 @@ var DynamicReply = function DynamicReply(_ref) {
146
148
  }, (0, _getLocale.getLocale)("OKR_MyO_KRP_Pop_Problems"), " ", index + 1), /*#__PURE__*/_react["default"].createElement("div", {
147
149
  className: "".concat(prefix, "__detail-block-content")
148
150
  }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
149
- str: item.drawback,
151
+ str: (0, _tools.htmlDecodeByHtmlRegExp)(item.drawback),
150
152
  keyWord: searchKeyWord
151
153
  })), item.cause && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
152
154
  className: "".concat(prefix, "__detail-block-title--sub")
153
155
  }, "\u6839\u672C\u539F\u56E0:"), /*#__PURE__*/_react["default"].createElement("div", {
154
156
  className: (0, _classnames["default"])("".concat(prefix, "__detail-block-content"), "".concat(prefix, "__detail-block-content--sub"))
155
157
  }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
156
- str: item.cause,
158
+ str: (0, _tools.htmlDecodeByHtmlRegExp)(item.cause),
157
159
  keyWord: searchKeyWord
158
160
  }))), item.measures && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
159
161
  className: "".concat(prefix, "__detail-block-title--sub")
160
162
  }, "\u76F8\u5E94\u63AA\u65BD:"), /*#__PURE__*/_react["default"].createElement("div", {
161
163
  className: (0, _classnames["default"])("".concat(prefix, "__detail-block-content"), "".concat(prefix, "__detail-block-content--sub"))
162
164
  }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
163
- str: item.measures,
165
+ str: (0, _tools.htmlDecodeByHtmlRegExp)(item.measures),
164
166
  keyWord: searchKeyWord
165
167
  }))));
166
168
  })), data.tasks && data.tasks.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
@@ -3,17 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EStatusClass2StatusTypeText = void 0;
6
+ exports.getEStatusClass2StatusTypeText = exports["default"] = void 0;
7
7
 
8
8
  var _getLocale = require("../../../../utils/getLocale");
9
9
 
10
- var EStatusClass2StatusTypeText = {
11
- 2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed"),
12
- 1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
13
- 4: (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled"),
14
- 3: (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed"),
15
- 6: (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended"),
16
- 0: (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted"),
17
- 5: (0, _getLocale.getLocale)("OKR_MyO_E_From_Notaccepted")
10
+ var getEStatusClass2StatusTypeText = function getEStatusClass2StatusTypeText() {
11
+ return {
12
+ 2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed"),
13
+ 1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
14
+ 4: (0, _getLocale.getLocale)("OKR_MyO_E_From_Cancelled"),
15
+ 3: (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed"),
16
+ 6: (0, _getLocale.getLocale)("OKR_MyO_E_From_Suspended"),
17
+ 0: (0, _getLocale.getLocale)("OKR_MyO_E_From_NotStarted"),
18
+ 5: (0, _getLocale.getLocale)("OKR_MyO_E_From_Notaccepted")
19
+ };
18
20
  };
19
- exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
21
+
22
+ exports.getEStatusClass2StatusTypeText = getEStatusClass2StatusTypeText;
23
+ var _default = getEStatusClass2StatusTypeText;
24
+ exports["default"] = _default;
@@ -92,17 +92,17 @@ var DynamicTask = function DynamicTask(_ref) {
92
92
  }
93
93
 
94
94
  if (objType === _constant2.EObjType.Project) {
95
- window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
95
+ window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
96
96
  }
97
97
 
98
98
  if (objType === _constant2.EObjType.MileStone) {
99
99
  if (workId <= 0) return;
100
- window.open(window.location.href.replace(location.hash, "#work?work_id=".concat(workId, "&detail_type=milepost")));
100
+ window.open(window.location.href.replace(window.location.hash, "#work?work_id=".concat(workId, "&detail_type=milepost")));
101
101
  }
102
102
 
103
103
  if (objType === _constant2.EObjType.KanBan) {
104
104
  if (workId <= 0) return;
105
- window.open(window.location.href.replace(location.hash, "#work?work_id=".concat(workId, "&detail_type=kanban")));
105
+ window.open(window.location.href.replace(window.location.hash, "#work?work_id=".concat(workId, "&detail_type=kanban")));
106
106
  }
107
107
  };
108
108
 
@@ -152,7 +152,8 @@ var DynamicTask = function DynamicTask(_ref) {
152
152
  className: "".concat(prefix, "__content")
153
153
  }, /*#__PURE__*/_react["default"].createElement("img", {
154
154
  className: "".concat(prefix, "__content-img"),
155
- src: _taskIcon["default"]
155
+ src: _taskIcon["default"],
156
+ alt: ""
156
157
  }), /*#__PURE__*/_react["default"].createElement("div", {
157
158
  className: "".concat(prefix, "__content-info")
158
159
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -167,7 +168,7 @@ var DynamicTask = function DynamicTask(_ref) {
167
168
  className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
168
169
  }), /*#__PURE__*/_react["default"].createElement("span", {
169
170
  className: "".concat(prefix, "__content-status-text")
170
- }, _constant.EStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
171
+ }, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
171
172
  className: (0, _classnames["default"])("tu-icon-deferred")
172
173
  }), /*#__PURE__*/_react["default"].createElement("span", {
173
174
  className: "".concat(prefix, "__content-time-range")
@@ -69,8 +69,9 @@
69
69
 
70
70
  .danamic-like-ranking__content-table-items {
71
71
  display: grid;
72
- grid-template-columns: auto auto auto auto;
72
+ grid-template-columns: auto 28px auto auto;
73
73
  grid-row-gap: 16px;
74
+ margin-left: -8px;
74
75
  }
75
76
 
76
77
  .danamic-like-ranking__item:last-of-type {
@@ -92,10 +93,6 @@
92
93
  font-size: 14px;
93
94
  }
94
95
 
95
- .danamic-like-ranking__item-avatar {
96
- margin-left: 9px;
97
- }
98
-
99
96
  .danamic-like-ranking__item-avatar .titaui-pc-avator-container {
100
97
  display: inline-flex !important;
101
98
  }
@@ -43,7 +43,6 @@ var Item = function Item(_ref) {
43
43
  // window.open(url, "_blank");
44
44
  // };
45
45
 
46
- var ObjectTypeText = (0, _constant.ObjectType)();
47
46
  return /*#__PURE__*/_react["default"].createElement("div", {
48
47
  className: "".concat(preCls)
49
48
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -65,7 +64,7 @@ var Item = function Item(_ref) {
65
64
  text: /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Feed_Kudos"), /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
66
65
  id: toUserId,
67
66
  name: toUserName
68
- }), "".concat(ObjectTypeText[pariseObjType] || "feed")),
67
+ }), "".concat((0, _constant.ObjectType)()[pariseObjType] || "feed")),
69
68
  maxWidth: 150
70
69
  }))), /*#__PURE__*/_react["default"].createElement("div", {
71
70
  className: "".concat(preCls, "-center-time")
@@ -185,9 +185,14 @@ var Dynamic = function Dynamic() {
185
185
  };
186
186
 
187
187
  var handleDeleteFeed = function handleDeleteFeed(feedId) {
188
- setDynamicData(_toConsumableArray(dynamicData.filter(function (item) {
188
+ var newDatas = dynamicData.filter(function (item) {
189
189
  return item.feedId !== feedId;
190
- })));
190
+ });
191
+ setDynamicData([]); // 动画效果如果直接设置新的数据,diff时间会比较长,所以直接清空再赋值,这样不会出现删除时等待长时间空白
192
+
193
+ setTimeout(function () {
194
+ setDynamicData(_toConsumableArray(newDatas));
195
+ }, 0);
191
196
  };
192
197
 
193
198
  var getDynamicData = function getDynamicData(needResetValue) {
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -47,7 +47,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
47
47
 
48
48
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
49
49
 
50
- 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); }
50
+ 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); }
51
51
 
52
52
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
53
53
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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
 
@@ -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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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"); } 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); }
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