@titaui/pc 1.11.52-beta.2 → 1.11.52-beta.5

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 (180) hide show
  1. package/lib/components/change-okr-modal/Item.js +19 -18
  2. package/lib/components/change-okr-modal/styledComponents.js +9 -9
  3. package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
  4. package/lib/components/create-okr-modal/fields/index.css +14 -3
  5. package/lib/components/create-okr-modal/fields/o-new-name.js +25 -19
  6. package/lib/components/create-okr-modal/index.js +75 -35
  7. package/lib/components/create-okr-modal/kr-items/index.css +12 -1
  8. package/lib/components/create-okr-modal/kr-items/krDatas.js +6 -5
  9. package/lib/components/create-okr-modal/kr-items/krItem.js +22 -12
  10. package/lib/components/date-picker/BodyItem.js +3 -3
  11. package/lib/components/date-picker/CalendarHeader.js +3 -3
  12. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  13. package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
  14. package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
  15. package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
  16. package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
  17. package/lib/components/dynamic/advertise/index.css +21 -0
  18. package/lib/components/dynamic/advertise/index.js +126 -0
  19. package/lib/components/dynamic/advertise/interface.js +5 -0
  20. package/lib/components/dynamic/advertise/util.js +28 -0
  21. package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
  22. package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
  23. package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
  24. package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
  25. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +8 -8
  26. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
  27. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
  28. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  29. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  30. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  31. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
  32. package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
  33. package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
  34. package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
  35. package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  36. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
  37. package/lib/components/dynamic/dynamic-liking/index.css +81 -0
  38. package/lib/components/{contact-kefu → dynamic/dynamic-liking}/index.js +35 -58
  39. package/lib/components/dynamic/dynamic-liking/item.js +75 -0
  40. package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
  41. package/lib/components/dynamic/dynamic-list/index.js +7 -14
  42. package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
  43. package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
  44. package/lib/components/dynamic/dynamic-topping/index.css +141 -0
  45. package/lib/components/dynamic/dynamic-topping/index.js +82 -0
  46. package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
  47. package/lib/components/dynamic/dynamic-topping/item.js +153 -0
  48. package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
  49. package/lib/components/dynamic/dynamic.css +173 -0
  50. package/lib/components/dynamic/dynamic.js +428 -0
  51. package/lib/components/dynamic/export-module/index.js +37 -0
  52. package/lib/components/dynamic/img/dynamic-top.svg +14 -0
  53. package/lib/components/dynamic/index.js +12 -9
  54. package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
  55. package/lib/components/dynamic/my-team/img/line.png +0 -0
  56. package/lib/components/dynamic/my-team/img/team.png +0 -0
  57. package/lib/components/dynamic/my-team/index.css +184 -0
  58. package/lib/components/dynamic/my-team/index.js +263 -0
  59. package/lib/components/dynamic/my-team/request-api.js +52 -0
  60. package/lib/components/dynamic/my-team/util.js +20 -0
  61. package/lib/components/dynamic/new-ui.css +192 -0
  62. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
  63. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
  64. package/lib/components/dynamic/online-broadcast/data.js +95 -0
  65. package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
  66. package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
  67. package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
  68. package/lib/components/dynamic/online-broadcast/index.css +46 -0
  69. package/lib/components/dynamic/online-broadcast/index.js +61 -0
  70. package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
  71. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
  72. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
  73. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
  74. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
  75. package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
  76. package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
  77. package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
  78. package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
  79. package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
  80. package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
  81. package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
  82. package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
  83. package/lib/components/dynamic/quick-operation/index.css +51 -0
  84. package/lib/components/dynamic/quick-operation/index.js +120 -0
  85. package/lib/components/dynamic/request-api.js +68 -7
  86. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  87. package/lib/components/emotions-selector/selector-pop.js +3 -3
  88. package/lib/components/ereport-list/index.js +3 -3
  89. package/lib/components/mblog/components/MblogAction.js +3 -3
  90. package/lib/components/nav-top/components/menu/index.js +4 -3
  91. package/lib/components/nav-top/index.js +2 -2
  92. package/lib/components/okr-detail/components/base-okr-type/index.css +0 -4
  93. package/lib/components/okr-detail/components/base-okr-type/object-type.js +0 -1
  94. package/lib/components/okr-detail/components/header/edit-name.js +86 -40
  95. package/lib/components/okr-detail/components/header/index.css +120 -41
  96. package/lib/components/okr-detail/components/header/index.js +36 -46
  97. package/lib/components/okr-detail/components/header/o-classify.js +152 -0
  98. package/lib/components/okr-detail/components/header/o-name.js +7 -5
  99. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
  100. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +54 -4
  101. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +106 -56
  102. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  103. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
  104. package/lib/components/okr-detail/detail-header/delete-confirm/index.css +5 -9
  105. package/lib/components/okr-detail/detail-header/index.js +8 -4
  106. package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
  107. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +63 -39
  108. package/lib/components/okr-detail/request-apis.js +73 -69
  109. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
  110. package/lib/components/okr-detail/schedule/components/o-progress/index.js +3 -1
  111. package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
  112. package/lib/components/okr-flow/child-node/kr-node.js +3 -1
  113. package/lib/components/okr-flow/child-node/work-node.js +3 -1
  114. package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
  115. package/lib/components/okr-progress/components/o-progress/index.js +3 -1
  116. package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
  117. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
  118. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  119. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  120. package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
  121. package/lib/components/okr-share/common-painter/utils.js +183 -36
  122. package/lib/components/okr-share/index.css +5 -4
  123. package/lib/components/okr-share/pink-card/card.js +3 -3
  124. package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
  125. package/lib/components/okr-share/pink-card/index.js +20 -12
  126. package/lib/components/open-data-painter/index.js +6 -5
  127. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
  128. package/lib/components/radio/index.css +3 -3
  129. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  130. package/lib/components/rich-editor/models/schema.js +6 -6
  131. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  132. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  133. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  134. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  135. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  136. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  137. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  138. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  139. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  140. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  141. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  142. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  143. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  144. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  145. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  146. package/lib/components/search-key-handle/index.js +9 -7
  147. package/lib/components/select/Option.js +3 -3
  148. package/lib/components/task-relation-modal/tree-node/category-node/index.css +11 -0
  149. package/lib/components/task-relation-modal/tree-node/category-node/index.js +3 -1
  150. package/lib/components/task-relation-modal/tree-node/kr-node/index.css +16 -0
  151. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +10 -4
  152. package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +16 -0
  153. package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -0
  154. package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
  155. package/lib/components/textarea/index.js +35 -38
  156. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  157. package/lib/components/wechat-btn/index.css +4 -1
  158. package/lib/components-v1/animate/AnimateChild.js +3 -3
  159. package/lib/components-v1/avatar/index.js +3 -3
  160. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  161. package/lib/components-v1/progress/CircleProgress.js +3 -3
  162. package/lib/components-v1/select/Option.js +3 -3
  163. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  164. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  165. package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
  166. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  167. package/lib/index.js +0 -8
  168. package/lib/{components/contact-kefu → pages/aha2021}/img/canceled.svg +0 -0
  169. package/lib/{components/contact-kefu → pages/aha2021}/img/kefu.svg +0 -0
  170. package/lib/{components/contact-kefu → pages/aha2021}/img/not-try.png +0 -0
  171. package/lib/{components/contact-kefu → pages/aha2021}/img/try.png +0 -0
  172. package/lib/pages/aha2021/index.css +26 -1
  173. package/lib/pages/aha2021/index.js +82 -3
  174. package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
  175. package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
  176. package/lib/pages/new-okr-list/header/index.css +1 -1
  177. package/lib/utils/open-data.js +213 -65
  178. package/package.json +3 -2
  179. package/lib/components/contact-kefu/img/notice.png +0 -0
  180. package/lib/components/contact-kefu/index.css +0 -85
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.data = void 0;
7
+ var data = [{
8
+ user: {
9
+ big: null,
10
+ color: "#b9cc4f",
11
+ hasAvatar: false,
12
+ large: null,
13
+ medium: null,
14
+ normal: null,
15
+ original: null,
16
+ small: null
17
+ },
18
+ ranking: 1,
19
+ name: "杨亮",
20
+ departmentId: 0,
21
+ departmentName: "默认部门",
22
+ userId: 560000215,
23
+ primaryDepartment: "默认部门",
24
+ primaryDepartmentId: 0,
25
+ likeNums: 1400
26
+ }, {
27
+ user: {
28
+ big: null,
29
+ color: "#b9cc4f",
30
+ hasAvatar: false,
31
+ large: null,
32
+ medium: null,
33
+ normal: null,
34
+ original: null,
35
+ small: null
36
+ },
37
+ ranking: 2,
38
+ name: "杨亮",
39
+ departmentId: 0,
40
+ departmentName: "默认部门",
41
+ userId: 560000215,
42
+ primaryDepartment: "默认部门",
43
+ primaryDepartmentId: 0,
44
+ likeNums: 140
45
+ }, {
46
+ user: {
47
+ big: null,
48
+ color: "#b9cc4f",
49
+ hasAvatar: false,
50
+ large: null,
51
+ medium: null,
52
+ normal: null,
53
+ original: null,
54
+ small: null
55
+ },
56
+ ranking: 3,
57
+ name: "杨亮",
58
+ departmentId: 0,
59
+ departmentName: "默认部门",
60
+ userId: 560000215,
61
+ primaryDepartment: "默认部门",
62
+ primaryDepartmentId: 0,
63
+ likeNums: 14000
64
+ }, {
65
+ user: {
66
+ big: null,
67
+ color: "#b9cc4f",
68
+ hasAvatar: false,
69
+ large: null,
70
+ medium: null,
71
+ normal: null,
72
+ original: null,
73
+ small: null
74
+ },
75
+ ranking: 4,
76
+ name: "杨亮",
77
+ departmentId: 0,
78
+ departmentName: "默认部门",
79
+ userId: 560000215,
80
+ primaryDepartment: "默认部门",
81
+ primaryDepartmentId: 0,
82
+ likeNums: 14000000
83
+ }];
84
+ exports.data = data;
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>点赞动态</title>
4
+ <defs>
5
+ <circle id="path-1" cx="4.16666667" cy="4.16666667" r="4.16666667"></circle>
6
+ <filter x="-21.4%" y="-89.9%" width="142.9%" height="279.8%" filterUnits="objectBoundingBox" id="filter-3">
7
+ <feGaussianBlur stdDeviation="1" in="SourceGraphic"></feGaussianBlur>
8
+ </filter>
9
+ </defs>
10
+ <g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="绩效考核/@与回复/打赏" transform="translate(-1082.000000, -1196.000000)">
12
+ <g id="动态" transform="translate(1066.000000, 1182.000000)">
13
+ <g id="点赞动态" transform="translate(16.000000, 14.000000)">
14
+ <circle id="椭圆形" fill="#FFBB4D" cx="10" cy="10" r="10"></circle>
15
+ <g id="编组-22" transform="translate(3.213090, 6.000000)">
16
+ <g id="形状结合" transform="translate(2.786910, 0.000000)">
17
+ <mask id="mask-2" fill="white">
18
+ <use xlink:href="#path-1"></use>
19
+ </mask>
20
+ <use id="蒙版" fill="#FFFFFF" xlink:href="#path-1"></use>
21
+ <path d="M10.2801853,3.1428106 C10.8347673,3.46511621 11.1504539,3.83580442 11.1504539,4.23019237 C11.1504539,5.47283306 8.01644712,6.48019237 4.15045387,6.48019237 C0.284460621,6.48019237 -2.84954613,5.47283306 -2.84954613,4.23019237 C-2.84954613,4.22851539 -2.84954042,4.22683884 -2.84952901,4.22516273 L-1.2577765,4.5010035 C-0.785172265,5.18948386 1.45644516,5.7109616 4.15045387,5.7109616 C7.1793128,5.7109616 9.636332,5.05179396 9.65039321,4.23722128 Z" fill="#FFBB4D" filter="url(#filter-3)" mask="url(#mask-2)" transform="translate(4.150454, 4.811501) rotate(-15.000000) translate(-4.150454, -4.811501) "></path>
22
+ </g>
23
+ <path d="M13.5483912,2.43826668 C13.8700102,3.63856542 11.1035159,5.42274043 7.36925322,6.42333311 C3.6349905,7.42392579 0.347048662,7.26203205 0.0254295863,6.06173332 C-0.165835376,5.34792276 0.73504509,4.4276179 2.28211975,3.58842283 L2.28182412,4.54792105 C1.69502828,4.95952847 1.38922509,5.35593246 1.47431833,5.67350475 C1.68598216,6.46344494 4.23609808,6.46649321 7.17016165,5.68031324 C10.1042252,4.89413328 12.3111663,3.61643544 12.0995024,2.82649525 C12.0230062,2.54100753 11.6410777,2.35829814 11.0459776,2.27847735 C10.8979016,1.89023186 10.7402483,1.60445999 10.5721988,1.42051892 C12.2176585,1.40720458 13.365042,1.75399842 13.5483912,2.43826668 Z" id="形状结合" fill="#FFFFFF"></path>
24
+ <path d="M9.78691037,2.50417127 C9.41404232,1.78496057 8.81138292,1.23999086 8.09496376,1 L7.95280143,1.78102951 C8.42427797,1.9275763 8.82526021,2.27106798 9.08234723,2.72966003 L9.78691037,2.50417127 Z" id="路径" fill="#FFBB4D"></path>
25
+ </g>
26
+ </g>
27
+ </g>
28
+ </g>
29
+ </g>
30
+ </svg>
@@ -0,0 +1,81 @@
1
+ .dynamic-liking {
2
+ margin-top: 10px;
3
+ width: 278px;
4
+ background: #ffffff;
5
+ box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
6
+ border-radius: 12px;
7
+ padding: 12px 16px;
8
+ padding-top: 16px;
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ .dynamic-liking__header {
13
+ height: 24px;
14
+ font-size: 16px;
15
+ font-weight: 600;
16
+ color: #3f4755;
17
+ line-height: 24px;
18
+ margin-bottom: 10px;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ }
23
+
24
+ .dynamic-liking__header-text {
25
+ margin-left: 4px;
26
+ }
27
+
28
+ .dynamic-liking__header-image {
29
+ width: 20px;
30
+ height: 20px;
31
+ position: relative;
32
+ top: -2px;
33
+ }
34
+
35
+ .dynamic-liking__content {
36
+ border-top: 1px solid #e9ecf0;
37
+ padding: 16px 0 0 0;
38
+ }
39
+
40
+ .dynamic-liking__item {
41
+ display: flex;
42
+ align-items: flex-start;
43
+ vertical-align: text-top;
44
+ margin-top: 18px;
45
+ }
46
+
47
+ .dynamic-liking__item:nth-of-type(1) {
48
+ margin-top: 0;
49
+ }
50
+
51
+ .dynamic-liking__item-avatar {
52
+ position: relative;
53
+ top: 2px;
54
+ }
55
+
56
+ .dynamic-liking__item-center {
57
+ margin-left: 8px;
58
+ }
59
+
60
+ .dynamic-liking__item-center-name {
61
+ font-size: 12px;
62
+ font-weight: 600;
63
+ color: #3F4755;
64
+ line-height: 18px;
65
+ display: flex;
66
+ }
67
+
68
+ .dynamic-liking__item-center-time {
69
+ font-size: 12px;
70
+ font-weight: 400;
71
+ color: #89919F;
72
+ line-height: 18px;
73
+ }
74
+
75
+ .dynamic-liking__item-dynamic {
76
+ font-size: 12px;
77
+ font-weight: 400;
78
+ color: #89919F;
79
+ line-height: 18px;
80
+ margin-left: 8px;
81
+ }
@@ -11,26 +11,20 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _tooltip = _interopRequireDefault(require("../tooltip"));
14
+ var _requestApi = require("../request-api");
15
15
 
16
- var _popup = _interopRequireDefault(require("../popup"));
17
-
18
- var _platform = require("../../utils/platform");
19
-
20
- var _notTry = _interopRequireDefault(require("./img/not-try.png"));
21
-
22
- var _try = _interopRequireDefault(require("./img/try.png"));
16
+ var _item = _interopRequireDefault(require("./item"));
23
17
 
24
18
  require("./index.css");
25
19
 
20
+ var _getLocale = require("../../../utils/getLocale");
21
+
26
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
23
 
28
24
  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
25
 
30
26
  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
27
 
32
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
-
34
28
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
29
 
36
30
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -43,60 +37,43 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
43
37
 
44
38
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
39
 
46
- var preCls = "contact-kefu";
40
+ var preCls = "dynamic-liking";
47
41
 
48
- var ContactKefu = function ContactKefu() {
49
- var _useState = (0, _react.useState)(false),
42
+ var DynamicLiking = function DynamicLiking() {
43
+ var _useState = (0, _react.useState)([]),
50
44
  _useState2 = _slicedToArray(_useState, 2),
51
- visible = _useState2[0],
52
- setVisible = _useState2[1];
53
-
54
- var handleShowCode = function handleShowCode() {
55
- setVisible(true);
56
- };
45
+ rankingData = _useState2[0],
46
+ setRankingData = _useState2[1];
57
47
 
58
- var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
59
-
60
- var popup = /*#__PURE__*/_react["default"].createElement("div", {
61
- className: "".concat(preCls, "__popup")
62
- }, /*#__PURE__*/_react["default"].createElement("div", {
63
- className: "".concat(preCls, "__popup-title")
64
- }, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
65
- className: "".concat(preCls, "__popup-content")
66
- }, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
67
- src: isTrial ? _try["default"] : _notTry["default"],
68
- className: "".concat(preCls, "__popup-img"),
69
- alt: "\u5FAE\u4FE1\u626B\u7801"
70
- }));
71
-
72
- return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
73
- popup: popup,
74
- popupTransitionName: "tita-popup-zoom-left-bottom",
75
- placement: "topLeft",
76
- popupAlign: {
77
- offset: [-32, -10],
78
- overflow: {
79
- adjustX: 1,
80
- adjustY: 1
48
+ (0, _react.useEffect)(function () {
49
+ (0, _requestApi.getLeastPariseInfo)().then(function (res) {
50
+ if (res.Code === 1) {
51
+ setRankingData(res.Data);
81
52
  }
82
- },
83
- popupVisible: visible,
84
- onPopupVisibleChange: function onPopupVisibleChange(bol) {
85
- return setVisible(bol);
86
- }
87
- }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
88
- overlay: "\u8054\u7CFB\u5BA2\u670D",
89
- placement: "right",
90
- align: {
91
- offset: [0, 0]
92
- }
53
+ });
54
+ }, []);
55
+ if (!rankingData || rankingData.length === 0) return null;
56
+ return /*#__PURE__*/_react["default"].createElement("div", {
57
+ className: (0, _classnames["default"])("".concat(preCls))
93
58
  }, /*#__PURE__*/_react["default"].createElement("div", {
94
- className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
95
- onClick: handleShowCode
59
+ className: (0, _classnames["default"])("".concat(preCls, "__header"))
96
60
  }, /*#__PURE__*/_react["default"].createElement("div", {
97
- className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
98
- }))));
61
+ className: (0, _classnames["default"])("".concat(preCls, "__header-left"))
62
+ }, /*#__PURE__*/_react["default"].createElement("img", {
63
+ className: (0, _classnames["default"])("".concat(preCls, "__header-image")),
64
+ src: require("./image/like-dynamic.svg")
65
+ }), /*#__PURE__*/_react["default"].createElement("span", {
66
+ className: (0, _classnames["default"])("".concat(preCls, "__header-text"))
67
+ }, (0, _getLocale.getLocale)("Feed_Menu_Title_Likedynamic")))), /*#__PURE__*/_react["default"].createElement("div", {
68
+ className: (0, _classnames["default"])("".concat(preCls, "__content"))
69
+ }, rankingData.map(function (item, index) {
70
+ if (index >= 5) return;
71
+ return /*#__PURE__*/_react["default"].createElement(_item["default"], {
72
+ key: index,
73
+ userInfo: item
74
+ });
75
+ })));
99
76
  };
