@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
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="88px" height="20px" viewBox="0 0 88 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
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
+ <stop stop-color="#9EC2FF" offset="0%"></stop>
7
+ <stop stop-color="#76A9FF" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="-2.48949813e-15%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#2879FF" offset="0%"></stop>
11
+ <stop stop-color="#0E69FE" offset="100%"></stop>
12
+ </linearGradient>
13
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="41.2046279%" id="linearGradient-3">
14
+ <stop stop-color="#1B71FF" offset="0%"></stop>
15
+ <stop stop-color="#FFFFFF" offset="100%"></stop>
16
+ </linearGradient>
17
+ </defs>
18
+ <g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19
+ <g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3352.000000)" fill-rule="nonzero">
20
+ <g id="角色" transform="translate(1356.000000, 3208.000000)">
21
+ <g id="部门负责人" transform="translate(0.000000, 144.000000)">
22
+ <rect id="矩形" fill="#2879FF" x="3" y="1" width="85" height="18" rx="9"></rect>
23
+ <g id="编组-25">
24
+ <polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
25
+ <polygon id="多边形" fill="url(#linearGradient-2)" points="8.93333333 1.8 16.1502117 5.89090909 16.1502117 14.0727273 8.93333333 18.1636364 1.71645497 14.0727273 1.71645497 5.89090909"></polygon>
26
+ <g id="编组-29" transform="translate(5.000000, 5.000000)">
27
+ <path d="M3.88814818,9.78562699 C3.68141594,9.77439872 3.29833383,9.75788656 2.91657268,9.73212759 C2.56255197,9.70835008 2.20853126,9.67928868 1.85583152,9.6442829 C1.35452234,9.5960674 0.85651559,9.52209292 0.364453219,9.41377315 C0.352564463,9.4111312 0.341336194,9.40584731 0.329447439,9.40386585 C0.178196053,9.3774464 0.106863521,9.27837343 0.0711972551,9.13636886 C-0.00145624941,8.84641533 -0.0133450047,8.35424963 0.0124139651,8.05835172 C0.0262841796,7.89851401 0.0460987717,7.73933679 0.067894823,7.57949908 C0.107524007,7.29416895 0.266040744,7.09206011 0.507118282,6.9421297 C0.772633816,6.77766858 1.06655027,6.68982389 1.36178769,6.60528163 C1.58503209,6.54121445 1.81422088,6.49431991 2.02095312,6.3833582 C2.23429023,6.26777308 2.43904101,6.1402992 2.58698997,5.94215328 C2.67351369,5.82590767 2.96544868,5.2466611 2.91657268,5.09937263 C2.88949274,5.01615134 5.00418303,4.911134 4.97380066,5.09937263 C4.90180764,5.54321949 5.37556357,6.07755299 5.77449736,6.28494572 C6.02746365,6.41638252 6.30024453,6.49167797 6.57170444,6.57357828 C6.8312756,6.65085519 7.09216773,6.72416918 7.33456624,6.84768014 C7.47194741,6.9176917 7.60206324,7.0002525 7.70906203,7.11385616 C7.84710369,7.25916317 7.91381282,7.43815498 7.93957179,7.6316775 C7.96599124,7.82387904 7.99108973,8.01674107 7.99769459,8.21026359 C8.0069414,8.46058794 7.99108973,8.90784056 7.8999426,9.14561567 C7.86757877,9.23081841 7.80879548,9.28828073 7.72557419,9.323947 C7.53271216,9.4065078 7.32928235,9.44943941 7.12519205,9.4890686 C6.64964184,9.58021572 6.16946822,9.64031998 5.68731315,9.69117744 C5.14769576,9.74731878 4.60609691,9.77638018 3.88814818,9.78562699 Z M3.99184455,6.66142297 C3.92183299,6.66142297 3.85182143,6.660102 3.78180987,6.66274395 C3.76463723,6.66274395 3.74019923,6.66802784 3.73029193,6.67925611 C3.67216913,6.75521204 3.61404633,6.83116798 3.56318887,6.91306829 C3.5473372,6.93882726 3.54073234,6.9857218 3.55328158,7.01148077 C3.6252746,7.15876924 3.70519345,7.30077381 3.7804889,7.44674131 C3.79237766,7.46853736 3.80228495,7.49825925 3.79700106,7.52137627 C3.73557583,7.82255807 3.66160135,8.12109793 3.60942292,8.4236007 C3.54535574,8.79611503 3.54139282,8.94350683 3.72500804,9.19845458 C3.78973571,9.25855884 3.848519,9.31866311 3.91324667,9.37084153 C3.96146218,9.40981023 4.01694303,9.40518682 4.07044243,9.37480445 C4.17612026,9.31536067 4.26396495,9.23544182 4.33595797,9.14033178 C4.39474126,9.06305487 4.45154309,8.98247553 4.42842606,8.87283478 C4.3537911,8.52343747 4.28311905,7.97446995 4.20650263,7.62507264 C4.18999047,7.55043767 4.16357102,7.48042611 4.24547133,7.42692672 C4.25207619,7.42230331 4.25603911,7.4130565 4.26000203,7.40579115 C4.32208775,7.29416895 4.38615493,7.18386772 4.44295676,7.07026406 C4.45880844,7.03723974 4.46277136,6.98968472 4.45352455,6.95401845 C4.42116071,6.83645187 4.33595797,6.74992815 4.2467923,6.67661416 C4.21244701,6.64821325 4.14045399,6.66406492 4.08497313,6.66208346 C4.05459076,6.660102 4.02288741,6.66142297 3.99184455,6.66142297 Z" id="形状" fill="url(#linearGradient-3)"></path>
28
+ <path d="M4,5.16666667 C5.23711784,5.16666667 6.24,3.62199775 6.24,2.33333333 C6.24,1.04466891 5.23711784,1.77635684e-15 4,1.77635684e-15 C2.76288216,1.77635684e-15 1.76,1.04466891 1.76,2.33333333 C1.76,3.62199775 2.76288216,5.16666667 4,5.16666667 Z" id="路径" fill="#FFFFFF"></path>
29
+ </g>
30
+ </g>
31
+ <g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
32
+ <text id="部门负责人">
33
+ <tspan x="0" y="13">部门负责人</tspan>
34
+ </text>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="52px" height="20px" viewBox="0 0 52 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
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
+ <stop stop-color="#FFEEC7" offset="0%"></stop>
7
+ <stop stop-color="#FFD896" offset="100%"></stop>
8
+ </linearGradient>
9
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
10
+ <stop stop-color="#FFCA3D" offset="0%"></stop>
11
+ <stop stop-color="#E2A916" offset="100%"></stop>
12
+ </linearGradient>
13
+ <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-3">
14
+ <stop stop-color="#FFFFFF" offset="0%"></stop>
15
+ <stop stop-color="#FFFFFF" offset="14.1298294%"></stop>
16
+ <stop stop-color="#F6BF31" offset="18.0222878%"></stop>
17
+ <stop stop-color="#FFFFFF" offset="30.3107042%"></stop>
18
+ <stop stop-color="#FFFFFF" offset="100%"></stop>
19
+ </linearGradient>
20
+ </defs>
21
+ <g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
22
+ <g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3244.000000)" fill-rule="nonzero">
23
+ <g id="角色" transform="translate(1356.000000, 3208.000000)">
24
+ <g id="超管" transform="translate(0.000000, 36.000000)">
25
+ <rect id="矩形" fill="#F2B20F" x="3" y="1" width="49" height="18" rx="9"></rect>
26
+ <g id="编组-25">
27
+ <polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
28
+ <polygon id="多边形" fill="url(#linearGradient-2)" points="9 1.81818182 16.2168784 5.90909091 16.2168784 14.0909091 9 18.1818182 1.78312164 14.0909091 1.78312164 5.90909091"></polygon>
29
+ <path d="M10.1408182,6.81818182 L10.8181818,13.030303 L9,16.3636364 L7.18181818,13.030303 L7.85881818,6.81818182 L10.1408182,6.81818182 Z M10.2273686,4.54545455 C10.4482825,4.54545455 10.6273686,4.72454065 10.6273686,4.94545455 C10.6273686,4.99634232 10.6176586,5.04676271 10.5987593,5.09401082 L10.0909091,6.36363636 L7.90909091,6.36363636 L7.40124069,5.09401082 C7.31919533,4.88889741 7.41896169,4.65610923 7.6240751,4.57406387 C7.67132321,4.55516463 7.72174359,4.54545455 7.77263137,4.54545455 L10.2273686,4.54545455 Z" id="形状结合" fill="url(#linearGradient-3)"></path>
30
+ </g>
31
+ <g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
32
+ <text id="超管">
33
+ <tspan x="0" y="13">超管</tspan>
34
+ </text>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -1,24 +1,25 @@
1
- .okrtitausers {
2
- margin: 200px 200px;
3
- position: relative;
4
- }
5
-
6
- .okrtitausers__photo {
7
- display: inline-block;
8
- position: absolute;
9
- z-index: 2000;
1
+ .titaui-photo {
10
2
  width: 36px;
11
3
  height: 36px;
12
- vertical-align: top;
13
- border: 2px solid #fff;
14
4
  border-radius: 35px;
5
+ cursor: pointer;
6
+ }
7
+
8
+ .titaui-photo__card {
9
+ animation: titaui-photo-card-show 0.5s forwards;
10
+ }
11
+
12
+ .titaui-photo .titaui-pc-avator-container img {
13
+ width: 36px !important;
14
+ height: 36px !important;
15
15
  }
16
16
 
17
- .okrtitausers__card {
18
- animation: show 0.5s forwards;
17
+ .titaui-photo .titaui-pc-avator-container .titaui-pc-avatar--text {
18
+ width: 36px !important;
19
+ height: 36px !important;
19
20
  }
20
21
 
21
- @keyframes show {
22
+ @keyframes titaui-photo-card-show {
22
23
  from {
23
24
  opacity: 0;
24
25
  }
@@ -1,17 +1,23 @@
1
1
  "use strict";
2
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
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
8
- var _react = _interopRequireDefault(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
9
11
 
10
12
  var _classnames = _interopRequireDefault(require("classnames"));
11
13
 
12
14
  var _popup = _interopRequireDefault(require("../popup"));
13
15
 
14
- var _data = require("./data");
16
+ var _request = require("../../utils/request");
17
+
18
+ var _default2 = _interopRequireDefault(require("../../components/avatar/default"));
19
+
20
+ var _bsGlobal = require("../../utils/bs-global");
15
21
 
16
22
  var _card = _interopRequireDefault(require("./components/card"));
17
23
 
@@ -19,31 +25,69 @@ require("./index.css");
19
25
 
20
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
27
 
22
- var prefixCls = "okrtitausers";
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
32
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+
34
+ 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."); }
35
+
36
+ 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); }
37
+
38
+ 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; }
39
+
40
+ 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; }
41
+
42
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
+
44
+ var prefixCls = "titaui-photo";
23
45
  var popupAlign = {
24
- offset: [40, 0],
46
+ offset: [-40, -36],
25
47
  overflow: {
26
48
  adjustX: true,
27
49
  adjustY: true
28
50
  },
29
51
  targetOffset: [0, 0]
30
52
  };
53
+ var userownInfo = (0, _bsGlobal.getUserInfo)();
54
+
55
+ var PhotoCard = function PhotoCard(props) {
56
+ var userId = props.userId;
57
+
58
+ var _useState = (0, _react.useState)(),
59
+ _useState2 = _slicedToArray(_useState, 2),
60
+ userInfo = _useState2[0],
61
+ setUserInfo = _useState2[1];
62
+
63
+ (0, _react.useEffect)(function () {
64
+ (0, _request.rget)("v2")("user/GetById?toUserid=".concat(userId)).then(function (res) {
65
+ console.log(res);
66
+ console.log(1111);
31
67
 
32
- var PhotoCard = function PhotoCard() {
68
+ if (res.Code === 1) {
69
+ setUserInfo(res.Data);
70
+ }
71
+ });
72
+ }, [userId]);
73
+ console.log(userInfo);
74
+ if (!userInfo) return null;
33
75
  return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
34
- popupPlacement: "bottomLeft",
35
- popup: /*#__PURE__*/_react["default"].createElement(_card["default"], null),
36
- action: ['hover'],
76
+ popup: /*#__PURE__*/_react["default"].createElement(_card["default"], {
77
+ userInfo: userInfo,
78
+ userownInfo: userownInfo
79
+ }),
80
+ action: ["click"],
37
81
  mask: false,
38
82
  popupClassName: "".concat(prefixCls, "__card"),
39
- popupAlign: popupAlign,
40
- popupVisible: true
83
+ popupAlign: popupAlign
41
84
  }, /*#__PURE__*/_react["default"].createElement("div", {
42
- className: (0, _classnames["default"])(prefixCls)
43
- }, /*#__PURE__*/_react["default"].createElement("img", {
44
- src: _data.data.photo,
45
- alt: "",
46
- className: (0, _classnames["default"])("".concat(prefixCls, "__photo"))
85
+ className: (0, _classnames["default"])("".concat(prefixCls))
86
+ }, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
87
+ userId: userInfo.userId,
88
+ name: userInfo.name,
89
+ color: userInfo.avatar.color,
90
+ src: userInfo.avatar.big
47
91
  })));
