@titaui/pc 1.13.2-beta.19 → 1.13.2-beta.21

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 (75) hide show
  1. package/lib/components/checkbox-list/index.css +31 -0
  2. package/lib/components/checkbox-list/index.js +68 -0
  3. package/lib/components/create-okr-modal/index.js +4 -1
  4. package/lib/components/dialog-qq-docs/index.css +106 -0
  5. package/lib/components/dialog-qq-docs/index.js +501 -0
  6. package/lib/components/dialog-qq-docs/request-apis.js +16 -0
  7. package/lib/components/dialog-qq-docs/utils.js +83 -0
  8. package/lib/components/dialog-select/index.css +9 -0
  9. package/lib/components/dialog-select/index.js +48 -0
  10. package/lib/components/dialog-upload/img/folder.svg +40 -0
  11. package/lib/components/dialog-upload/img/form.svg +38 -0
  12. package/lib/components/dialog-upload/img/mind.svg +39 -0
  13. package/lib/components/dialog-upload/util.js +20 -2
  14. package/lib/components/dialog-upload-type/assets/folder.svg +20 -0
  15. package/lib/components/dialog-upload-type/assets/qq-docs.svg +20 -0
  16. package/lib/components/dialog-upload-type/components/upload-type-item/index.css +14 -0
  17. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +36 -0
  18. package/lib/components/dialog-upload-type/index.css +7 -0
  19. package/lib/components/dialog-upload-type/index.js +68 -0
  20. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +2 -3
  21. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +1 -5
  22. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -12
  23. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +2 -13
  24. package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +2 -2
  25. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +1 -16
  26. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +9 -51
  27. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +10 -27
  28. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -6
  29. package/lib/components/dynamic/dynamic-item/index.js +3 -23
  30. package/lib/components/dynamic/request-api.js +2 -9
  31. package/lib/components/file-list/components/single-file/index.css +29 -0
  32. package/lib/components/file-list/components/single-file/index.js +19 -28
  33. package/lib/components/file-list/img/folder.svg +40 -0
  34. package/lib/components/file-list/img/form.svg +38 -0
  35. package/lib/components/file-list/img/mind.svg +39 -0
  36. package/lib/components/file-list/index.js +2 -1
  37. package/lib/components/file-list/util.js +20 -2
  38. package/lib/components/file-preview/index.css +44 -0
  39. package/lib/components/file-preview/index.js +68 -0
  40. package/lib/components/loading/assets/loading.gif +0 -0
  41. package/lib/components/loading/index.css +28 -0
  42. package/lib/components/loading/index.js +64 -0
  43. package/lib/components/nav/index.css +37 -0
  44. package/lib/components/nav/index.js +31 -0
  45. package/lib/components/nav-top/components/app-center/index.js +6 -1
  46. package/lib/components/nav-top/components/menu/index.js +44 -14
  47. package/lib/components/nav-top/index.css +6 -0
  48. package/lib/components/nav-top/index.js +138 -2
  49. package/lib/components/nav-top/request.apis.js +10 -2
  50. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +4 -1
  51. package/lib/components/okr-guide/constant.js +23 -0
  52. package/lib/components/okr-guide/img/left-img.jpg +0 -0
  53. package/lib/components/okr-guide/index.css +148 -0
  54. package/lib/components/okr-guide/index.js +242 -0
  55. package/lib/components/okr-guide/request-api.js +57 -0
  56. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  57. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  58. package/lib/components/rich-editor-at/index.js +13 -85
  59. package/lib/components/scroll-container/index.js +27 -6
  60. package/lib/components/search-input/index.css +2 -2
  61. package/lib/components/search-input/index.js +4 -0
  62. package/lib/components/upload/img/folder.svg +40 -0
  63. package/lib/components/upload/img/form.svg +38 -0
  64. package/lib/components/upload/img/mind.svg +39 -0
  65. package/lib/components/upload/index.js +193 -25
  66. package/lib/components/upload/index2.js +381 -0
  67. package/lib/components/upload/util.js +20 -2
  68. package/lib/components/user-selector/request-apis.js +3 -3
  69. package/lib/components/version-change-modal/index.js +1 -3
  70. package/lib/index.js +8 -0
  71. package/lib/utils/open-data.js +77 -68
  72. package/lib/utils/tools.js +11 -1
  73. package/package.json +2 -3
  74. package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +0 -56
  75. package/lib/utils/mock-bsglobal.js +0 -1837
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _dialog = _interopRequireDefault(require("../dialog"));
11
+
12
+ require("./index.css");
13
+
14
+ var _excluded = ["data", "onSelect"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
+
20
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
+
22
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+
24
+ var preCls = 'titaui-dialog-select';
25
+
26
+ var DialogSelect = function DialogSelect(_ref) {
27
+ var data = _ref.data,
28
+ onSelect = _ref.onSelect,
29
+ restProps = _objectWithoutProperties(_ref, _excluded);
30
+
31
+ var onClickItemHandler = function onClickItemHandler(idx) {
32
+ if (onSelect) onSelect(idx, data[idx]);
33
+ };
34
+
35
+ return /*#__PURE__*/_react["default"].createElement(_dialog["default"], _extends({}, restProps, {
36
+ noFooter: true
37
+ }), /*#__PURE__*/_react["default"].createElement("div", {
38
+ className: preCls
39
+ }, data.map(function (item, i) {
40
+ return /*#__PURE__*/_react["default"].createElement("div", {
41
+ className: "".concat(preCls, "__item"),
42
+ onClick: onClickItemHandler.bind(null, i)
43
+ }, item.component);
44
+ })));
45
+ };
46
+
47
+ var _default = DialogSelect;
48
+ exports["default"] = _default;
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>文件夹-icon</title>
4
+ <defs>
5
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
+ <stop stop-color="#FFC03F" offset="0%"></stop>
7
+ <stop stop-color="#E69F00" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#FFDCA4" offset="0%"></stop>
11
+ <stop stop-color="#FFB112" offset="100%"></stop>
12
+ </linearGradient>
13
+ <filter x="-34.5%" y="-70.4%" width="169.1%" height="240.7%" filterUnits="objectBoundingBox" id="filter-3">
14
+ <feOffset dx="0" dy="0.8" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
15
+ <feGaussianBlur stdDeviation="0.4" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
16
+ <feColorMatrix values="0 0 0 0 0.839215686 0 0 0 0 0.521568627 0 0 0 0 0 0 0 0 0.8 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
17
+ <feMerge>
18
+ <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
19
+ <feMergeNode in="SourceGraphic"></feMergeNode>
20
+ </feMerge>
21
+ </filter>
22
+ </defs>
23
+ <g id="老图标" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
24
+ <g id="附件图标" transform="translate(-121.000000, -2257.000000)">
25
+ <g id="caret-left" transform="translate(100.000000, 2236.000000)">
26
+ <g id="文件夹-icon" transform="translate(21.000000, 21.451613)">
27
+ <rect id="矩形" x="0" y="0" width="28" height="27.0967742"></rect>
28
+ <g id="编组-2" transform="translate(3.000000, 4.000000)">
29
+ <path d="M15.9650836,2 L6,2 L8.77205113,6.06216846 C9.14163521,6.6037576 9.75321174,6.92979558 10.408869,6.93477353 L19,7 L19,7 L19,5.05359586 C19,3.3506359 17.6240805,2 15.9650836,2 Z" id="路径" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
30
+ <path d="M6.04598201,0 L2.57236384,0 C1.15168652,0 0,1.16658056 0,2.60563061 L0,16.3943694 C0,17.8334194 1.15168652,19 2.57236384,19 L19.4259356,19 C20.1081689,19 20.7624597,18.725479 21.2448715,18.2368285 C21.7272833,17.7481779 21.9982995,17.0854256 21.9982995,16.3943694 L22,7.44078957 L21.9889926,7.20659221 C21.8694704,5.89527292 20.7924377,4.86679244 19.4711935,4.84814641 L10.8954901,4.77831357 L8.46091772,1.49939662 C7.94002451,0.624382478 7.06938277,0 6.04598201,0 Z" id="路径" fill="url(#linearGradient-2)" fill-rule="nonzero"></path>
31
+ <g id="编组-22" filter="url(#filter-3)" transform="translate(5.439785, 9.493548)">
32
+ <path d="M0.7,4 L6.3,4 C6.68659932,4 7,4.31340068 7,4.7 C7,5.08659932 6.68659932,5.4 6.3,5.4 L0.7,5.4 C0.313400675,5.4 4.73447626e-17,5.08659932 0,4.7 C-4.73447626e-17,4.31340068 0.313400675,4 0.7,4 Z" id="path-5" fill="#FFDA9E" transform="translate(3.500000, 4.700000) rotate(-180.000000) translate(-3.500000, -4.700000) "></path>
33
+ <path d="M0.7,0 L10.3,0 C10.6865993,-1.82039446e-16 11,0.313400675 11,0.7 C11,1.08659932 10.6865993,1.4 10.3,1.4 L0.7,1.4 C0.313400675,1.4 4.73447626e-17,1.08659932 0,0.7 C-4.73447626e-17,0.313400675 0.313400675,7.10171439e-17 0.7,0 Z" id="path-5" fill="#FFFFFF" transform="translate(5.500000, 0.700000) rotate(-180.000000) translate(-5.500000, -0.700000) "></path>
34
+ </g>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>PPT-icon</title>
4
+ <defs>
5
+ <linearGradient x1="100%" y1="29.7818714%" x2="83.6208606%" y2="29.7818714%" id="linearGradient-1">
6
+ <stop stop-color="#F0A326" offset="0%"></stop>
7
+ <stop stop-color="#D68500" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="99.3480785%" x2="50%" y2="-1.36175793e-14%" id="linearGradient-2">
10
+ <stop stop-color="#F0A326" offset="0%"></stop>
11
+ <stop stop-color="#FFDA9E" offset="100%"></stop>
12
+ </linearGradient>
13
+ <filter x="-31.6%" y="-43.3%" width="163.2%" height="186.7%" filterUnits="objectBoundingBox" id="filter-3">
14
+ <feOffset dx="0" dy="0.8" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
15
+ <feGaussianBlur stdDeviation="0.4" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
16
+ <feColorMatrix values="0 0 0 0 0.839215686 0 0 0 0 0.521568627 0 0 0 0 0 0 0 0 1 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
17
+ <feMerge>
18
+ <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
19
+ <feMergeNode in="SourceGraphic"></feMergeNode>
20
+ </feMerge>
21
+ </filter>
22
+ </defs>
23
+ <g id="老图标" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
24
+ <g id="附件图标" transform="translate(-121.000000, -2469.000000)">
25
+ <g id="caret-left" transform="translate(100.000000, 2448.000000)">
26
+ <g id="PPT-icon" transform="translate(21.000000, 21.000000)">
27
+ <rect id="矩形" x="0" y="0" width="28" height="27.0967742"></rect>
28
+ <path d="M8.08888889,7.67741935 L23.6444445,7.67741935 C24.503554,7.67741935 25.2,8.3455386 25.2,9.16970547 L25.2,23.3464236 C25.2,24.1705905 24.503554,24.8387097 23.6444445,24.8387097 L8.08888889,24.8387097 C7.22977928,24.8387097 6.53333333,24.1705905 6.53333333,23.3464236 L6.53333333,9.16970547 C6.53333333,8.3455386 7.22977928,7.67741935 8.08888889,7.67741935 Z" id="蒙版备份" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
29
+ <path d="M20.291358,2.25806452 C21.1313763,2.25806452 21.8123456,2.93204446 21.8123456,3.76344086 L21.8123456,23.3333334 C21.8123456,24.1647298 22.493315,24.8387097 23.3333333,24.8387097 L4.32098765,24.8387097 C3.48096937,24.8387097 2.8,24.1647298 2.8,23.3333334 L2.8,3.76344086 C2.8,2.93204446 3.48096937,2.25806452 4.32098765,2.25806452 L20.291358,2.25806452 Z" id="path-3" fill="url(#linearGradient-2)" fill-rule="nonzero"></path>
30
+ <g id="编组-22" filter="url(#filter-3)" transform="translate(6.747309, 8.548387)">
31
+ <path d="M0.31629509,5.451829 L4.91629509,5.451829 C5.30289442,5.451829 5.61629509,5.76522967 5.61629509,6.151829 C5.61629509,6.53842832 5.30289442,6.851829 4.91629509,6.851829 L0.31629509,6.851829 C-0.0703042345,6.851829 -0.38370491,6.53842832 -0.38370491,6.151829 C-0.38370491,5.76522967 -0.0703042345,5.451829 0.31629509,5.451829 Z" id="path-5" fill="#FFDA9E" transform="translate(2.616295, 6.151829) rotate(-135.000000) translate(-2.616295, -6.151829) "></path>
32
+ <path d="M2.83675324,3.68406204 L12.4367532,3.68406204 C12.8233526,3.68406204 13.1367532,3.99746272 13.1367532,4.38406204 C13.1367532,4.77066137 12.8233526,5.08406204 12.4367532,5.08406204 L2.83675324,5.08406204 C2.45015391,5.08406204 2.13675324,4.77066137 2.13675324,4.38406204 C2.13675324,3.99746272 2.45015391,3.68406204 2.83675324,3.68406204 Z" id="path-5" fill="#FFFFFF" transform="translate(7.636753, 4.384062) rotate(-225.000000) translate(-7.636753, -4.384062) "></path>
33
+ </g>
34
+ </g>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </svg>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>pdf-icon</title>
4
+ <defs>
5
+ <linearGradient x1="100%" y1="29.7818714%" x2="83.6208606%" y2="29.7818714%" id="linearGradient-1">
6
+ <stop stop-color="#33C7FF" offset="0%"></stop>
7
+ <stop stop-color="#009FDB" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="100%" x2="50%" y2="-2.48949813e-15%" id="linearGradient-2">
10
+ <stop stop-color="#12AFEA" offset="0%"></stop>
11
+ <stop stop-color="#94E2FF" offset="100%"></stop>
12
+ </linearGradient>
13
+ <filter x="-33.2%" y="-40.4%" width="166.4%" height="180.9%" filterUnits="objectBoundingBox" id="filter-3">
14
+ <feOffset dx="0" dy="0.8" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
15
+ <feGaussianBlur stdDeviation="0.4" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
16
+ <feColorMatrix values="0 0 0 0 0.0705882353 0 0 0 0 0.68627451 0 0 0 0 0.917647059 0 0 0 0.8 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
17
+ <feMerge>
18
+ <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
19
+ <feMergeNode in="SourceGraphic"></feMergeNode>
20
+ </feMerge>
21
+ </filter>
22
+ </defs>
23
+ <g id="老图标" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
24
+ <g id="附件图标" transform="translate(-121.000000, -2045.000000)">
25
+ <g id="caret-left" transform="translate(100.000000, 2024.000000)">
26
+ <g id="pdf-icon" transform="translate(21.000000, 21.451613)">
27
+ <rect id="矩形" x="0" y="0" width="28" height="27.0967742"></rect>
28
+ <path d="M8.08888889,7.67741935 L23.6444445,7.67741935 C24.503554,7.67741935 25.2,8.3455386 25.2,9.16970547 L25.2,23.3464236 C25.2,24.1705905 24.503554,24.8387097 23.6444445,24.8387097 L8.08888889,24.8387097 C7.22977928,24.8387097 6.53333333,24.1705905 6.53333333,23.3464236 L6.53333333,9.16970547 C6.53333333,8.3455386 7.22977928,7.67741935 8.08888889,7.67741935 Z" id="蒙版备份" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
29
+ <path d="M20.291358,2.25806452 C21.1313763,2.25806452 21.8123456,2.93204446 21.8123456,3.76344086 L21.8123456,23.3333334 C21.8123456,24.1647298 22.493315,24.8387097 23.3333333,24.8387097 L4.32098765,24.8387097 C3.48096937,24.8387097 2.8,24.1647298 2.8,23.3333334 L2.8,3.76344086 C2.8,2.93204446 3.48096937,2.25806452 4.32098765,2.25806452 L20.291358,2.25806452 Z" id="path-3" fill="url(#linearGradient-2)" fill-rule="nonzero"></path>
30
+ <g id="编组-22" filter="url(#filter-3)" transform="translate(6.000000, 8.798387)">
31
+ <path d="M7.13978495,4 L10.7397849,4 C11.1263843,4 11.4397849,4.31340068 11.4397849,4.7 C11.4397849,5.08659932 11.1263843,5.4 10.7397849,5.4 L7.13978495,5.4 C6.75318562,5.4 6.43978495,5.08659932 6.43978495,4.7 C6.43978495,4.31340068 6.75318562,4 7.13978495,4 Z" id="path-5" fill="#88DFFF" transform="translate(8.939785, 4.700000) rotate(-180.000000) translate(-8.939785, -4.700000) "></path>
32
+ <path d="M2.80326654,4 C3.08544089,4 3.34002538,4.16942267 3.44897952,4.42971358 C4.42734177,6.76701638 5.41282979,7.91043659 6.29653021,7.99493445 L6.40207871,8 L10.7,8 C11.0865993,8 11.4,8.31340068 11.4,8.7 C11.4,9.05438271 11.1366564,9.34725823 10.7949859,9.39360983 L10.7,9.4 L6.40207871,9.4 C4.9177844,9.4 3.65980532,8.17244898 2.53985234,5.8267506 L2.343,5.4 L0.7,5.4 C0.345617286,5.4 0.0527417698,5.13665638 0.00639017493,4.79498585 L0,4.7 C0,4.34561729 0.263343623,4.05274177 0.605014146,4.00639017 L0.7,4 L2.80326654,4 Z" id="路径-2" fill="#FFFFFF" fill-rule="nonzero"></path>
33
+ <path d="M2.80326654,0 C3.08544089,0 3.34002538,0.169422665 3.44897952,0.429713581 C4.42734177,2.76701638 5.41282979,3.91043659 6.29653021,3.99493445 L6.40207871,4 L10.7,4 C11.0865993,4 11.4,4.31340068 11.4,4.7 C11.4,5.05438271 11.1366564,5.34725823 10.7949859,5.39360983 L10.7,5.4 L6.40207871,5.4 C4.9177844,5.4 3.65980532,4.17244898 2.53985234,1.8267506 L2.343,1.4 L0.7,1.4 C0.345617286,1.4 0.0527417698,1.13665638 0.00639017493,0.794985854 L0,0.7 C0,0.345617286 0.263343623,0.0527417698 0.605014146,0.00639017493 L0.7,0 L2.80326654,0 Z" id="路径-2" fill="#FFFFFF" fill-rule="nonzero" transform="translate(5.700000, 2.700000) scale(1, -1) translate(-5.700000, -2.700000) "></path>
34
+ </g>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </svg>
@@ -19,6 +19,12 @@ var _video = _interopRequireDefault(require("./img/video.svg"));
19
19
 
20
20
  var _xls = _interopRequireDefault(require("./img/xls.svg"));
21
21
 
22
+ var _folder = _interopRequireDefault(require("./img/folder.svg"));
23
+
24
+ var _form = _interopRequireDefault(require("./img/form.svg"));
25
+
26
+ var _mind = _interopRequireDefault(require("./img/mind.svg"));
27
+
22
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
29
 
24
30
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -60,7 +66,7 @@ var getFileTypeMapIcon = function getFileTypeMapIcon(fileType) {
60
66
  return _video["default"];
61
67
  }
62
68
 
63
- if (/^(pptx|ppt)$/.test(fileType.toLowerCase())) {
69
+ if (/^(pptx|ppt|slide)$/.test(fileType.toLowerCase())) {
64
70
  return _ppt["default"];
65
71
  }
66
72
 
@@ -68,7 +74,7 @@ var getFileTypeMapIcon = function getFileTypeMapIcon(fileType) {
68
74
  return _doc["default"];
69
75
  }
70
76
 
71
- if (/^(xls|xlsx)$/.test(fileType.toLowerCase())) {
77
+ if (/^(xls|xlsx|sheet)$/.test(fileType.toLowerCase())) {
72
78
  return _xls["default"];
73
79
  }
74
80
 
@@ -76,6 +82,18 @@ var getFileTypeMapIcon = function getFileTypeMapIcon(fileType) {
76
82
  return _pdf["default"];
77
83
  }
78
84
 
85
+ if (/^(folder)$/.test(fileType.toLowerCase())) {
86
+ return _folder["default"];
87
+ }
88
+
89
+ if (/^(form)$/.test(fileType.toLowerCase())) {
90
+ return _form["default"];
91
+ }
92
+
93
+ if (/^(mind)$/.test(fileType.toLowerCase())) {
94
+ return _mind["default"];
95
+ }
96
+
79
97
  return _other["default"];
80
98
  };
81
99
 
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>文件类型-标准图-文件夹</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="1、选择上传方式" transform="translate(-492.000000, -380.000000)" fill-rule="nonzero">
6
+ <g id="弹层" transform="translate(360.000000, 290.000000)">
7
+ <g id="编组-2" transform="translate(96.000000, 74.000000)">
8
+ <g id="文件类型-标准图-文件夹" transform="translate(36.000000, 16.000000)">
9
+ <rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="48" height="48"></rect>
10
+ <g id="编组" transform="translate(2.666667, 6.666667)">
11
+ <path d="M0,2.08809135 C0,0.934870343 0.955125867,0 2.13333333,0 L16.7266667,0 C17.5800671,0 18.3513336,0.497864648 18.6874667,1.26564437 L19.7333333,3.65415987 L40.5333333,3.65415987 C41.7115408,3.65415987 42.6666667,4.58903021 42.6666667,5.74225122 L40.2962963,33.4674642 C40.2962963,34.6206852 39.3411704,35.5555556 38.162963,35.5555556 L2.13333333,35.5555556 C0.955125867,35.5555556 0,34.6206852 0,33.4674642 L0,2.08809135 Z" id="路径" fill="#FFA000"></path>
12
+ <path d="M5.86666667,8.02962963 L36.8,8.02962963 C38.2222222,8.02962963 38.9333333,8.74074074 38.9333333,10.162963 L38.9333333,29.362963 C38.9333333,30.7851852 38.2222222,31.4962963 36.8,31.4962963 L5.86666667,31.4962963 C4.44444444,31.4962963 3.73333333,30.7851852 3.73333333,29.362963 L3.73333333,10.162963 C3.73333333,8.74074074 4.44444444,8.02962963 5.86666667,8.02962963 Z" id="路径" fill="#FFFFFF"></path>
13
+ <path d="M2.13333333,10.6666667 L40.5333333,10.6666667 C41.9555556,10.6666667 42.6666667,11.3580247 42.6666667,12.7407407 L40.2962963,33.4814815 C40.2962963,34.8641975 39.5851852,35.5555556 38.162963,35.5555556 L2.13333333,35.5555556 C0.711111111,35.5555556 0,34.8641975 0,33.4814815 L0,12.7407407 C0,11.3580247 0.711111111,10.6666667 2.13333333,10.6666667 Z" id="路径" fill="#FFCA28"></path>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>腾讯文档</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="1、选择上传方式" transform="translate(-660.000000, -380.000000)">
6
+ <g id="弹层" transform="translate(360.000000, 290.000000)">
7
+ <g id="编组-2" transform="translate(264.000000, 74.000000)">
8
+ <g id="腾讯文档" transform="translate(36.000000, 16.000000)">
9
+ <rect id="矩形" x="0" y="0" width="48" height="48"></rect>
10
+ <g id="下载" transform="translate(2.666667, 5.333333)" fill-rule="nonzero">
11
+ <path d="M34.3507303,0 L7.08406368,0 C6.70806368,0 6.38673035,0.270666667 6.32139701,0.64 L0.0120636794,36.4226667 C-0.0719363206,36.8973333 0.293397013,37.332 0.776063679,37.332 L15.8067303,37.332 L16.997397,36.9626667 L23.977397,36.9626667 L24.953397,37.332 L36.533397,37.332 C36.909397,37.332 37.2320637,37.0626667 37.297397,36.692 L42.4867303,7.26133333 L34.3520637,0 L34.3507303,0 Z" id="路径" fill="#1E6FFF"></path>
12
+ <path d="M33.9947303,7.26 L42.485397,7.26 L34.3520637,0 L33.2320637,6.34933333 C33.1480637,6.824 33.5120637,7.26 33.9947303,7.26" id="路径" fill="#00DCFF"></path>
13
+ <polygon id="路径" fill="#FFFFFF" points="22.1240637 1.532 20.5987303 10.2093333 5.72406368 10.2346667 12.1867303 17.228 19.3600637 17.228 15.8067303 37.3306667 24.953397 37.3306667 28.5107303 17.228 39.3107303 17.228 39.685397 17.22"></polygon>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,14 @@
1
+ .titaui-upload-type-item {
2
+ width: 120px;
3
+ height: 106px;
4
+ border-radius: 12px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ justify-content: center;
9
+ cursor: pointer;
10
+ }
11
+
12
+ .titaui-upload-type-item:hover {
13
+ background-color: #F0F4FA;
14
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ require("./index.css");
11
+
12
+ var _excluded = ["label", "icon"];
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
+
18
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
+
20
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
+
22
+ var UploadTypeItem = function UploadTypeItem(_ref) {
23
+ var label = _ref.label,
24
+ icon = _ref.icon,
25
+ restProps = _objectWithoutProperties(_ref, _excluded);
26
+
27
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({}, restProps, {
28
+ className: "titaui-upload-type-item ".concat(restProps.className || '')
29
+ }), /*#__PURE__*/_react["default"].createElement("img", {
30
+ src: icon,
31
+ alt: ""
32
+ }), /*#__PURE__*/_react["default"].createElement("p", null, label));
33
+ };
34
+
35
+ var _default = UploadTypeItem;
36
+ exports["default"] = _default;
@@ -0,0 +1,7 @@
1
+ .dialog-upload-type {
2
+ width: 480px;
3
+ }
4
+
5
+ .dialog-upload-type .rc-dialog-header {
6
+ border: 0;
7
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _dialogSelect = _interopRequireDefault(require("../dialog-select"));
13
+
14
+ var _qqDocs = _interopRequireDefault(require("./assets/qq-docs.svg"));
15
+
16
+ var _folder = _interopRequireDefault(require("./assets/folder.svg"));
17
+
18
+ var _uploadTypeItem = _interopRequireDefault(require("./components/upload-type-item"));
19
+
20
+ var _getLocale = require("../../utils/getLocale");
21
+
22
+ require("./index.css");
23
+
24
+ var _excluded = ["onSelectQQDocs", "onSelectLocal"];
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ 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; }
31
+
32
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
+
34
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
35
+
36
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
37
+
38
+ var DialogUploadType = function DialogUploadType(_ref) {
39
+ var onSelectQQDocs = _ref.onSelectQQDocs,
40
+ onSelectLocal = _ref.onSelectLocal,
41
+ restProps = _objectWithoutProperties(_ref, _excluded);
42
+
43
+ var uploadTypeOptions = (0, _react.useMemo)(function () {
44
+ return [{
45
+ component: /*#__PURE__*/_react["default"].createElement(_uploadTypeItem["default"], {
46
+ onClick: onSelectLocal,
47
+ label: (0, _getLocale.getLocale)('Feed_Set_Pop_Butt_Locfil'),
48
+ icon: _folder["default"]
49
+ })
50
+ }, {
51
+ component: /*#__PURE__*/_react["default"].createElement(_uploadTypeItem["default"], {
52
+ onClick: onSelectQQDocs,
53
+ label: (0, _getLocale.getLocale)('Feed_Set_Pop_Butt_Tendoc'),
54
+ icon: _qqDocs["default"]
55
+ })
56
+ }];
57
+ }, [onSelectLocal, onSelectQQDocs]);
58
+ return /*#__PURE__*/_react["default"].createElement(_dialogSelect["default"], _extends({
59
+ title: (0, _getLocale.getLocale)('Feed_Title_Chotheway')
60
+ }, restProps, {
61
+ extraClass: ["dialog-upload-type ".concat(restProps.className || '')],
62
+ data: uploadTypeOptions
63
+ }));
64
+ };
65
+
66
+ var _default = /*#__PURE__*/_react["default"].memo(DialogUploadType);
67
+
68
+ exports["default"] = _default;
@@ -111,8 +111,7 @@ var OkrProgress = function OkrProgress(_ref) {
111
111
  return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_tableRowOkr["default"], {
112
112
  text: item.Name,
113
113
  isO: true,
114
- id: item.Id,
115
- data: item
114
+ id: item.Id
116
115
  })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
117
116
  type: "o",
118
117
  status: _constant.OkrRiskMapping[item.RiskLevel],
@@ -142,7 +141,7 @@ var OkrProgress = function OkrProgress(_ref) {
142
141
  })), /*#__PURE__*/_react["default"].createElement("td", {
143
142
  className: "padding-td"
144
143
  }, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
145
- value: item.LastRichContent,
144
+ value: item.LastContent,
146
145
  date: item.LastContentTime,
147
146
  id: item.Id
148
147
  })));