100
77
 
101
- var _default = ContactKefu;
78
+ var _default = DynamicLiking;
102
79
  exports["default"] = _default;
@@ -0,0 +1,75 @@
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 _formatTime = require("../../../utils/format-time");
11
+
12
+ var _getLocale = require("../../../utils/getLocale");
13
+
14
+ var _openData = require("../../../utils/open-data");
15
+
16
+ var _tooltip = _interopRequireDefault(require("../../tooltip"));
17
+
18
+ var _constant = require("../constant");
19
+
20
+ require("./index.css");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ // import { getUrlForUserPage } from "../../../utils/tools";
25
+ var preCls = "dynamic-liking__item";
26
+
27
+ var Item = function Item(_ref) {
28
+ var userInfo = _ref.userInfo;
29
+ var pariseUser = userInfo.pariseUser,
30
+ pariseDate = userInfo.pariseDate,
31
+ userType = userInfo.userType,
32
+ toPariseUser = userInfo.toPariseUser,
33
+ pariseObjType = userInfo.pariseObjType;
34
+ var name = pariseUser.name,
35
+ userId = pariseUser.userId;
36
+ var toUserName = toPariseUser.name;
37
+ var toUserId = toPariseUser.userId; // 之后要用
38
+ // const url = getUrlForUserPage({
39
+ // userId: userId,
40
+ // userType: userType || 2,
41
+ // });
42
+ // const handleOpenUserPage = () => {
43
+ // window.open(url, "_blank");
44
+ // };
45
+
46
+ return /*#__PURE__*/_react["default"].createElement("div", {
47
+ className: "".concat(preCls)
48
+ }, /*#__PURE__*/_react["default"].createElement("div", {
49
+ className: "".concat(preCls, "-center")
50
+ }, /*#__PURE__*/_react["default"].createElement("div", {
51
+ className: "".concat(preCls, "-center-name")
52
+ }, /*#__PURE__*/_react["default"].createElement("div", {
53
+ className: "".concat(preCls, "-center-name-text") // onClick={handleOpenUserPage}
54
+
55
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
56
+ text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
57
+ id: userId,
58
+ name: name
59
+ }),
60
+ maxWidth: 45
61
+ })), /*#__PURE__*/_react["default"].createElement("div", {
62
+ className: "".concat(preCls, "-dynamic")
63
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
64
+ text: /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Feed_Kudos"), /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
65
+ id: toUserId,
66
+ name: toUserName
67
+ }), "".concat((0, _constant.ObjectType)()[pariseObjType] || "feed")),
68
+ maxWidth: 150
69
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
70
+ className: "".concat(preCls, "-center-time")
71
+ }, (0, _formatTime.getTimeString)(pariseDate, new Date()))));
72
+ };
73
+
74
+ var _default = Item;
75
+ exports["default"] = _default;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.data = void 0;
7
+ var data = [{
8
+ user: {
9
+ big: null,
10
+ color: "#b9cc4f",
11
+ hasAvatar: false,
12
+ large: null,
13
+ medium: null,
14
+ normal: null,
15
+ original: null,
16
+ small: null
17
+ },
18
+ time: 1630474481282,
19
+ name: "杨亮",
20
+ userId: 99888888,
21
+ desc: "点赞了李晓辉的目标"
22
+ }, {
23
+ user: {
24
+ big: null,
25
+ color: "#b9cc4f",
26
+ hasAvatar: false,
27
+ large: null,
28
+ medium: null,
29
+ normal: null,
30
+ original: null,
31
+ small: null
32
+ },
33
+ time: 1630474481282,
34
+ name: "杨亮",
35
+ userId: 99888888,
36
+ desc: "点赞了李晓辉的目标"
37
+ }, {
38
+ user: {
39
+ big: null,
40
+ color: "#b9cc4f",
41
+ hasAvatar: false,
42
+ large: null,
43
+ medium: null,
44
+ normal: null,
45
+ original: null,
46
+ small: null
47
+ },
48
+ time: 1630474481282,
49
+ name: "杨亮",
50
+ userId: 99888888,
51
+ desc: "点赞了李晓辉的目标"
52
+ }, {
53
+ user: {
54
+ big: null,
55
+ color: "#b9cc4f",
56
+ hasAvatar: false,
57
+ large: null,
58
+ medium: null,
59
+ normal: null,
60
+ original: null,
61
+ small: null
62
+ },
63
+ time: 1630474481282,
64
+ name: "杨亮",
65
+ userId: 99888888,
66
+ desc: "点赞了李晓辉的目标"
67
+ }, {
68
+ user: {
69
+ big: null,
70
+ color: "#b9cc4f",
71
+ hasAvatar: false,
72
+ large: null,
73
+ medium: null,
74
+ normal: null,
75
+ original: null,
76
+ small: null
77
+ },
78
+ time: 1630474481282,
79
+ name: "杨亮",
80
+ userId: 99888888,
81
+ desc: "点赞了李晓辉的目标"
82
+ }];
83
+ exports.data = data;
@@ -17,12 +17,11 @@ var _conditionRender = _interopRequireDefault(require("../../condition-render"))
17
17
 