48
92
  };
49
93
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.RenderError = RenderError;
6
7
  exports.RenderSuccess = RenderSuccess;
7
8
  exports.RenderWarning = RenderWarning;
8
- exports.RenderError = RenderError;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CloseBtn = exports.ToastWrapper = void 0;
6
+ exports.ToastWrapper = exports.CloseBtn = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.PraiseContent = exports.PraiseRecordDetail = exports.PraiseRecordContent = exports.PraiseRecordItems = exports.PraiseRecordMore = exports.PraiseRecordList = exports.PraiseRecordClose = exports.PraiseRecordHead = exports.PraiseRecordContainer = exports.PraiseRecordWrapper = void 0;
6
+ exports.PraiseRecordWrapper = exports.PraiseRecordMore = exports.PraiseRecordList = exports.PraiseRecordItems = exports.PraiseRecordHead = exports.PraiseRecordDetail = exports.PraiseRecordContent = exports.PraiseRecordContainer = exports.PraiseRecordClose = exports.PraiseContent = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CircleProgress = exports.LineProgress = void 0;
6
+ exports.LineProgress = exports.CircleProgress = void 0;
7
7
 
8
8
  var _lineProgress = _interopRequireDefault(require("./line-progress"));
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.addNotice = exports.addShare = void 0;
6
+ exports.addShare = exports.addNotice = void 0;
7
7
 