@@ -27,11 +27,7 @@ var Schedule = function Schedule(_ref) {
27
27
  className: "".concat(prefix, "__content")
28
28
  }, /*#__PURE__*/_react["default"].createElement("div", {
29
29
  className: "".concat(prefix, "__content-text")
30
- }, /*#__PURE__*/_react["default"].createElement("span", {
31
- dangerouslySetInnerHTML: {
32
- __html: value
33
- }
34
- }))), !value && /*#__PURE__*/_react["default"].createElement("div", {
30
+ }, value)), !value && /*#__PURE__*/_react["default"].createElement("div", {
35
31
  className: "".concat(prefix, "__no-progress")
36
32
  }, "-")));
37
33
  };
@@ -20,18 +20,6 @@
20
20
  margin-top: 4px;
21
21
  }
22
22
 
23
- .titaui-dynamic-summary-table-row-okr__common-time {
24
- white-space: nowrap;
25
- padding: 1px 8px;
26
- background-color: rgba(40, 121, 255, 0.16);
27
- border-radius: 12px;
28
- font-size: 12px;
29
- font-weight: 400;
30
- color: #3F4755;
31
- line-height: 18px;
32
- margin-left: 4px;
33
- }
34
-
35
23
  .titaui-dynamic-summary-table-row-okr__kr {
36
24
  margin-left: 24px;
37
25
  overflow: hidden;
@@ -13,8 +13,6 @@ var _scrollbar = _interopRequireDefault(require("../../../../scrollbar"));
13
13
 
14
14
  var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
15
15
 
16
- var _utils = require("./utils");
17
-
18
16
  var _openData = require("../../../../../utils/open-data");
19
17
 
20
18
  require("./index.css");
@@ -31,8 +29,7 @@ var TableRowOKR = function TableRowOKR(_ref) {
31
29
  _ref$isFirstLevel = _ref.isFirstLevel,
32
30
  isFirstLevel = _ref$isFirstLevel === void 0 ? true : _ref$isFirstLevel,
33
31
  _ref$order = _ref.order,
34
- order = _ref$order === void 0 ? 1 : _ref$order,
35
- data = _ref.data;
32
+ order = _ref$order === void 0 ? 1 : _ref$order;
36
33
 
37
34
  var handleClickTitle = function handleClickTitle() {
38
35
  if (isO) {
@@ -57,15 +54,7 @@ var TableRowOKR = function TableRowOKR(_ref) {
57
54
  onClick: handleClickTitle
58
55
  }, /*#__PURE__*/_react["default"].createElement("i", {
59
56
  className: "tu-icon-H5-".concat(isO ? "O" : "KR", "-s ").concat(prefix, "__common-icon")
60
- }), /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(text)), isO && /*#__PURE__*/_react["default"].createElement("span", {
61
- className: "".concat(prefix, "__common-time")
62
- }, (0, _utils.formatPeriod)({
63
- annualNum: data.AnnualNum,
64
- yqmNum: data.YqmNum,
65
- cycleType: data.CycleType,
66
- startDate: data.StartDate,
67
- endDate: data.EndDate
68
- })))), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
57
+ }), /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(text))), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
69
58
  className: (0, _classnames["default"])("".concat(prefix, "__kr")),