18
18
  var _getLocale = require("../../../utils/getLocale");
19
19
 
20
- var _context = require("../context");
21
-
22
20
  require("./index.css");
23
21
 
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
24
+ // @ts-ignore
26
25
  var prefix = 'titaui-dynamic-list';
27
26
 
28
27
  var DynamicList = function DynamicList(_ref) {
@@ -30,9 +29,7 @@ var DynamicList = function DynamicList(_ref) {
30
29
  dynamicShareIsShowToping = _ref.dynamicShareIsShowToping,
31
30
  onDeleteFeed = _ref.onDeleteFeed,
32
31
  _ref$height = _ref.height,
33
- height = _ref$height === void 0 ? -1 : _ref$height,
34
- _ref$searchKeyWord = _ref.searchKeyWord,
35
- searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord;
32
+ height = _ref$height === void 0 ? -1 : _ref$height;
36
33
 
37
34
  var handleDeleteFeed = function handleDeleteFeed(feedId) {
38
35
  if (onDeleteFeed) {
@@ -40,14 +37,10 @@ var DynamicList = function DynamicList(_ref) {
40
37
  }
41
38
  };
42
39
 
43
- return /*#__PURE__*/_react["default"].createElement(_context.SearchKeyContext.Provider, {
44
- value: {
45
- searchKeyWord: searchKeyWord
46
- }
47
- }, /*#__PURE__*/_react["default"].createElement("div", {
40
+ return /*#__PURE__*/_react["default"].createElement("div", {
48
41
  className: prefix,
49
42
  style: {
50
- minHeight: height === -1 ? "auto" : height
43
+ minHeight: height === -1 ? 'auto' : height
51
44
  }
52
45
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
53
46
  condition: data.length === 0
@@ -59,7 +52,7 @@ var DynamicList = function DynamicList(_ref) {
59
52
  alt: ""
60
53
  }), /*#__PURE__*/_react["default"].createElement("span", {
61
54
  className: "".concat(prefix, "__empty-text")
62
- }, (0, _getLocale.getLocale)("OKR_Noinformation")))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
55
+ }, (0, _getLocale.getLocale)('OKR_Noinformation')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
63
56
  condition: data.length !== 0
64
57
  }, /*#__PURE__*/_react["default"].createElement(_rcQueueAnim["default"], {
65
58
  type: "bottom",
@@ -68,7 +61,7 @@ var DynamicList = function DynamicList(_ref) {
68
61
  animConfig: [{
69
62
  opacity: [1, 0]
70
63
  }, {
71
- display: "none"
64
+ display: 'none'
72
65
  }]
73
66
  }, data.map(function (item) {
74
67
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -79,7 +72,7 @@ var DynamicList = function DynamicList(_ref) {
79
72
  onDeleteFeed: handleDeleteFeed,
80
73
  dynamicShareIsShowToping: dynamicShareIsShowToping
81
74
  }));
82
- })))));
75
+ }))));
83
76
  };