8
8
  var _qs = _interopRequireDefault(require("qs"));
9
9
 
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.RadioGroup = exports["default"] = void 0;
8
+ exports["default"] = exports.RadioGroup = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.TabPane = exports["default"] = void 0;
8
+ exports["default"] = exports.TabPane = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.formatDateStr = exports.lableTypeMap = exports.isOpenLabel = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.preCls = void 0;
6
+ exports.preCls = exports.lableTypeMap = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.isOpenLabel = exports.formatDateStr = void 0;
7
7
 
8
8
  var _bsGlobal = require("../../utils/bs-global");
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getUserById = exports.relationWorks = exports.updateLable = exports.getWorks = exports.getCategory = exports.okrSearch = void 0;
6
+ exports.updateLable = exports.relationWorks = exports.okrSearch = exports.getWorks = exports.getUserById = exports.getCategory = void 0;
7
7
 
8
8
  var _request = require("../../utils/request");
9
9
 
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "TitaPieChart", {
6
+ Object.defineProperty(exports, "TitaLiquidBall", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _pie["default"];
9
+ return _liquidBall["default"];
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "TitaLiquidBall", {
12
+ Object.defineProperty(exports, "TitaPieChart", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _liquidBall["default"];
15
+ return _pie["default"];
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "TitaWordsCloud", {
@@ -3,40 +3,40 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "isType", {
6
+ Object.defineProperty(exports, "clone", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _utils.isType;
9
+ return _utils.clone;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "clone", {
12
+ Object.defineProperty(exports, "deepClone", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _utils.clone;
15
+ return _utils.deepClone;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "hasPath", {
18
+ Object.defineProperty(exports, "getChart", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _utils.hasPath;
21
+ return _getChart.getChart;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "setPath", {
24
+ Object.defineProperty(exports, "hasPath", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _utils.setPath;
27
+ return _utils.hasPath;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "deepClone", {
30
+ Object.defineProperty(exports, "isType", {
31
31
  enumerable: true,
32
32
  get: function get() {
33
- return _utils.deepClone;
33
+ return _utils.isType;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "getChart", {
36
+ Object.defineProperty(exports, "setPath", {
37
37
  enumerable: true,
38
38
  get: function get() {
39
- return _getChart.getChart;
39
+ return _utils.setPath;
40
40
  }
41
41
  });
42
42
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.setPath = exports.hasPath = exports.deepClone = exports.getType = exports.clone = exports.isType = void 0;
6
+ exports.setPath = exports.isType = exports.hasPath = exports.getType = exports.deepClone = exports.clone = void 0;
7
7
 
8
8
  /* eslint-disable no-restricted-syntax */
9
9
  // 类型检测
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.ErrorToolTip = exports.TooltipText = void 0;
6
+ exports["default"] = exports.TooltipText = exports.ErrorToolTip = void 0;
7
7
 
8
8
  var _tooltip = _interopRequireDefault(require("./tooltip"));
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.switcherIconHandler = void 0;
6
+ exports.switcherIconHandler = exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,8 +11,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
12
  var _rcTree = _interopRequireDefault(require("@titaui/rc-tree2"));
13
13
 
14
- require("@titaui/rc-tree2/assets/index.css");
15
-
16
14
  require("./index.css");
17
15
 
18
16
  var _precls = _interopRequireDefault(require("./precls"));
@@ -0,0 +1,80 @@
1
+ .tt-update-modal {
2
+ width: 610px;
3
+ background-color: #fff;
4
+ padding-top: 237px;
5
+ padding-bottom: 40px;
6
+ background-image: url(./img/background.png);
7
+ background-size: 610px 237px;
8
+ background-position: 0 0;
9
+ background-repeat: no-repeat;
10
+ border-radius: 40px;
11
+ position: relative;
12
+ }
13
+
14
+ .tt-update-modal .tu-icon-canceled {
15
+ position: absolute;
16
+ top: 20px;
17
+ right: 30px;
18
+ font-size: 20px;
19
+ font-weight: bold;
20
+ color: #141c28;
21
+ }
22
+
23
+ .tt-update-modal__rocket {
24
+ position: absolute;
25
+ width: 200px;
26
+ height: 221px;
27
+ right: 113px;
28
+ top: -51px;
29
+ }
30
+
31
+ .tt-update-modal__update-list {
32
+ margin-bottom: 40px;
33
+ padding: 0 40px;
34
+ }
35
+
36
+ .tt-update-modal__update-item {
37
+ font-size: 16px;
38
+ font-weight: 400;
39
+ color: #3F4755;
40
+ line-height: 24px;
41
+ position: relative;
42
+ padding-left: 18px;
43
+ }
44
+
45
+ .tt-update-modal__update-item::before {
46
+ content: '';
47
+ display: inline-block;
48
+ position: absolute;
49
+ top: 10px;
50
+ left: 0;
51
+ width: 4px;
52
+ height: 4px;
53
+ border-radius: 50%;
54
+ background-color: #6F7886;
55
+ }
56
+
57
+ .tt-update-modal__update-item:not(:last-child) {
58
+ margin-bottom: 12px;
59
+ }
60
+
61
+ .tt-update-modal__detail-btn {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ margin: 0 auto;
66
+ width: 160px;
67
+ height: 40px;
68
+ color: #FFF;
69
+ background: linear-gradient(180deg, #FFB565 0%, #FF9100 100%);
70
+ box-shadow: 0px 8px 8px 1px #FFEEE1, 0px 1px 12px 0px rgba(255, 255, 255, 0.5), 0px -2px 5px 0px rgba(242, 156, 51, 0.4);
71
+ border-radius: 29px;
72
+ font-size: 16px;
73
+ }
74
+
75
+ .tt-update-modal__detail-btn:hover {
76
+ color: #FFF;
77
+ background: linear-gradient(180deg, #FF9E23 0%, #FF9E23 100%);
78
+ box-shadow: 0px 8px 8px 1px #FFEEE1, 0px -2px 5px 0px rgba(242, 156, 51, 0.4);
79
+ border-radius: 29px;
80
+ }
@@ -0,0 +1,83 @@
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 _titaUi = require("tita-ui");
13
+
14
+ var _helper = require("../period-selector/helper");
15
+
16
+ require("./index.css");
17
+
18
+ var _requestApi = require("./request-api");
19
+
20
+ 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); }
21
+
22
+ 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; }
23
+
24
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
+
26
+ 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."); }
27
+
28
+ 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); }
29
+
30
+ 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; }
31
+
32
+ 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; }
33
+
34
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
+
36
+ var preCls = "tt-update-modal";
37
+
38
+ function UpdateModal(_ref) {
39
+ var _ref$updates = _ref.updates,
40
+ updates = _ref$updates === void 0 ? [] : _ref$updates,
41
+ detailLink = _ref.detailLink;
42
+
43
+ var _useState = (0, _react.useState)(function () {
44
+ var userGuides = (0, _helper.getBSGlobal)('userGuides');
45
+ return userGuides && userGuides.upgradeGuide && userGuides.upgradeGuide.value || false;
46
+ }),
47
+ _useState2 = _slicedToArray(_useState, 2),
48
+ visible = _useState2[0],
49
+ setVisible = _useState2[1];
50
+
51
+ var handleClose = (0, _react.useCallback)(function () {
52
+ (0, _requestApi.cancelGuide)((0, _helper.getBSGlobal)('userGuides').upgradeGuide.type);
53
+ (0, _helper.getBSGlobal)('userGuides').upgradeGuide.value = false;
54
+ setVisible(false);
55
+ }, []);
56
+ return /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
57
+ visible: visible,
58
+ customContent: true,
59
+ footer: null,
60
+ width: 610
61
+ }, /*#__PURE__*/_react["default"].createElement("div", {
62
+ className: preCls
63
+ }, /*#__PURE__*/_react["default"].createElement("img", {
64
+ className: preCls + "__rocket",
65
+ src: require("./img/rocket.png")
66
+ }), /*#__PURE__*/_react["default"].createElement("a", {
67
+ className: "tu-icon-canceled",
68
+ onClick: handleClose
69
+ }), /*#__PURE__*/_react["default"].createElement("div", {
70
+ className: preCls + "__update-list"
71
+ }, updates.map(function (upd) {
72
+ return /*#__PURE__*/_react["default"].createElement("div", {
73
+ className: preCls + "__update-item"
74
+ }, upd);
75
+ })), /*#__PURE__*/_react["default"].createElement("a", {
76
+ href: detailLink,
77
+ target: "_blank",
78
+ className: preCls + "__detail-btn"
79
+ }, "\u4E86\u89E3\u66F4\u591A")));
80
+ }
81
+
82
+ var _default = UpdateModal;
83
+ exports["default"] = _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.cancelGuide = void 0;
7
+
8
+ var _request = require("../../utils/request");
9
+
10
+ var cancelGuide = function cancelGuide(_ref) {
11
+ var type = _ref.type;
12
+ return (0, _request.rpost)("v1")("user/cancelUserGuide?type=" + type, {
13
+ type: type
14
+ });
15
+ };
16
+
17
+ exports.cancelGuide = cancelGuide;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.PreviewOptionsWrapper = exports.UploadStatus = exports.UploadProgress = exports.PreviewFileTitle = exports.PreviewMessageWrapper = exports.PreviewImageIcon = exports.PreviewImageWrapper = exports.PreviewContent = exports.UploadForm = exports.UploadFormContainer = void 0;
6
+ exports.UploadStatus = exports.UploadProgress = exports.UploadFormContainer = exports.UploadForm = exports.PreviewOptionsWrapper = exports.PreviewMessageWrapper = exports.PreviewImageWrapper = exports.PreviewImageIcon = exports.PreviewFileTitle = exports.PreviewContent = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9