70
59
  onClick: handleClickTitle
71
60
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -36,7 +36,7 @@ var RenderRow = function RenderRow(_ref) {
36
36
 
37
37
  var render = function render() {
38
38
  if (item.IsImport) {
39
- var _item$LastRichContent;
39
+ var _item$LastContent;
40
40
 
41
41
  return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
42
42
  className: "".concat(prefix, "__table-row-title"),
@@ -58,7 +58,7 @@ var RenderRow = function RenderRow(_ref) {
58
58
  value: item.Progress,
59
59
  editable: false
60
60
  })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
61
- value: (item === null || item === void 0 ? void 0 : (_item$LastRichContent = item.LastRichContent) === null || _item$LastRichContent === void 0 ? void 0 : _item$LastRichContent.trim()) || "",
61
+ value: (item === null || item === void 0 ? void 0 : (_item$LastContent = item.LastContent) === null || _item$LastContent === void 0 ? void 0 : _item$LastContent.trim()) || "",
62
62
  editable: false,
63
63
  id: item.Id
64
64
  })));
@@ -27,12 +27,11 @@
27
27
  height: 32px;
28
28
  background: #f0f4fa;
29
29
  border-radius: 16px;
30
- padding: 5px 12px 5px 4px;
30
+ padding: 5px 8px 5px 4px;
31
31
  box-sizing: border-box;