84
77
 
85
78
  var _default = DynamicList;
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>左引号</title>
4
+ <g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="绩效考核/@与回复/打赏" transform="translate(-1082.000000, -369.000000)" fill-rule="nonzero">
6
+ <g id="动态" transform="translate(1066.000000, 264.000000)">
7
+ <g id="编组-24" transform="translate(16.000000, 63.000000)">
8
+ <g id="左引号" transform="translate(0.000000, 42.000000)">
9
+ <rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="12" height="12"></rect>
10
+ <path d="M6.76133333,6.50266666 C6.76133333,2.67 9.95566666,0.408333328 12,0 L12,2.26166667 C10.882,2.60733334 9.54033333,4.36633334 9.47666667,6.28266667 L12,6.28266667 L12,8.66666667 C12,10.5076667 10.5076667,12 8.66666667,12 L6.76133333,12 L6.76133333,6.50266666 Z M0,6.50266666 C0,2.67 3.19433333,0.408333328 5.23866667,0 L5.23866667,2.26166667 C4.12066666,2.60733334 2.779,4.36633334 2.71533333,6.28266667 L5.20666666,6.28266667 L5.20666666,8.66666667 C5.20666666,10.5076667 3.71433333,12 1.87333334,12 L0,12 L0,6.50266666 Z" id="形状" fill="#CCDFFF"></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>置顶动态</title>
4
+ <defs>
5
+ <circle id="path-1" cx="4.16666667" cy="4.16666667" r="4.16666667"></circle>
6
+ <filter x="-21.4%" y="-89.9%" width="142.9%" height="279.8%" filterUnits="objectBoundingBox" id="filter-3">
7
+ <feGaussianBlur stdDeviation="1" in="SourceGraphic"></feGaussianBlur>
8
+ </filter>
9
+ </defs>
10
+ <g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="绩效考核/@与回复/打赏" transform="translate(-1082.000000, -278.000000)">
12
+ <g id="动态" transform="translate(1066.000000, 264.000000)">
13
+ <g id="置顶动态" transform="translate(16.000000, 14.000000)">
14
+ <circle id="椭圆形" fill="#5C8EFF" cx="10" cy="10" r="10"></circle>
15
+ <g id="编组-22" transform="translate(3.213090, 6.000000)">
16
+ <g id="形状结合" transform="translate(2.786910, 0.000000)">
17
+ <mask id="mask-2" fill="white">
18
+ <use xlink:href="#path-1"></use>
19
+ </mask>
20
+ <use id="蒙版" fill="#FFFFFF" xlink:href="#path-1"></use>
21
+ <path d="M10.2801853,3.1428106 C10.8347673,3.46511621 11.1504539,3.83580442 11.1504539,4.23019237 C11.1504539,5.47283306 8.01644712,6.48019237 4.15045387,6.48019237 C0.284460621,6.48019237 -2.84954613,5.47283306 -2.84954613,4.23019237 C-2.84954613,4.22851539 -2.84954042,4.22683884 -2.84952901,4.22516273 L-1.2577765,4.5010035 C-0.785172265,5.18948386 1.45644516,5.7109616 4.15045387,5.7109616 C7.1793128,5.7109616 9.636332,5.05179396 9.65039321,4.23722128 Z" fill="#2879FF" filter="url(#filter-3)" mask="url(#mask-2)" transform="translate(4.150454, 4.811501) rotate(-15.000000) translate(-4.150454, -4.811501) "></path>
22
+ </g>
23
+ <path d="M13.5483912,2.43826668 C13.8700102,3.63856542 11.1035159,5.42274043 7.36925322,6.42333311 C3.6349905,7.42392579 0.347048662,7.26203205 0.0254295863,6.06173332 C-0.165835376,5.34792276 0.73504509,4.4276179 2.28211975,3.58842283 L2.28182412,4.54792105 C1.69502828,4.95952847 1.38922509,5.35593246 1.47431833,5.67350475 C1.68598216,6.46344494 4.23609808,6.46649321 7.17016165,5.68031324 C10.1042252,4.89413328 12.3111663,3.61643544 12.0995024,2.82649525 C12.0230062,2.54100753 11.6410777,2.35829814 11.0459776,2.27847735 C10.8979016,1.89023186 10.7402483,1.60445999 10.5721988,1.42051892 C12.2176585,1.40720458 13.365042,1.75399842 13.5483912,2.43826668 Z" id="形状结合" fill="#FFFFFF"></path>
24
+ <path d="M9.78691037,2.50417127 C9.41404232,1.78496057 8.81138292,1.23999086 8.09496376,1 L7.95280143,1.78102951 C8.42427797,1.9275763 8.82526021,2.27106798 9.08234723,2.72966003 L9.78691037,2.50417127 Z" id="路径" fill="#2879FF"></path>
25
+ </g>
26
+ </g>
27
+ </g>
28
+ </g>
29
+ </g>
30
+ </svg>