@titaui/pc 1.5.82 → 1.5.83

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 (319) hide show
  1. package/lib/components/avatar/icon-avatar/index.css +15 -0
  2. package/lib/components/avatar/icon-avatar/index.js +50 -0
  3. package/lib/components/avatar/index.js +9 -1
  4. package/lib/components/avatar/num-avatar/index.css +12 -0
  5. package/lib/components/avatar/num-avatar/index.js +34 -0
  6. package/lib/components/button/admin-button/default.js +35 -0
  7. package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
  8. package/lib/components/button/admin-button/index.css +86 -0
  9. package/lib/components/button/admin-button/index.js +40 -0
  10. package/lib/components/button/admin-button/primary.js +33 -0
  11. package/lib/components/button/admin-button/secondary.js +35 -0
  12. package/lib/components/button/default-button/index.css +49 -0
  13. package/lib/components/button/default-button/index.js +51 -0
  14. package/lib/components/button/export-button/index.css +51 -0
  15. package/lib/components/button/export-button/index.js +81 -0
  16. package/lib/components/button/images/daoru.svg +18 -0
  17. package/lib/components/button/index.js +23 -0
  18. package/lib/components/button/interface.js +5 -0
  19. package/lib/components/change-okr/Filter.js +133 -65
  20. package/lib/components/change-okr/Item.js +6 -0
  21. package/lib/components/change-okr/filterTab.js +2 -0
  22. package/lib/components/change-okr/index.js +2 -2
  23. package/lib/components/checkbox/index.js +4 -3
  24. package/lib/components/communication/CommunicationRecord.js +116 -161
  25. package/lib/components/communication/ConvertUserName.js +1 -1
  26. package/lib/components/communication/index.css +63 -0
  27. package/lib/components/communication/index.js +53 -28
  28. package/lib/components/communication/style.js +21 -25
  29. package/lib/components/create-okr/animation/check-animation.js +2746 -0
  30. package/lib/components/create-okr/constant.js +27 -0
  31. package/lib/components/create-okr/createCycle.js +193 -0
  32. package/lib/components/create-okr/createSuccessCmp.js +233 -0
  33. package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
  34. package/lib/components/create-okr/fields/date-cycle.js +98 -0
  35. package/lib/components/create-okr/fields/index.css +346 -0
  36. package/lib/components/create-okr/fields/index.js +17 -0
  37. package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
  38. package/lib/components/create-okr/fields/o-new-name.js +197 -0
  39. package/lib/components/create-okr/fields/okr-case.js +98 -0
  40. package/lib/components/create-okr/fields/okr-classify.js +51 -0
  41. package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
  42. package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
  43. package/lib/components/create-okr/fields/okr-parent.js +157 -0
  44. package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
  45. package/lib/components/create-okr/fields/okr-type.js +131 -0
  46. package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
  47. package/lib/components/create-okr/fields/okr-visibility.js +169 -0
  48. package/lib/components/create-okr/img/check-normal.svg +29 -0
  49. package/lib/components/create-okr/img/check-right.svg +16 -0
  50. package/lib/components/create-okr/img/check-wrong.svg +29 -0
  51. package/lib/components/create-okr/img/create-success-head.png +0 -0
  52. package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
  53. package/lib/components/create-okr/img/create-success-message.svg +1 -0
  54. package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
  55. package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
  56. package/lib/components/create-okr/img/example.svg +11 -0
  57. package/lib/components/create-okr/img/hand.svg +12 -0
  58. package/lib/components/create-okr/img/kr-add.svg +12 -0
  59. package/lib/components/create-okr/img/left-quotation.svg +12 -0
  60. package/lib/components/create-okr/img/light.svg +1 -0
  61. package/lib/components/create-okr/img/pack-up.js +28 -0
  62. package/lib/components/create-okr/img/qr-code.png +0 -0
  63. package/lib/components/create-okr/img/right-quotation.svg +12 -0
  64. package/lib/components/create-okr/img/shower.png +0 -0
  65. package/lib/components/create-okr/img/target.svg +19 -0
  66. package/lib/components/create-okr/img/teach-okr.svg +17 -0
  67. package/lib/components/create-okr/img/wave.png +0 -0
  68. package/lib/components/create-okr/img/weight.svg +12 -0
  69. package/lib/components/create-okr/index.css +446 -0
  70. package/lib/components/create-okr/index.js +911 -0
  71. package/lib/components/create-okr/interface.js +5 -0
  72. package/lib/components/create-okr/kr-items/index.css +180 -0
  73. package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
  74. package/lib/components/create-okr/kr-items/krDatas.js +299 -0
  75. package/lib/components/create-okr/kr-items/krItem.js +167 -0
  76. package/lib/components/create-okr/objectType.js +273 -0
  77. package/lib/components/create-okr/request-api.js +220 -0
  78. package/lib/components/create-okr/style.js +100 -0
  79. package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
  80. package/lib/components/create-okr/utils/helper.js +99 -0
  81. package/lib/components/create-okr/utils/index.js +23 -0
  82. package/lib/components/dropdown-layer/icon-item.js +5 -3
  83. package/lib/components/dropdown-layer/index.css +16 -0
  84. package/lib/components/dropdown-layer/index.js +21 -14
  85. package/lib/components/dynamic/components/condition-render/index.js +20 -0
  86. package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
  87. package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
  88. package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
  89. package/lib/components/dynamic/components/obj-status/index.css +22 -0
  90. package/lib/components/dynamic/components/obj-status/index.js +38 -0
  91. package/lib/components/dynamic/components/percent/index.css +21 -0
  92. package/lib/components/dynamic/components/percent/index.js +38 -0
  93. package/lib/components/dynamic/components/title/index.css +35 -0
  94. package/lib/components/dynamic/components/title/index.js +59 -0
  95. package/lib/components/dynamic/constant.js +97 -0
  96. package/lib/components/dynamic/context/index.js +13 -0
  97. package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
  98. package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
  99. package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
  100. package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
  101. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
  102. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
  103. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
  104. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
  105. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
  106. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
  107. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
  108. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
  109. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
  110. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
  111. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
  112. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
  113. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
  114. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  115. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
  116. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
  117. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
  118. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
  119. package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
  120. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  121. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
  122. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
  123. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
  124. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
  125. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
  126. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
  127. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
  128. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
  129. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
  130. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
  131. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
  132. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
  133. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
  134. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -0
  135. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  136. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  137. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  138. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  139. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  140. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  141. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  142. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
  143. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
  144. package/lib/components/dynamic/dynamic-item/index.css +128 -0
  145. package/lib/components/dynamic/dynamic-item/index.js +352 -0
  146. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
  147. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  148. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  149. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  150. package/lib/components/dynamic/dynamic-like-ranking/index.css +126 -0
  151. package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
  152. package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
  153. package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  154. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
  155. package/lib/components/dynamic/dynamic-liking/index.css +81 -0
  156. package/lib/components/dynamic/dynamic-liking/index.js +76 -0
  157. package/lib/components/dynamic/dynamic-liking/item.js +91 -0
  158. package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
  159. package/lib/components/dynamic/dynamic-list/index.css +36 -0
  160. package/lib/components/dynamic/dynamic-list/index.js +61 -0
  161. package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
  162. package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
  163. package/lib/components/dynamic/dynamic-topping/index.css +148 -0
  164. package/lib/components/dynamic/dynamic-topping/index.js +80 -0
  165. package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
  166. package/lib/components/dynamic/dynamic-topping/item.js +140 -0
  167. package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
  168. package/lib/components/dynamic/dynamic.css +204 -0
  169. package/lib/components/dynamic/dynamic.js +391 -0
  170. package/lib/components/dynamic/export-module/index.js +33 -0
  171. package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
  172. package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
  173. package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
  174. package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
  175. package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
  176. package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
  177. package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
  178. package/lib/components/dynamic/img/dynamic-empty.png +0 -0
  179. package/lib/components/dynamic/img/dynamic-end.svg +17 -0
  180. package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
  181. package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
  182. package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
  183. package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
  184. package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
  185. package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
  186. package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
  187. package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
  188. package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
  189. package/lib/components/dynamic/img/dynamic-top.svg +14 -0
  190. package/lib/components/dynamic/index.js +27 -0
  191. package/lib/components/dynamic/interface.js +5 -0
  192. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
  193. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
  194. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
  195. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
  196. package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
  197. package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
  198. package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
  199. package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -0
  200. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  201. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  202. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  203. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  204. package/lib/components/dynamic/quick-operation/index.css +51 -0
  205. package/lib/components/dynamic/quick-operation/index.js +112 -0
  206. package/lib/components/dynamic/request-api.js +92 -0
  207. package/lib/components/dynamic/util.js +140 -0
  208. package/lib/components/emotionsSelector/style.js +1 -1
  209. package/lib/components/file-list/components/single-file/index.css +84 -0
  210. package/lib/components/file-list/components/single-file/index.js +115 -0
  211. package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
  212. package/lib/components/file-list/img/new-file-list-other.svg +1 -0
  213. package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
  214. package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
  215. package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
  216. package/lib/components/file-list/img/new-file-list-video.svg +1 -0
  217. package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
  218. package/lib/components/file-list/index.css +5 -0
  219. package/lib/components/file-list/index.js +61 -0
  220. package/lib/components/file-list/interface.js +5 -0
  221. package/lib/components/file-list/util.js +78 -0
  222. package/lib/components/form/form-fields/input/index.css +11 -0
  223. package/lib/components/form/form-fields/input/index.js +3 -1
  224. package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
  225. package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
  226. package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
  227. package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
  228. package/lib/components/grid-page/personal-info/index.js +5 -5
  229. package/lib/components/img-viewer/icon/enlarge.js +30 -0
  230. package/lib/components/img-viewer/icon/left-rotate.js +46 -0
  231. package/lib/components/img-viewer/icon/right-rotate.js +44 -0
  232. package/lib/components/img-viewer/icon/shrink.js +37 -0
  233. package/lib/components/img-viewer/image/loading.gif +0 -0
  234. package/lib/components/img-viewer/index.css +155 -0
  235. package/lib/components/img-viewer/index.js +228 -0
  236. package/lib/components/img-viewer/interface.js +5 -0
  237. package/lib/components/img-viewer/util.js +16 -0
  238. package/lib/components/mblog/components/MblogAction.js +10 -6
  239. package/lib/components/mblog/index.js +24 -11
  240. package/lib/components/mblog/style.js +8 -8
  241. package/lib/components/okr-detail/components/header/index.css +4 -0
  242. package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
  243. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +15 -8
  244. package/lib/components/okr-flow/child-node/work-node.js +7 -1
  245. package/lib/components/okr-period-selector/select-cycle.js +139 -151
  246. package/lib/components/okr-progress-detail/index.css +1 -0
  247. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
  248. package/lib/components/okr-review/ReviewPop/index.js +4 -4
  249. package/lib/components/period-selector/common.js +168 -17
  250. package/lib/components/period-selector/components/selector/index.js +103 -38
  251. package/lib/components/period-selector/components/selector/style.js +23 -9
  252. package/lib/components/period-selector/index.js +29 -28
  253. package/lib/components/popup/index.js +3 -1
  254. package/lib/components/publish-dynamic-modal/index.js +13 -0
  255. package/lib/components/publish-dynamic-modal/interface.js +5 -0
  256. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
  257. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
  258. package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
  259. package/lib/components/radio/index.css +5 -0
  260. package/lib/components/radio/radio.js +12 -4
  261. package/lib/components/search-key-handle/index.js +39 -0
  262. package/lib/components/table/index.css +0 -1
  263. package/lib/components/upload/components/uploadedPreview.js +62 -54
  264. package/lib/components/upload/img/doc.svg +1 -0
  265. package/lib/components/upload/img/other.svg +1 -0
  266. package/lib/components/upload/img/pdf.svg +1 -0
  267. package/lib/components/upload/img/ppt.svg +1 -0
  268. package/lib/components/upload/img/radio.svg +1 -0
  269. package/lib/components/upload/img/video.svg +1 -0
  270. package/lib/components/upload/img/xls.svg +1 -0
  271. package/lib/components/upload/index.css +26 -0
  272. package/lib/components/upload/index.js +89 -57
  273. package/lib/components/upload/style.js +7 -7
  274. package/lib/components/upload/type.js +15 -15
  275. package/lib/components/upload/util.js +102 -0
  276. package/lib/components/upvote/index.js +37 -14
  277. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
  278. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
  279. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
  280. package/lib/components/user-selector/layout/index.css +1 -1
  281. package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
  282. package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
  283. package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
  284. package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
  285. package/lib/components-v1/buttonv2/index.js +37 -0
  286. package/lib/components-v1/buttonv2/style/style.js +53 -0
  287. package/lib/components-v1/buttonv2/style/theme.css +3 -0
  288. package/lib/components-v1/confirm/index.js +158 -0
  289. package/lib/index.js +49 -5
  290. package/lib/pages/dynamic/index.css +5 -0
  291. package/lib/pages/dynamic/index.js +25 -0
  292. package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
  293. package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
  294. package/lib/pages/like-ranking/column.js +141 -0
  295. package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
  296. package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
  297. package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
  298. package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
  299. package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
  300. package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
  301. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
  302. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
  303. package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
  304. package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
  305. package/lib/pages/like-ranking/image/loading.gif +0 -0
  306. package/lib/pages/like-ranking/image/ranking-1.png +0 -0
  307. package/lib/pages/like-ranking/image/ranking-2.png +0 -0
  308. package/lib/pages/like-ranking/image/ranking-3.png +0 -0
  309. package/lib/pages/like-ranking/index.css +185 -0
  310. package/lib/pages/like-ranking/index.js +252 -0
  311. package/lib/pages/like-ranking/mock.js +366 -0
  312. package/lib/pages/like-ranking/request-api.js +15 -0
  313. package/lib/utils/auth.js +46 -5
  314. package/lib/utils/bs-global.js +26 -2
  315. package/lib/utils/format-time.js +161 -0
  316. package/lib/utils/helpers.js +41 -0
  317. package/lib/utils/roundWeight.js +105 -0
  318. package/lib/utils/tools.js +140 -20
  319. package/package.json +2 -2