32
32
  font-size: 14px;
33
33
  color: #3f4755;
34
34
  line-height: 22px;
35
- position: relative;
36
35
  }
37
36
 
38
37
  .titaui-dynamic-summary__remind-view__user-avatar {
@@ -42,17 +41,3 @@
42
41
  .titaui-dynamic-summary__remind-view__user-name {
43
42
  margin-left: 6px;
44
43
  }
45
-
46
- .titaui-dynamic-summary__remind-view__user-name-icon {
47
- position: absolute;
48
- right: 6px;
49
- top: 8px;
50
- width: 5px;
51
- height: 5px;
52
- border-radius: 50%;
53
- background-color: #A4ACB9;
54
- }
55
-
56
- .titaui-dynamic-summary__remind-view__user-name .hasRead {
57
- background-color: #5AD8A6;
58
- }
@@ -20,70 +20,28 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
20
20
  var preCls = 'titaui-dynamic-summary__remind-view';
21
21
 
22
22
  var RemindUserView = function RemindUserView(props) {
23
- var data = props.data,
24
- curAtUser = props.curAtUser;
25
-
26
- var _ref = data || {},
27
- _ref$Departments = _ref.Departments,
28
- Departments = _ref$Departments === void 0 ? [] : _ref$Departments,
29
- _ref$Groups = _ref.Groups,
30
- Groups = _ref$Groups === void 0 ? [] : _ref$Groups,
31
- _ref$Users = _ref.Users,
32
- Users = _ref$Users === void 0 ? [] : _ref$Users;
33
-
34
- if (!data || !Departments.length && !Groups.length && !Users.length) return null;
23
+ var data = props.data;
24
+ if (!data || !data.length) return null;
35
25
  return /*#__PURE__*/_react["default"].createElement("div", {
36
26
  className: preCls
37
27
  }, /*#__PURE__*/_react["default"].createElement("div", {
38
28
  className: "".concat(preCls, "__title")
39
- }, (0, _getLocale.getLocale)("OKR_MyO_himher")), /*#__PURE__*/_react["default"].createElement("div", {
29
+ }, (0, _getLocale.getLocale)('OKR_MyO_himher')), /*#__PURE__*/_react["default"].createElement("div", {
40
30
  className: "".concat(preCls, "__list")
41
- }, Users === null || Users === void 0 ? void 0 : Users.map(function (item) {
42
- return /*#__PURE__*/_react["default"].createElement("div", {
43
- className: "".concat(preCls, "__user")
44
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
45
- userId: item.User.UserId,
46
- name: item.User.Name,
47
- src: item.User.Avatar.Medium,
48
- color: item.User.Avatar.Color
49
- }), /*#__PURE__*/_react["default"].createElement("span", {
50
- className: "".concat(preCls, "__user-name")
51
- }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
52
- name: item.User.Name,
53
- id: item.User.UserId
54
- }), /*#__PURE__*/_react["default"].createElement("i", {
55
- className: "".concat(preCls, "__user-name-icon ").concat((item.User.UserId === curAtUser || item.HasRead) && "hasRead")
56
- })));
57
- }), Departments === null || Departments === void 0 ? void 0 : Departments.map(function (item) {
58
- return /*#__PURE__*/_react["default"].createElement("div", {
59
- className: "".concat(preCls, "__user")
60
- }, /*#__PURE__*/_react["default"].createElement("span", {
61
- className: "".concat(preCls, "__user-departments")
62
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
63
- userId: item.Id,
64
- name: item === null || item === void 0 ? void 0 : item.Name,
65
- color: "#3296fa"
66
- }), /*#__PURE__*/_react["default"].createElement("span", {
67
- className: "".concat(preCls, "__user-name")
68
- }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
69
- name: item === null || item === void 0 ? void 0 : item.Name,
70
- id: item.Id
71
- }))));
72
- }), Groups === null || Groups === void 0 ? void 0 : Groups.map(function (item) {
31
+ }, data.map(function (item) {
73
32
  return /*#__PURE__*/_react["default"].createElement("div", {
74
33
  className: "".concat(preCls, "__user")
75
- }, /*#__PURE__*/_react["default"].createElement("span", {
76
- className: "".concat(preCls, "__user-groups")
77
34
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
78
- userId: item.id,
35
+ userId: item.userId,
79
36
  name: item.name,
80
- color: "rgb(90, 216, 166)"
37
+ src: item.avatar.medium,
38
+ color: item.avatar.color
81
39
  }), /*#__PURE__*/_react["default"].createElement("span", {
82
40
  className: "".concat(preCls, "__user-name")
83
41
  }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
84
42
  name: item.name,
85
- id: item.id
86
- }))));
43
+ id: item.userId
44
+ })));
87
45
  })));
88
46
  };
89
47