@titaui/pc 1.6.12 → 1.6.16

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 (309) hide show
  1. package/lib/components/avatar/index.js +1 -1
  2. package/lib/components/button/icon-btn/index.css +2 -0
  3. package/lib/components/button/index.js +1 -1
  4. package/lib/components/button/rect-btn/index.css +21 -0
  5. package/lib/components/button/rect-btn/index.js +8 -8
  6. package/lib/components/button/text-btn/index.css +33 -0
  7. package/lib/components/button/text-btn/index.js +52 -2
  8. package/lib/components/change-okr/styledComponents.js +1 -1
  9. package/lib/components/communication/style.js +1 -1
  10. package/lib/components/create-okr/constant.js +1 -1
  11. package/lib/components/create-okr/createSuccessCmp.js +6 -2
  12. package/lib/components/create-okr/fields/index.js +1 -1
  13. package/lib/components/create-okr/index.js +16 -1
  14. package/lib/components/create-okr/request-api.js +1 -1
  15. package/lib/components/create-okr/style.js +1 -1
  16. package/lib/components/create-okr/utils/helper.js +1 -1
  17. package/lib/components/delete-confirm-pop/style.js +1 -1
  18. package/lib/components/dialog/index.css +1 -0
  19. package/lib/components/dropdown-layer/index.js +1 -1
  20. package/lib/components/dynamic/components/title/index.css +2 -2
  21. package/lib/components/dynamic/constant.js +3 -2
  22. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
  23. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
  24. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
  25. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
  26. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
  27. package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
  28. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
  29. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
  30. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
  31. package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
  32. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
  33. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
  34. package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
  35. package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
  36. package/lib/components/dynamic/dynamic-liking/index.css +1 -2
  37. package/lib/components/dynamic/dynamic-liking/item.js +2 -20
  38. package/lib/components/dynamic/dynamic-list/index.js +7 -1
  39. package/lib/components/dynamic/dynamic-topping/index.css +1 -1
  40. package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
  41. package/lib/components/dynamic/dynamic.js +7 -4
  42. package/lib/components/dynamic/export-module/index.js +1 -1
  43. package/lib/components/dynamic/index.js +1 -1
  44. package/lib/components/dynamic/new-ui.css +206 -0
  45. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
  46. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
  47. package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
  48. package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
  49. package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
  50. package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
  51. package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
  52. package/lib/components/dynamic/quick-operation/img/task.png +0 -0
  53. package/lib/components/dynamic/request-api.js +1 -1
  54. package/lib/components/dynamic/util.js +2 -2
  55. package/lib/components/eReport/eReportLists/style.js +1 -1
  56. package/lib/components/eReport/eReportShare/style.js +1 -1
  57. package/lib/components/eReport/eReportShare/toast/style.js +1 -1
  58. package/lib/components/edit-kr-wight/style/index.js +1 -1
  59. package/lib/components/emotionsSelector/style.js +1 -1
  60. package/lib/components/file-list/components/single-file/index.css +2 -2
  61. package/lib/components/file-list/components/single-file/index.js +1 -1
  62. package/lib/components/file-list/index.js +1 -1
  63. package/lib/components/form/form-fields/radios/index.css +5 -0
  64. package/lib/components/form/form-fields/radios/index.js +34 -5
  65. package/lib/components/form/index.js +1 -1
  66. package/lib/components/grid-page/commen-components/index.js +4 -4
  67. package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
  68. package/lib/components/grid-page/util/network.js +1 -1
  69. package/lib/components/help-card/index.css +17 -17
  70. package/lib/components/help-card/index.js +35 -31
  71. package/lib/components/help-card/request-api.js +2 -2
  72. package/lib/components/img-viewer/index.css +4 -0
  73. package/lib/components/img-viewer/index.js +2 -1
  74. package/lib/components/mblog/common/index.js +3 -3
  75. package/lib/components/mblog/style.js +1 -1
  76. package/lib/components/menus/components/drag-resize/index.css +4 -4
  77. package/lib/components/menus/components/drag-resize/index.js +35 -30
  78. package/lib/components/menus/components/flip-menu-card/index.css +7 -3
  79. package/lib/components/menus/components/flip-menu-card/index.js +42 -30
  80. package/lib/components/menus/components/menu-card/index.js +1 -6
  81. package/lib/components/menus/components/menu-close-btn/index.css +2 -1
  82. package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
  83. package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
  84. package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
  85. package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
  86. package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
  87. package/lib/components/menus/components/menu-tree/index.js +5 -4
  88. package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
  89. package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
  90. package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
  91. package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
  92. package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
  93. package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
  94. package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
  95. package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
  96. package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
  97. package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
  98. package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
  99. package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
  100. package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
  101. package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
  102. package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
  103. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
  104. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
  105. package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
  106. package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
  107. package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
  108. package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
  109. package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
  110. package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
  111. package/lib/components/menus/index.js +1 -1
  112. package/lib/components/menus/request-apis.js +22 -5
  113. package/lib/components/nav-top/components/menu/index.css +1 -0
  114. package/lib/components/nav-top/components/menu/index.js +7 -5
  115. package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
  116. package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
  117. package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
  118. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
  119. package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
  120. package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
  121. package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
  122. package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
  123. package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
  124. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
  125. package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
  126. package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
  127. package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
  128. package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
  129. package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
  130. package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
  131. package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
  132. package/lib/components/nav-top/components/user-message/constant.js +2 -19
  133. package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
  134. package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
  135. package/lib/components/nav-top/components/user-message/index.css +41 -4
  136. package/lib/components/nav-top/components/user-message/index.js +89 -100
  137. package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
  138. package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
  139. package/lib/components/nav-top/components/user-message/utils.js +31 -0
  140. package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
  141. package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
  142. package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
  143. package/lib/components/nav-top/constant.js +2 -10
  144. package/lib/components/nav-top/index.css +55 -0
  145. package/lib/components/nav-top/index.js +14 -13
  146. package/lib/components/nav-top/request.apis.js +50 -0
  147. package/lib/components/nav-top/utils.js +10 -70
  148. package/lib/components/okr-detail/auth.js +1 -1
  149. package/lib/components/okr-detail/base-info/util.js +1 -1
  150. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
  151. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
  152. package/lib/components/okr-detail/context.js +1 -1
  153. package/lib/components/okr-detail/detail-header/actions.js +2 -2
  154. package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
  155. package/lib/components/okr-detail/detail-header/enums.js +1 -1
  156. package/lib/components/okr-detail/e-list/constant.js +1 -1
  157. package/lib/components/okr-detail/e-list/util.js +1 -1
  158. package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
  159. package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
  160. package/lib/components/okr-detail/okr-list/index.js +2 -1
  161. package/lib/components/okr-detail/request-apis.js +1 -1
  162. package/lib/components/okr-detail/schedule/util.js +1 -1
  163. package/lib/components/okr-filter-drawer/filter-button.js +1 -0
  164. package/lib/components/okr-filter-drawer/filter-form.js +189 -0
  165. package/lib/components/okr-filter-drawer/index.css +45 -0
  166. package/lib/components/okr-filter-drawer/index.js +54 -0
  167. package/lib/components/okr-flow/index.js +1 -1
  168. package/lib/components/okr-flow/mini-map/utils.js +1 -1
  169. package/lib/components/okr-flow/open-data/index.js +1 -1
  170. package/lib/components/okr-flow/request-apis.js +1 -1
  171. package/lib/components/okr-flow/utils/config.js +1 -1
  172. package/lib/components/okr-flow/utils/index.js +1 -1
  173. package/lib/components/okr-flow/utils/tree-handler.js +1 -1
  174. package/lib/components/okr-progress/request-apis.js +1 -1
  175. package/lib/components/okr-progress/util.js +1 -1
  176. package/lib/components/okr-progress-detail/utils.js +1 -1
  177. package/lib/components/okr-progress-modal/helper.js +1 -1
  178. package/lib/components/okr-progress-modal/style.js +1 -1
  179. package/lib/components/okr-progress-modal/textarea/style.js +1 -1
  180. package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
  181. package/lib/components/okr-review/ReviewPop/style.js +1 -1
  182. package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
  183. package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
  184. package/lib/components/okr-review/style.js +1 -1
  185. package/lib/components/okr-share/common-painter/utils.js +1 -1
  186. package/lib/components/okr-share/pink-card/images.js +1 -1
  187. package/lib/components/okr-share/request-apis.js +1 -1
  188. package/lib/components/okrcase-library/index.css +1 -1
  189. package/lib/components/okrcase-library/index.js +6 -1
  190. package/lib/components/okrcase-library/new-ui.css +52 -0
  191. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
  192. package/lib/components/okrcase-library/server/network.js +1 -1
  193. package/lib/components/open-data-painter/index.js +1 -1
  194. package/lib/components/operation-records/style.js +1 -1
  195. package/lib/components/pagination/index.css +6 -12
  196. package/lib/components/period-selector/common.js +2 -2
  197. package/lib/components/period-selector/components/button/style.js +1 -1
  198. package/lib/components/period-selector/components/selector/style.js +1 -1
  199. package/lib/components/period-selector/helper/index.js +1 -1
  200. package/lib/components/period-selector/mockData.js +1 -1
  201. package/lib/components/period-selector/style.js +1 -1
  202. package/lib/components/photo-card/components/card/index.css +83 -100
  203. package/lib/components/photo-card/components/card/index.js +119 -63
  204. package/lib/components/photo-card/data.js +5 -5
  205. package/lib/components/photo-card/images/assistant.svg +40 -0
  206. package/lib/components/photo-card/images/back-manager.svg +40 -0
  207. package/lib/components/photo-card/images/boss.svg +38 -0
  208. package/lib/components/photo-card/images/depart-leader.svg +40 -0
  209. package/lib/components/photo-card/images/super-manager.svg +40 -0
  210. package/lib/components/photo-card/index.css +15 -14
  211. package/lib/components/photo-card/index.js +59 -15
  212. package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
  213. package/lib/components/pop-down-notification/style/index.js +1 -1
  214. package/lib/components/praise-record/style.js +1 -1
  215. package/lib/components/progress/index.js +1 -1
  216. package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
  217. package/lib/components/radio/radio.js +1 -1
  218. package/lib/components/tabs/index.js +1 -1
  219. package/lib/components/task-relation/helper.js +1 -1
  220. package/lib/components/task-relation/request-api.js +1 -1
  221. package/lib/components/tita-chart/index.js +4 -4
  222. package/lib/components/tita-chart/util/index.js +12 -12
  223. package/lib/components/tita-chart/util/utils.js +1 -1
  224. package/lib/components/tooltip/index.js +1 -1
  225. package/lib/components/tree/index.js +1 -3
  226. package/lib/components/update-modal/img/background.png +0 -0
  227. package/lib/components/update-modal/img/rocket.png +0 -0
  228. package/lib/components/update-modal/index.css +80 -0
  229. package/lib/components/update-modal/index.js +83 -0
  230. package/lib/components/update-modal/request-api.js +17 -0
  231. package/lib/components/upload/style.js +1 -1
  232. package/lib/components/upload/util.js +1 -1
  233. package/lib/components/upvote/request-apis.js +1 -1
  234. package/lib/components/user-selector/index.js +1 -1
  235. package/lib/components/user-selector/request-apis.js +1 -1
  236. package/lib/components/user-selector/utils.js +1 -1
  237. package/lib/components/version-change-modal/request-api.js +1 -1
  238. package/lib/components/viewer/index.js +1 -1
  239. package/lib/components-v1/avatar/styles.js +1 -1
  240. package/lib/components-v1/buttonv2/style/style.js +1 -1
  241. package/lib/components-v1/input/Input.js +1 -1
  242. package/lib/components-v1/input/InputNumber.js +1 -1
  243. package/lib/components-v1/input/style/index.js +1 -1
  244. package/lib/components-v1/popConfirm/style.js +1 -1
  245. package/lib/components-v1/tabs/style.js +1 -1
  246. package/lib/components-v1/textarea/style.js +1 -1
  247. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  248. package/lib/components-v1/userSelector/style.js +1 -1
  249. package/lib/hooks/useLocalStorage.js +37 -0
  250. package/lib/index.js +18 -4
  251. package/lib/pages/aha2021/index.css +25 -1
  252. package/lib/pages/aha2021/index.js +10 -4
  253. package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
  254. package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
  255. package/lib/pages/group-management/components/openData/index.js +1 -1
  256. package/lib/pages/group-management/groupInterface.js +10 -10
  257. package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
  258. package/lib/pages/new-okr-list/context.js +14 -0
  259. package/lib/pages/new-okr-list/header/comments.js +104 -0
  260. package/lib/pages/new-okr-list/header/create-okr.js +61 -0
  261. package/lib/pages/new-okr-list/header/depart-title.js +59 -0
  262. package/lib/pages/new-okr-list/header/filter.js +95 -0
  263. package/lib/pages/new-okr-list/header/index.css +118 -0
  264. package/lib/pages/new-okr-list/header/index.js +133 -0
  265. package/lib/pages/new-okr-list/header/relation-title.js +28 -0
  266. package/lib/pages/new-okr-list/header/user-title.js +26 -0
  267. package/lib/pages/new-okr-list/index.css +10 -0
  268. package/lib/pages/new-okr-list/index.js +208 -0
  269. package/lib/pages/new-okr-list/interface.js +5 -0
  270. package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
  271. package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
  272. package/lib/pages/new-okr-list/list/index.css +0 -0
  273. package/lib/pages/new-okr-list/list/index.js +47 -0
  274. package/lib/pages/new-okr-list/precls.js +8 -0
  275. package/lib/pages/new-okr-list/request-api.js +158 -0
  276. package/lib/pages/new-okr-list/theme.css +7 -0
  277. package/lib/pages/okr-map/hooks/useStorage.js +1 -1
  278. package/lib/pages/okr-map/open-data/index.js +1 -1
  279. package/lib/pages/okr-map/request-apis.js +1 -1
  280. package/lib/pages/okr-map/utils.js +2 -1
  281. package/lib/utils/auth.js +1 -1
  282. package/lib/utils/bs-global.js +1 -1
  283. package/lib/utils/format-time.js +1 -1
  284. package/lib/utils/helpers.js +1 -1
  285. package/lib/utils/local-storage.js +40 -0
  286. package/lib/utils/mblog.js +1 -1
  287. package/lib/utils/open-data.js +1 -1
  288. package/lib/utils/platform.js +1 -1
  289. package/lib/utils/request-v1.js +2 -2
  290. package/lib/utils/request.js +1 -1
  291. package/lib/utils/roundWeight.js +2 -2
  292. package/lib/utils/tools.js +4 -3
  293. package/package.json +3 -2
  294. package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
  295. package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
  296. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  297. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  298. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  299. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  300. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  301. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  302. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  303. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  304. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  305. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  306. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  307. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  308. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  309. package/lib/components/nav-top/mock.js +0 -36