@@ -0,0 +1,107 @@
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 _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _avatar = _interopRequireDefault(require("../../avatar"));
13
+
14
+ var _bsGlobal = require("../../../utils/bs-global");
15
+
16
+ var _openData = require("../../../utils/open-data");
17
+
18
+ var _tooltip = require("../../tooltip");
19
+
20
+ require("./index.css");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var preCls = "danamic-like-ranking__item";
25
+
26
+ var Item = function Item(_ref) {
27
+ var userInfo = _ref.userInfo;
28
+
29
+ var formatRaking = function formatRaking(num) {
30
+ if (num === 1) {
31
+ return /*#__PURE__*/_react["default"].createElement("img", {
32
+ className: "".concat(preCls, "-medal"),
33
+ src: require("./image/ranking-1.png"),
34
+ alt: "\u91D1\u724C"
35
+ });
36
+ } else if (num === 2) {
37
+ return /*#__PURE__*/_react["default"].createElement("img", {
38
+ className: "".concat(preCls, "-medal"),
39
+ src: require("./image/ranking-2.png"),
40
+ alt: "\u94F6\u724C"
41
+ });
42
+ } else if (num === 3) {
43
+ return /*#__PURE__*/_react["default"].createElement("img", {
44
+ className: "".concat(preCls, "-medal"),
45
+ src: require("./image/ranking-3.png"),
46
+ alt: "\u94DC\u724C"
47
+ });
48
+ } else {
49
+ return /*#__PURE__*/_react["default"].createElement("span", {
50
+ className: "".concat(preCls, "-num")
51
+ }, num);
52
+ }
53
+ };
54
+
55
+ if (!userInfo || Object.keys(userInfo).length === 0) return null;
56
+ var rankNum = userInfo.rankNum,
57
+ user = userInfo.user,
58
+ pariseNums = userInfo.pariseNums;
59
+ var avatar = user.avatar,
60
+ name = user.name,
61
+ userId = user.userId,
62
+ userType = user.userType; // 之后要用
63
+ // const url = getUrlForUserPage({
64
+ // userId: userId,
65
+ // userType: userType || 2,
66
+ // });
67
+ // const handleOpenUserPage = () => {
68
+ // window.open(url, "_blank");
69
+ // };
70
+
71
+ return /*#__PURE__*/_react["default"].createElement("div", {
72
+ className: (0, _classnames["default"])("".concat(preCls))
73
+ }, /*#__PURE__*/_react["default"].createElement("div", {
74
+ className: (0, _classnames["default"])("".concat(preCls, "-left"))
75
+ }, /*#__PURE__*/_react["default"].createElement("div", {
76
+ className: "".concat(preCls, "-pre")
77
+ }, formatRaking(rankNum)), /*#__PURE__*/_react["default"].createElement("div", {
78
+ className: "".concat(preCls, "-avatar")
79
+ }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
80
+ name: name,
81
+ src: avatar.small,
82
+ color: avatar.color,
83
+ userId: userId,
84
+ size: {
85
+ width: 28,
86
+ textNum: 1,
87
+ fontSize: 14
88
+ }
89
+ })), /*#__PURE__*/_react["default"].createElement("div", {
90
+ className: "".concat(preCls, "-name")
91
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
92
+ text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
93
+ id: userId,
94
+ name: name
95
+ }),
96
+ maxWidth: 120
97
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
98
+ className: (0, _classnames["default"])("".concat(preCls, "-left"))
99
+ }, /*#__PURE__*/_react["default"].createElement("div", {
100
+ className: "".concat(preCls, "-like-text")
101
+ }, /*#__PURE__*/_react["default"].createElement("span", {
102
+ className: "".concat(preCls, "-like-num")
103
+ }, (0, _bsGlobal.formatNum)(pariseNums)), "\u70B9\u8D5E")));
104
+ };
105
+
106
+ var _default = Item;
107
+ exports["default"] = _default;
@@ -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
+ box-sizing: border-box;
9
+ }
10
+
11
+ .dynamic-liking__header {
12
+ height: 24px;
13
+ font-size: 16px;
14
+ font-weight: 600;
15
+ color: #3f4755;
16
+ line-height: 24px;
17
+ margin-bottom: 10px;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ }
22
+
23
+ .dynamic-liking__header-text {
24
+ margin-left: 4px;
25
+ }
26
+
27
+ .dynamic-liking__header-image {
28
+ width: 20px;
29
+ height: 20px;
30
+ position: relative;
31
+ top: -2px;
32
+ }
33
+
34
+ .dynamic-liking__content {
35
+ border-top: 1px solid #e9ecf0;
36
+ padding: 16px 0 0 0;
37
+ }
38
+
39
+ .dynamic-liking__item {
40
+ display: flex;
41
+ align-items: flex-start;
42
+ vertical-align: text-top;
43
+ margin-top: 18px;
44
+ }
45
+
46
+ .dynamic-liking__item:nth-of-type(1) {
47
+ margin-top: 0;
48
+ }
49
+
50
+ .dynamic-liking__item-avatar {
51
+ cursor: pointer;
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
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _requestApi = require("../request-api");
15
+
16
+ var _item = _interopRequireDefault(require("./item"));
17
+
18
+ require("./index.css");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ 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); }
23
+
24
+ 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; }
25
+
26
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
+
28
+ 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."); }
29
+
30
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
31
+
32
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
33
+
34
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
35
+
36
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
+
38
+ var preCls = 'dynamic-liking';
39
+
40
+ var DynamicLiking = function DynamicLiking() {
41
+ var _useState = (0, _react.useState)([]),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ rankingData = _useState2[0],
44
+ setRankingData = _useState2[1];
45
+
46
+ (0, _react.useEffect)(function () {
47
+ (0, _requestApi.getLeastPariseInfo)().then(function (res) {
48
+ if (res.Code === 1) {
49
+ setRankingData(res.Data);
50
+ }
51
+ });
52
+ }, []);
53
+ if (!rankingData || rankingData.length === 0) return null;
54
+ return /*#__PURE__*/_react["default"].createElement("div", {
55
+ className: (0, _classnames["default"])("".concat(preCls))
56
+ }, /*#__PURE__*/_react["default"].createElement("div", {
57
+ className: (0, _classnames["default"])("".concat(preCls, "__header"))
58
+ }, /*#__PURE__*/_react["default"].createElement("div", {
59
+ className: (0, _classnames["default"])("".concat(preCls, "__header-left"))
60
+ }, /*#__PURE__*/_react["default"].createElement("img", {
61
+ className: (0, _classnames["default"])("".concat(preCls, "__header-image")),
62
+ src: require("./image/like-dynamic.svg")
63
+ }), /*#__PURE__*/_react["default"].createElement("span", {
64
+ className: (0, _classnames["default"])("".concat(preCls, "__header-text"))
65
+ }, "\u70B9\u8D5E\u52A8\u6001"))), /*#__PURE__*/_react["default"].createElement("div", {
66
+ className: (0, _classnames["default"])("".concat(preCls, "__content"))
67
+ }, rankingData.map(function (item, index) {
68
+ return /*#__PURE__*/_react["default"].createElement(_item["default"], {
69
+ key: index,
70
+ userInfo: item
71
+ });
72
+ })));
73
+ };
74
+
75
+ var _default = DynamicLiking;
76
+ exports["default"] = _default;
@@ -0,0 +1,91 @@
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 _avatar = _interopRequireDefault(require("../../avatar"));
11
+
12
+ var _formatTime = require("../../../utils/format-time");
13
+
14
+ var _openData = require("../../../utils/open-data");
15
+
16
+ var _tooltip = 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 avatar = pariseUser.avatar,
35
+ name = pariseUser.name,
36
+ userId = pariseUser.userId;
37
+ var toUserName = toPariseUser.name;
38
+ var toUserId = toPariseUser.userId; // 之后要用
39
+ // const url = getUrlForUserPage({
40
+ // userId: userId,
41
+ // userType: userType || 2,
42
+ // });
43
+ // const handleOpenUserPage = () => {
44
+ // window.open(url, "_blank");
45
+ // };
46
+
47
+ return /*#__PURE__*/_react["default"].createElement("div", {
48
+ className: "".concat(preCls)
49
+ }, /*#__PURE__*/_react["default"].createElement("div", {
50
+ className: "".concat(preCls, "-avatar")
51
+ }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
52
+ name: name,
53
+ src: avatar.small,
54
+ color: avatar.color,
55
+ userId: userId,
56
+ size: {
57
+ width: 32,
58
+ textNum: 1,
59
+ fontSize: 16
60
+ }
61
+ })), /*#__PURE__*/_react["default"].createElement("div", {
62
+ className: "".concat(preCls, "-center")
63
+ }, /*#__PURE__*/_react["default"].createElement("div", {
64
+ className: "".concat(preCls, "-center-name")
65
+ }, /*#__PURE__*/_react["default"].createElement("div", {
66
+ className: "".concat(preCls, "-center-name-text") // onClick={handleOpenUserPage}
67
+
68
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
69
+ text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
70
+ id: userId,
71
+ name: name
72
+ }),
73
+ maxWidth: 45
74
+ })), /*#__PURE__*/_react["default"].createElement("div", {
75
+ className: "".concat(preCls, "-dynamic")
76
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
77
+ text: /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
78
+ id: userId,
79
+ name: name
80
+ }), "\u70B9\u8D5E\u4E86", /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
81
+ id: toUserId,
82
+ name: toUserName
83
+ }), "\u7684".concat(_constant.ObjectType[pariseObjType] || "feed")),
84
+ maxWidth: 150
85
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
86
+ className: "".concat(preCls, "-center-time")
87
+ }, (0, _formatTime.getTimeString)(pariseDate, new Date()))));
88
+ };
89
+
90
+ var _default = Item;
91
+ 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;
@@ -0,0 +1,36 @@
1
+ .titaui-dynamic-list {
2
+ flex: 1;
3
+ display: flex;
4
+ flex-direction: column;
5
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
6
+ padding-bottom: 20px;
7
+ }
8
+
9
+ .titaui-dynamic-list__empty {
10
+ display: flex;
11
+ flex: 1;
12
+ align-items: center;
13
+ flex-direction: column;
14
+ background: #ffffff;
15
+ padding-top: 160px;
16
+ border-radius: 12px;
17
+ }
18
+
19
+ .titaui-dynamic-list__empty-img {
20
+ width: 128px;
21
+ }
22
+
23
+ .titaui-dynamic-list__empty-text {
24
+ margin-top: 16px;
25
+ color: #3F4755;
26
+ font-size: 14px;
27
+ line-height: 22px;
28
+ }
29
+
30
+ .titaui-dynamic-list__item-wrapper {
31
+ margin-bottom: 10px;
32
+ }
33
+
34
+ .titaui-dynamic-list__item-wrapper:last-of-type {
35
+ margin-bottom: 0;
36
+ }
@@ -0,0 +1,61 @@
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 _dynamicItem = _interopRequireDefault(require("../dynamic-item"));
11
+
12
+ var _dynamicEmpty = _interopRequireDefault(require("../img/dynamic-empty.png"));
13
+
14
+ var _conditionRender = _interopRequireDefault(require("../components/condition-render"));
15
+
16
+ require("./index.css");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ // @ts-ignore
21
+ var prefix = "titaui-dynamic-list";
22
+
23
+ var DynamicList = function DynamicList(_ref) {
24
+ var data = _ref.data,
25
+ onDeleteFeed = _ref.onDeleteFeed,
26
+ _ref$height = _ref.height,
27
+ height = _ref$height === void 0 ? -1 : _ref$height;
28
+
29
+ var handleDeleteFeed = function handleDeleteFeed(feedId) {
30
+ onDeleteFeed && onDeleteFeed(feedId);
31
+ };
32
+
33
+ return /*#__PURE__*/_react["default"].createElement("div", {
34
+ className: prefix,
35
+ style: {
36
+ minHeight: height === -1 ? "auto" : height
37
+ }
38
+ }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
39
+ condition: data.length === 0
40
+ }, /*#__PURE__*/_react["default"].createElement("div", {
41
+ className: prefix + "__empty"
42
+ }, /*#__PURE__*/_react["default"].createElement("img", {
43
+ className: prefix + "__empty-img",
44
+ src: _dynamicEmpty["default"]
45
+ }), /*#__PURE__*/_react["default"].createElement("span", {
46
+ className: prefix + "__empty-text"
47
+ }, "\u6682\u65E0\u52A8\u6001\u4FE1\u606F"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
48
+ condition: data.length !== 0
49
+ }, data.map(function (item, index) {
50
+ return /*#__PURE__*/_react["default"].createElement("div", {
51
+ className: prefix + "__item-wrapper",
52
+ key: item.feedId + index
53
+ }, /*#__PURE__*/_react["default"].createElement(_dynamicItem["default"], {
54
+ data: item,
55
+ onDeleteFeed: handleDeleteFeed
56
+ }));
57
+ })));
58
+ };
59
+
60
+ var _default = DynamicList;
61
+ exports["default"] = _default;
@@ -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>