@@ -25,6 +25,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
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; }
27
27
 
28
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
29
+
30
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31
+
32
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
+
34
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
35
+
28
36
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29
37
 
30
38
  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."); }
@@ -37,7 +45,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
37
45
 
38
46
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
47
 
40
- var DepartMenus = function DepartMenus(props) {
48
+ var _default = function _default() {
41
49
  var loadedNode = (0, _react.useRef)([]);
42
50
 
43
51
  var _useState = (0, _react.useState)([]),
@@ -56,8 +64,21 @@ var DepartMenus = function DepartMenus(props) {
56
64
 
57
65
  (0, _react.useEffect)(function () {
58
66
  (0, _requestApis.getDepsAndUsers)(-1, isGetUser).then(function (rawTreeData) {
59
- setRawTreeData(rawTreeData);
60
- setTreeData((0, _utils.toTree)(rawTreeData));
67
+ var rootNode = {
68
+ 'async': true,
69
+ 'data': {
70
+ 'id': 0,
71
+ 'name': "公司全部"
72
+ },
73
+ 'id': "0",
74
+ 'isLeaf': true,
75
+ 'key': 0,
76
+ 'nodeType': "depart-node",
77
+ 'pid': -1,
78
+ 'title': "公司全部"
79
+ };
80
+ setRawTreeData([rootNode].concat(_toConsumableArray(rawTreeData)));
81
+ setTreeData((0, _utils.toTree)([rootNode].concat(_toConsumableArray(rawTreeData))));
61
82
  });
62
83
  }, []); // 动态加载子节点数据集
63
84
 
@@ -82,9 +103,16 @@ var DepartMenus = function DepartMenus(props) {
82
103
  return (0, _requestApis.getDepsAndUsers)(nodeId, isGetUser);
83
104
  };
84
105
 
85
- var onSelectHandler = function onSelectHandler() {
86
- props.onSelect && props.onSelect();
87
- location.href = '#/okr/manage';
106
+ var onSelectHandler = function onSelectHandler(_id, _ref) {
107
+ var node = _ref.node;
108
+ var nodeType = node.nodeType,
109
+ data = node.data;
110
+
111
+ if (nodeType == "user") {
112
+ location.href = "#/okr/manage?toUserId=".concat(data.userId);
113
+ } else if (nodeType == "depart-node") {
114
+ location.href = "#/okr/manage?departmentName=".concat(data.name, "&departmentId=").concat(data.id);
115
+ }
88
116
  };
89
117
 
90
118
  return /*#__PURE__*/_react["default"].createElement(_menuTree["default"], {
@@ -95,5 +123,4 @@ var DepartMenus = function DepartMenus(props) {
95
123
  });
96
124
  };
97
125
 
98
- var _default = DepartMenus;
99
126
  exports["default"] = _default;
@@ -3,7 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.defaultRefObject = void 0;
6
+ exports.defaultRefObject = exports["default"] = void 0;
7
+
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+
10
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+
12
+ 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); }
13
+
14
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
15
+
16
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
+
18
+ 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; }
7
19
 
8
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
21
 
@@ -16,6 +28,10 @@ var defaultRefObject = {
16
28
  'insertConcern': function insertConcern() {},
17
29
  'insertSubordinates': function insertSubordinates() {},
18
30
  'getMenus': function getMenus() {},
31
+ 'setConcernLoading': function setConcernLoading() {},
32
+ 'setSubordinatesLoading': function setSubordinatesLoading() {},
33
+ 'addConcerner': function addConcerner() {},
34
+ 'removeConcerner': function removeConcerner() {},
19
35
  'USERCONCERN': '',
20
36
  'SUBORDINATES': '',
21
37
  'MYOKR': ''
@@ -89,7 +105,12 @@ var okrMenus = /*#__PURE__*/function () {
89
105
  'key': 'panzi',
90
106
  'href': '#/okr/chart?iTalentFrameType=iframe&iTalentFrame=%2F%2Fwww.tita.gift%2Fmenuroute%3FmenuId%3D44269%26roleId%3D'
91
107
  }, {
92
- 'icon': 'rw-zx',
108
+ 'icon': 'panel',
109
+ 'label': 'OKR 工作法',
110
+ 'key': 'panel',
111
+ 'href': '#/okr/manage'
112
+ }, {
113
+ 'icon': 'cases',
93
114
  'label': 'OKR 案例库',
94
115
  'key': 'cases',
95
116
  'href': '#/okr/cases'
@@ -111,10 +132,48 @@ var okrMenus = /*#__PURE__*/function () {
111
132
 
112
133
  return false;
113
134
  }
135
+ }, {
136
+ key: "setConcernLoading",
137
+ value: function setConcernLoading(loading) {
138
+ this.menus[2].children = [];
139
+
140
+ if (loading) {
141
+ this.menus[2].children.push({
142
+ 'icon': '',
143
+ 'label': 'loading',
144
+ 'key': "loading-concern",
145
+ 'type': 'loading',
146
+ 'href': '',
147
+ 'data': {}
148
+ });
149
+ }
150
+ }
151
+ }, {
152
+ key: "setSubordinatesLoading",
153
+ value: function setSubordinatesLoading(loading) {
154
+ this.menus[1].children = [];
155
+
156
+ if (loading) {
157
+ this.menus[1].children.push({
158
+ 'icon': '',
159
+ 'label': 'loading',
160
+ 'key': "loading-concern",
161
+ 'type': 'loading',
162
+ 'href': '',
163
+ 'data': {}
164
+ });
165
+ }
166
+ }
114
167
  }, {
115
168
  key: "insertConcern",
116
169
  value: function insertConcern(users) {
117
- var treeNodeUsers = [];
170
+ var treeNodeUsers = []; // 如果没有关注者,显示空
171
+
172
+ this.setEmptyConcerners(false);
173
+
174
+ if (!users || !users.length) {
175
+ this.setEmptyConcerners(true);
176
+ }
118
177
 
119
178
  for (var i = 0; i < users.length; i++) {
120
179
  var user = users[i];
@@ -123,7 +182,7 @@ var okrMenus = /*#__PURE__*/function () {
123
182
  'icon': '',
124
183
  'label': user.name,
125
184
  'key': "".concat(user.userId),
126
- 'type': 'user',
185
+ 'type': 'follower',
127
186
  'href': '',
128
187
  'data': user
129
188
  });
@@ -131,6 +190,51 @@ var okrMenus = /*#__PURE__*/function () {
131
190
 
132
191
  this.menus[2].children = this.menus[2].children.concat(treeNodeUsers);
133
192
  }
193
+ }, {
194
+ key: "setEmptyConcerners",
195
+ value: function setEmptyConcerners(empty) {
196
+ this.menus[2].children = [];
197
+
198
+ if (empty) {
199
+ this.menus[2].children.push({
200
+ 'icon': '',
201
+ 'label': 'empty-concerners',
202
+ 'key': "empty-concerners",
203
+ 'type': 'no-follower',
204
+ 'href': '',
205
+ 'data': {}
206
+ });
207
+ }
208
+ }
209
+ }, {
210
+ key: "addConcerner",
211
+ value: function addConcerner(user) {
212
+ if (this.menus[2].children.length && this.menus[2].children[0].key == 'empty-concerners') {
213
+ this.menus[2].children = [];
214
+ }
215
+
216
+ this.menus[2].children.push({
217
+ 'icon': '',
218
+ 'label': user.name,
219
+ 'key': "".concat(user.userId),
220
+ 'type': 'follower',
221
+ 'href': '',
222
+ 'data': user
223
+ });
224
+ }
225
+ }, {
226
+ key: "removeConcerner",
227
+ value: function removeConcerner(user) {
228
+ var newChildren = _toConsumableArray(this.menus[2].children).filter(function (it) {
229
+ return it.key != user.userId;
230
+ });
231
+
232
+ if (!newChildren.length) {
233
+ this.setEmptyConcerners(true);
234
+ } else {
235
+ this.menus[2].children = newChildren;
236
+ }
237
+ }
134
238
  }, {
135
239
  key: "insertSubordinates",
136
240
  value: function insertSubordinates(users) {
@@ -154,6 +258,7 @@ var okrMenus = /*#__PURE__*/function () {
154
258
  key: "getMenus",
155
259
  value: function getMenus() {
156
260
  var menus = this.formateToTreeNodeData(this.menus);
261
+ 1;
157
262
  return menus;
158
263
  }
159
264
  }, {
@@ -1,6 +1,5 @@
1
1
  .titaui-menus-okr-menus {
2
2
  position: relative;
3
- height: 100vh;
4
3
  box-sizing: border-box;
5
4
  }
6
5
 
@@ -55,7 +55,7 @@ var _default = function _default(props) {
55
55
  var _props$onSelect = props.onSelect,
56
56
  onSelect = _props$onSelect === void 0 ? function () {} : _props$onSelect;
57
57
 
58
- var _useState = (0, _react.useState)("depart"),
58
+ var _useState = (0, _react.useState)(""),
59
59
  _useState2 = _slicedToArray(_useState, 2),
60
60
  flipBackType = _useState2[0],
61
61
  setFlipBackType = _useState2[1];
@@ -82,36 +82,71 @@ var _default = function _default(props) {
82
82
 
83
83
  var onSelectHandler = function onSelectHandler(_, _ref) {
84
84
  var node = _ref.node;
85
+ var nodeType = node.nodeType,
86
+ data = node.data;
87
+
88
+ if (nodeType == 'user') {
89
+ location.href = "#/okr/manage?toUserId=".concat(data.userId);
90
+ }
91
+
85
92
  onSelect(node);
86
93
  };
87
94
 
88
95
  var onUserSelectHandler = function onUserSelectHandler(user) {
89
- onSelect(user);
90
96
  location.href = "#/okr/manage?26toUserId=".concat(user.id);
97
+ }; // 获取关注的人数据列表
98
+
99
+
100
+ var getConcerners = function getConcerners() {
101
+ return new Promise(function (resolve, reject) {
102
+ var mdata = okrMenusData.current; // 初始化 Loading
103
+
104
+ mdata.setConcernLoading(true);
105
+ setMenus(mdata.getMenus());
106
+ resolve(true); // 获取数据
107
+
108
+ (0, _requestApis.getFollowerList)().then(function (user) {
109
+ mdata.setConcernLoading(false);
110
+ mdata.insertConcern(user);
111
+ setMenus(mdata.getMenus());
112
+ })["catch"](reject);
113
+ });
114
+ }; // 获取下属OKR数据列表
115
+
116
+
117
+ var getSubordinaters = function getSubordinaters() {
118
+ return new Promise(function (resolve, reject) {
119
+ var mdata = okrMenusData.current; // 初始化 Loading
120
+
121
+ mdata.setSubordinatesLoading(true);
122
+ setMenus(mdata.getMenus());
123
+ resolve(true); // 获取数据
124
+
125
+ (0, _requestApis.getSubordinates)({
126
+ 'relationIds': '1,3'
127
+ }).then(function (users) {
128
+ mdata.setSubordinatesLoading(false);
129
+ mdata.insertSubordinates(users);
130
+ setMenus(mdata.getMenus());
131
+ resolve(true);
132
+ })["catch"](reject);
133
+ });
91
134
  };
92
135
 
93
136
  var onLoadTreeNodeDataHandler = function onLoadTreeNodeDataHandler(treeNode) {
94
137
  return new Promise(function (resolve) {
95
138
  if (treeNode.key == okrMenusData.current.MYOKR) {
96
139
  resolve(true);
97
- } // 关注的人
98
- else if (treeNode.key == okrMenusData.current.USERCONCERN) {
99
- (0, _requestApis.getFollowerList)().then(function (user) {
100
- okrMenusData.current.insertConcern(user);
101
- setMenus(okrMenusData.current.getMenus());
102
- resolve(true);
103
- })["catch"](function (err) {
140
+ } else if (treeNode.key == okrMenusData.current.USERCONCERN) {
141
+ getConcerners().then(function () {
142
+ return resolve(true);
143
+ })["catch"](function () {
104
144
  return resolve(true);
105
145
  });
106
- } // 下属OKR
107
- else if (treeNode.key == okrMenusData.current.SUBORDINATES) {
108
- (0, _requestApis.getSubordinates)({
109
- 'relationIds': '1,3'
110
- }).then(function (users) {
111
- okrMenusData.current.insertSubordinates(users);
112
- setMenus(okrMenusData.current.getMenus());
113
- resolve(true);
114
- })["catch"](function (err) {
146
+ } else if (treeNode.key == okrMenusData.current.SUBORDINATES) {
147
+ getSubordinaters().then(function () {
148
+ return resolve(true);
149
+ })["catch"](function () {
115
150
  return resolve(true);
116
151
  });
117
152
  } else {
@@ -134,16 +169,34 @@ var _default = function _default(props) {
134
169
  }
135
170
  };
136
171
 
172
+ var onAddConcerner = function onAddConcerner(user) {
173
+ var mdata = okrMenusData.current;
174
+ mdata.addConcerner(user.data);
175
+ setMenus(mdata.getMenus());
176
+ };
177
+
178
+ var onRemoveConcerner = function onRemoveConcerner(user) {
179
+ (0, _requestApis.removeFollower)(user.userId).then(function (res) {
180
+ if (res.Code == 1) {
181
+ var mdata = okrMenusData.current;
182
+ mdata.removeConcerner(user);
183
+ setMenus(mdata.getMenus());
184
+ }
185
+ });
186
+ };
187
+
137
188
  return /*#__PURE__*/_react["default"].createElement(_context.OkrMenusContext.Provider, {
138
189
  value: {
139
- flipGoNext: flipGoNext
190
+ flipGoNext: flipGoNext,
191
+ onAddConcerner: onAddConcerner,
192
+ onRemoveConcerner: onRemoveConcerner
140
193
  }
141
194
  }, /*#__PURE__*/_react["default"].createElement("div", {
142
195
  ref: menuRef,
143
196
  className: (0, _classnames["default"])("".concat(_precls["default"], "-okr-menus"))
144
197
  }, /*#__PURE__*/_react["default"].createElement(_flipMenuCard["default"], {
145
- collapseMenu: collapseMenu,
146
198
  ref: flipRef,
199
+ collapseMenu: collapseMenu,
147
200
  defaultWidth: 180
148
201
  }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
149
202
  style: {
@@ -9,6 +9,8 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
+ var _reactRouter = require("react-router");
13
+
12
14
  var _menuTree = _interopRequireDefault(require("../../components/menu-tree"));
13
15
 
14
16
  var _requestApis = require("../../request-apis");
@@ -36,7 +38,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
36
38
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
39
 
38
40
  var SubOrdinateMenus = function SubOrdinateMenus(props) {
39
- var toUserId = props.toUserId;
41
+ var toUserId = props.toUserId,
42
+ history = props.history;
40
43
  var loadedNode = (0, _react.useRef)([]);
41
44
 
42
45
  var _useState = (0, _react.useState)(false),
@@ -92,8 +95,12 @@ var SubOrdinateMenus = function SubOrdinateMenus(props) {
92
95
  });
93
96
  };
94
97
 
95
- var onSelectHandler = function onSelectHandler() {
96
- props.onSelect && props.onSelect();
98
+ var onSelectHandler = function onSelectHandler(_id, _ref) {
99
+ var node = _ref.node;
100
+ history.push({
101
+ pathname: "/okr/manage?toUserId=".concat(node.id)
102
+ });
103
+ history.go(); // location.href=`#/okr/manage?toUserId=${node.id}`
97
104
  };
98
105
 
99
106
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, !loading && /*#__PURE__*/_react["default"].createElement(_menuTree["default"], {
@@ -104,5 +111,6 @@ var SubOrdinateMenus = function SubOrdinateMenus(props) {
104
111
  }));
105
112
  };
106
113
 
107
- var _default = SubOrdinateMenus;
114
+ var _default = (0, _reactRouter.withRouter)(SubOrdinateMenus);
115
+
108
116
  exports["default"] = _default;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DepartMenus = exports["default"] = void 0;
6
+ exports["default"] = exports.DepartMenus = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getDepsAndUsers = exports.addFollower = exports.getSubordinates = exports.getFollowerList = void 0;
6
+ exports.removeFollower = exports.getSubordinates = exports.getFollowerList = exports.getDepsAndUsers = exports.addFollower = void 0;
7
7
 
8
8
  var _request = require("../../utils/request");
9
9
 
@@ -69,10 +69,13 @@ var getSubordinates = function getSubordinates(_ref) {
69
69
 
70
70
  exports.getSubordinates = getSubordinates;
71
71
 
72
- var addFollower = function addFollower(userId) {
73
- return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/addFollower?followerId=").concat(userId), null, {// 'headers': {
74
- // 'Content-Type': 'application/json; charset=utf-8'
75
- // }
72
+ var addFollower = function addFollower(id) {
73
+ return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/addFollower?followerId=").concat(id), null, {
74
+ 'headers': {
75
+ 'Content-Type': 'application/json; charset=utf-8',
76
+ 'Accept': 'application/json, application/xml, text/play, text/html, *.*'
77
+ },
78
+ 'withCredentials': true
76
79
  }).then(function (res) {
77
80
  return res.data;
78
81
  });
@@ -80,6 +83,20 @@ var addFollower = function addFollower(userId) {
80
83
 
81
84
  exports.addFollower = addFollower;
82
85
 
86
+ var removeFollower = function removeFollower(id) {
87
+ return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/delFollower?followerId=").concat(id), null, {
88
+ 'headers': {
89
+ 'Content-Type': 'application/json; charset=utf-8',
90
+ 'Accept': 'application/json, application/xml, text/play, text/html, *.*'
91
+ },
92
+ 'withCredentials': true
93
+ }).then(function (res) {
94
+ return res.data;
95
+ });
96
+ };
97
+
98
+ exports.removeFollower = removeFollower;
99
+
83
100
  var getDepsAndUsers = function getDepsAndUsers() {
84
101
  var departmentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
85
102
  var isGetUser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -56,6 +56,7 @@
56
56
  font-weight: 400;
57
57
  color: #3F4755;
58
58
  line-height: 22px;
59
+ min-width: 104px;
59
60
  }
60
61
 
61
62
  .titaui-nav-top-menu__menu-hide--active {
@@ -69,8 +69,9 @@ var Menu = function Menu(_ref) {
69
69
  component: "span"
70
70
  }, /*#__PURE__*/_react["default"].createElement("a", {
71
71
  className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId == menu.id)),
72
- href: "#".concat(menu.hash)
73
- }, menu.name));
72
+ href: "".concat(menu.href),
73
+ target: "_self"
74
+ }, menu.title));
74
75
  };
75
76
 
76
77
  var renderRest = function renderRest(items) {
@@ -84,9 +85,10 @@ var Menu = function Menu(_ref) {
84
85
  }, items.map(function (menu) {
85
86
  return /*#__PURE__*/_react["default"].createElement("a", {
86
87
  className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId == menu.id)),
87
- href: "#".concat(menu.hash),
88
- key: menu.id
89
- }, menu.name);
88
+ href: "".concat(menu.href),
89
+ key: menu.id,
90
+ target: "_self"
91
+ }, menu.title);
90
92
  }));
91
93
 
92
94
  return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
@@ -26,7 +26,7 @@ var Empty = function Empty() {
26
26
  className: (0, _classnames["default"])("".concat(preCls, "__empty-text"))
27
27
  }, "\u6682\u65F6\u6CA1\u6709\u9700\u8981\u5904\u7406\u7684\u6D88\u606F\u54E6\uFF5E"), /*#__PURE__*/_react["default"].createElement("a", {
28
28
  target: "_blank",
29
- href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more%2Fmessages%3FmessageType%3D2%26isRead%3D2%26messageSubNav%3D1")
29
+ href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=2&isRead=1")
30
30
  }, /*#__PURE__*/_react["default"].createElement("div", {
31
31
  className: (0, _classnames["default"])("".concat(preCls, "__empty-all"))
32
32
  }, "\u67E5\u770B\u5168\u90E8\u6D88\u606F")));
@@ -1,6 +1,15 @@
1
+ .titaui-user-message-msg-inform__loading {
2
+ width: 80px;
3
+ position: absolute;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ margin: auto;
9
+ }
10
+
1
11
  .titaui-user-message-msg-inform__items {
2
12
  width: 420px;
3
- margin-top: 8px;
4
13
  }
5
14
 
6
15
  .titaui-user-message-msg-inform__item {
@@ -9,7 +18,16 @@
9
18
  height: 82px;
10
19
  border-radius: 12px;
11
20
  margin-bottom: 4px;
12
- margin: 0 12px;
21
+ margin-left: 12px;
22
+ cursor: pointer;
23
+ }
24
+
25
+ .titaui-user-message-msg-inform__item:first-of-type {
26
+ margin-top: 8px;
27
+ }
28
+
29
+ .titaui-user-message-msg-inform__item:last-of-type {
30
+ margin-bottom: 0;
13
31
  }
14
32
 
15
33
  .titaui-user-message-msg-inform__item-photo {
@@ -95,6 +113,10 @@
95
113
  position: absolute;
96
114
  bottom: 0;
97
115
  left: 0;
116
+ box-sizing: border-box;
117
+ padding-right: 24px;
118
+ display: flex;
119
+ align-items: center;
98
120
  width: 420px;
99
121
  height: 50px;
100
122
  background: #ffffff;
@@ -102,13 +124,14 @@
102
124
  }
103
125
 
104
126
  .titaui-user-message-msg-inform__footer-all {
105
- display: inline-block;
106
- margin: 16px 24px 16px 348px;
107
- width: 48px;
108
- height: 18px;
127
+ margin-left: auto;
109
128
  font-size: 12px;
110
129
  font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
111
130
  font-weight: 400;
112
131
  color: #2879ff;
113
132
  line-height: 18px;
114
133
  }
134
+
135
+ .titaui-user-message-msg-inform__footer-all:hover {
136
+ color: #2879ff;
137
+ }