@titaui/pc 1.7.97 → 1.7.98

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 (920) hide show
  1. package/lib/components/avatar/default.js +1 -1
  2. package/lib/components/avatar/icon-avatar/index.js +1 -1
  3. package/lib/components/avatar/name-avatar/index.js +1 -1
  4. package/lib/components/avatar/text-avatar/index.js +1 -1
  5. package/lib/components/button/default-button/index.js +4 -2
  6. package/lib/components/button/rect-btn/index.js +4 -2
  7. package/lib/components/button/text-btn/index.js +3 -1
  8. package/lib/components/cascader/index.js +4 -2
  9. package/lib/components/cascader/time.js +1 -1
  10. package/lib/components/change-okr-modal/Filter.js +59 -113
  11. package/lib/components/change-okr-modal/Item.js +21 -19
  12. package/lib/components/change-okr-modal/constant.js +190 -0
  13. package/lib/components/change-okr-modal/filterTab.js +3 -5
  14. package/lib/components/change-okr-modal/index.js +14 -14
  15. package/lib/components/checkbox/index.js +1 -1
  16. package/lib/components/common-share/index.js +1 -1
  17. package/lib/components/common-share/publishMblog.js +7 -5
  18. package/lib/components/communication/CommunicationAttachments.js +11 -9
  19. package/lib/components/communication/CommunicationRecord.js +8 -9
  20. package/lib/components/communication/ConvertUserName.js +3 -3
  21. package/lib/components/communication/index.js +9 -7
  22. package/lib/components/confidence/index.js +5 -3
  23. package/lib/components/create-okr-modal/constant.js +37 -11
  24. package/lib/components/create-okr-modal/createCycle.js +9 -7
  25. package/lib/components/create-okr-modal/createSuccessCmp.js +9 -7
  26. package/lib/components/create-okr-modal/fields/date-cycle.js +6 -4
  27. package/lib/components/create-okr-modal/fields/input-with-err-popup.js +1 -1
  28. package/lib/components/create-okr-modal/fields/o-new-name.js +15 -12
  29. package/lib/components/create-okr-modal/fields/okr-case.js +6 -4
  30. package/lib/components/create-okr-modal/fields/okr-classify.js +14 -9
  31. package/lib/components/create-okr-modal/fields/okr-create-suggest.js +6 -4
  32. package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +1 -1
  33. package/lib/components/create-okr-modal/fields/okr-parent.js +5 -3
  34. package/lib/components/create-okr-modal/fields/okr-type-detail.js +8 -6
  35. package/lib/components/create-okr-modal/fields/okr-type.js +7 -5
  36. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +9 -7
  37. package/lib/components/create-okr-modal/fields/okr-visibility.js +29 -22
  38. package/lib/components/create-okr-modal/index.js +31 -26
  39. package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +6 -4
  40. package/lib/components/create-okr-modal/kr-items/krDatas.js +8 -7
  41. package/lib/components/create-okr-modal/kr-items/krItem.js +6 -4
  42. package/lib/components/create-okr-modal/objectType.js +25 -21
  43. package/lib/components/create-okr-modal/request-api.js +2 -2
  44. package/lib/components/create-okr-modal/style.js +1 -1
  45. package/lib/components/create-okr-modal/utils/helper.js +2 -2
  46. package/lib/components/date-picker/BodyItem.js +3 -3
  47. package/lib/components/date-picker/CalendarBody.js +6 -4
  48. package/lib/components/date-picker/CalendarHeader.js +3 -3
  49. package/lib/components/date-picker/index.js +3 -3
  50. package/lib/components/date-range-picker/index.js +3 -3
  51. package/lib/components/delete-confirm-pop/ConfirmPop.js +18 -19
  52. package/lib/components/dialog/index.css +1 -5
  53. package/lib/components/dialog/index.js +10 -9
  54. package/lib/components/drawer/headerAction.js +3 -3
  55. package/lib/components/drawer/headerDrop.js +1 -1
  56. package/lib/components/drawer/index.js +7 -5
  57. package/lib/components/drawer/utils/useForceUpdate.js +1 -1
  58. package/lib/components/drawer-manager/drawerWrapper.js +1 -1
  59. package/lib/components/drawer-manager/index.js +4 -4
  60. package/lib/components/drawer-manager/utils/useForceUpdate.js +1 -1
  61. package/lib/components/drop-selector/index.js +3 -3
  62. package/lib/components/dynamic/advertise/index.js +1 -1
  63. package/lib/components/dynamic/advertise/util.js +2 -2
  64. package/lib/components/dynamic/components/dynamic-search-input/index.css +3 -1
  65. package/lib/components/dynamic/components/dynamic-search-input/index.js +8 -6
  66. package/lib/components/dynamic/components/first-level-tabs/index.js +1 -1
  67. package/lib/components/dynamic/components/title/index.js +1 -1
  68. package/lib/components/dynamic/constant.js +18 -16
  69. package/lib/components/dynamic/dynamic-item/components/header/index.js +15 -13
  70. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +5 -3
  71. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  72. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
  73. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -6
  74. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +7 -3
  75. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +7 -4
  76. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +12 -4
  77. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  78. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  79. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -8
  80. package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +10 -7
  81. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -2
  82. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +5 -3
  83. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +6 -4
  84. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +6 -4
  85. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +7 -5
  86. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +4 -2
  87. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +1 -1
  88. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +10 -7
  89. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +6 -4
  90. package/lib/components/dynamic/dynamic-item/index.js +5 -3
  91. package/lib/components/dynamic/dynamic-like-ranking/index.js +9 -7
  92. package/lib/components/dynamic/dynamic-like-ranking/item.js +3 -1
  93. package/lib/components/dynamic/dynamic-liking/index.js +4 -2
  94. package/lib/components/dynamic/dynamic-liking/item.js +4 -2
  95. package/lib/components/dynamic/dynamic-list/index.js +3 -1
  96. package/lib/components/dynamic/dynamic-topping/index.js +4 -2
  97. package/lib/components/dynamic/dynamic-topping/item.js +5 -3
  98. package/lib/components/dynamic/dynamic.js +5 -3
  99. package/lib/components/dynamic/index.js +1 -1
  100. package/lib/components/dynamic/my-team/index.js +5 -3
  101. package/lib/components/dynamic/online-broadcast/index.js +4 -2
  102. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +3 -1
  103. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +3 -1
  104. package/lib/components/dynamic/quick-operation/components/create-share/index.js +3 -1
  105. package/lib/components/dynamic/quick-operation/components/create-task/index.js +4 -2
  106. package/lib/components/dynamic/quick-operation/index.js +4 -2
  107. package/lib/components/dynamic/request-api.js +2 -2
  108. package/lib/components/dynamic/util.js +15 -13
  109. package/lib/components/e-priority/index.js +8 -6
  110. package/lib/components/eReport/eReportListEmpty.js +3 -3
  111. package/lib/components/eReport/eReportLists/reportList.js +12 -10
  112. package/lib/components/eReport/eReportShare/index.js +7 -5
  113. package/lib/components/eReport/eReportShare/toast/index.js +6 -4
  114. package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
  115. package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
  116. package/lib/components/edit-kr-wight/utils.js +2 -2
  117. package/lib/components/emotions-selector/selector-content.js +3 -3
  118. package/lib/components/emotions-selector/selector-pop.js +3 -3
  119. package/lib/components/ereport-list/index.js +10 -8
  120. package/lib/components/error-boundary/index.js +3 -3
  121. package/lib/components/file-list/components/single-file/index.js +6 -4
  122. package/lib/components/file-list/index.js +1 -1
  123. package/lib/components/firework/index.js +2 -2
  124. package/lib/components/follower-visitor/index.js +1 -1
  125. package/lib/components/form/form-fields/department/department-input.js +3 -1
  126. package/lib/components/form/form-fields/department/index.js +1 -1
  127. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  128. package/lib/components/form/form-fields/duties/duties-input.js +3 -1
  129. package/lib/components/form/form-fields/duties/index.js +1 -1
  130. package/lib/components/form/form-fields/group/index.js +1 -1
  131. package/lib/components/form/form-fields/input/index.css +5 -19
  132. package/lib/components/form/form-fields/input/index.js +9 -10
  133. package/lib/components/form/form-fields/password/index.css +2 -2
  134. package/lib/components/form/form-fields/password/index.js +1 -1
  135. package/lib/components/form/form-fields/radios/index.js +2 -2
  136. package/lib/components/form/form-fields/textarea/index.js +1 -1
  137. package/lib/components/form/form-fields/user/index.js +1 -1
  138. package/lib/components/form/form-fields/user/user-input.js +3 -1
  139. package/lib/components/form/index.js +3 -3
  140. package/lib/components/grid-layout/commen-components/card-title.js +1 -1
  141. package/lib/components/grid-layout/commen-components/data-item.js +1 -1
  142. package/lib/components/grid-layout/commen-components/empty-backgrounds.js +1 -1
  143. package/lib/components/grid-layout/commen-components/scroll-tips.js +1 -1
  144. package/lib/components/grid-layout/essay-component/index.js +1 -1
  145. package/lib/components/grid-layout/near-visitors/index.js +1 -1
  146. package/lib/components/grid-layout/near-visitors/visitor.js +1 -1
  147. package/lib/components/grid-layout/okr-align/index.js +5 -3
  148. package/lib/components/grid-layout/okr-progress/index.js +4 -2
  149. package/lib/components/grid-layout/okr-target/index.js +12 -10
  150. package/lib/components/grid-layout/over-view/index.js +5 -3
  151. package/lib/components/grid-layout/personal-info/index.js +1 -1
  152. package/lib/components/grid-layout/sub-employee-okr/index.js +5 -3
  153. package/lib/components/grid-layout/sub-employee-okr/person-okr.js +1 -1
  154. package/lib/components/grid-layout/util/click-link.js +2 -2
  155. package/lib/components/grid-layout/week-task/index.js +7 -5
  156. package/lib/components/grid-layout/words-cloud/index.js +1 -1
  157. package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
  158. package/lib/components/grid-page/near-visitors/visitor.js +1 -1
  159. package/lib/components/grid-page/personal-info/index.js +1 -1
  160. package/lib/components/help-card/index.js +1 -1
  161. package/lib/components/img-viewer/index.js +6 -4
  162. package/lib/components/mblog/components/ConfirmPop.js +6 -4
  163. package/lib/components/mblog/components/MblogAction.js +16 -19
  164. package/lib/components/mblog/components/MblogContent.js +3 -3
  165. package/lib/components/mblog/index.js +26 -24
  166. package/lib/components/menus/components/drag-resize/index.js +7 -3
  167. package/lib/components/menus/components/flip-menu-card/flip-back-header.js +3 -1
  168. package/lib/components/menus/components/flip-menu-card/index.js +1 -1
  169. package/lib/components/menus/components/menu-card/index.js +3 -3
  170. package/lib/components/menus/components/menu-tree/tree-node/assess-manage.js +6 -1
  171. package/lib/components/menus/components/menu-tree/tree-node/assess-template.js +6 -1
  172. package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +1 -1
  173. package/lib/components/menus/components/menu-tree/tree-node/company-all.js +1 -1
  174. package/lib/components/menus/components/menu-tree/tree-node/compony/index.js +1 -1
  175. package/lib/components/menus/components/menu-tree/tree-node/depart/index.js +1 -1
  176. package/lib/components/menus/components/menu-tree/tree-node/follower/index.js +1 -1
  177. package/lib/components/menus/components/menu-tree/tree-node/index.css +2 -0
  178. package/lib/components/menus/components/menu-tree/tree-node/no-follower.js +3 -1
  179. package/lib/components/menus/components/menu-tree/tree-node/user/index.js +1 -1
  180. package/lib/components/menus/components/menu-tree/tree-node/user-concern.js +1 -1
  181. package/lib/components/menus/components/search-colleague/index.js +2 -2
  182. package/lib/components/menus/export-modules/appraisal-menus/index.js +11 -4
  183. package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +1 -1
  184. package/lib/components/menus/export-modules/appraisal-menus/menus.js +5 -3
  185. package/lib/components/menus/export-modules/manage-menus/handle-highlight.js +1 -1
  186. package/lib/components/menus/export-modules/manage-menus/index.css +0 -12
  187. package/lib/components/menus/export-modules/manage-menus/index.js +38 -5
  188. package/lib/components/menus/export-modules/okr-menus/depart-menus/helper.js +2 -2
  189. package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +5 -3
  190. package/lib/components/menus/export-modules/okr-menus/index.js +7 -2
  191. package/lib/components/menus/export-modules/okr-menus/menu-highlight.js +1 -1
  192. package/lib/components/menus/export-modules/okr-menus/menus.js +4 -2
  193. package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +1 -1
  194. package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +1 -1
  195. package/lib/components/menus/i18n.js +39 -47
  196. package/lib/components/nav-top/components/menu/index.js +1 -1
  197. package/lib/components/nav-top/components/user-message/components/inform/index.js +1 -1
  198. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
  199. package/lib/components/nav-top/components/user-message/components/red-pack/index.js +1 -1
  200. package/lib/components/nav-top/components/user-message/components/remind/index.js +1 -1
  201. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +3 -1
  202. package/lib/components/nav-top/components/user-message/components/reply/index.js +1 -1
  203. package/lib/components/nav-top/components/user-message/components/todos/index.js +1 -1
  204. package/lib/components/nav-top/components/user-message/index.js +1 -1
  205. package/lib/components/nav-top/components/user-message/msg/index.js +6 -4
  206. package/lib/components/nav-top/components/user-message/utils.js +3 -1
  207. package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.css +22 -1
  208. package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +45 -4
  209. package/lib/components/nav-top/components/user-own-menu/utils.js +60 -26
  210. package/lib/components/nav-top/components/version/index.js +4 -2
  211. package/lib/components/nav-top/index.js +1 -1
  212. package/lib/components/nav-top/request.apis.js +8 -2
  213. package/lib/components/okr-detail/auth.js +3 -3
  214. package/lib/components/okr-detail/base-info/base-info.js +15 -13
  215. package/lib/components/okr-detail/base-info/o-desc/index.js +9 -7
  216. package/lib/components/okr-detail/base-info/other-infos/classify/index.js +16 -11
  217. package/lib/components/okr-detail/base-info/other-infos/common/border-wrapper/index.js +1 -1
  218. package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -2
  219. package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +7 -5
  220. package/lib/components/okr-detail/base-info/other-infos/other-infos.js +3 -3
  221. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
  222. package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +13 -11
  223. package/lib/components/okr-detail/base-info/person/index.js +4 -2
  224. package/lib/components/okr-detail/base-info/util.js +2 -2
  225. package/lib/components/okr-detail/components/ao-nice/index.js +3 -3
  226. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
  227. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +7 -5
  228. package/lib/components/okr-detail/components/base-okr-type/index.js +2 -2
  229. package/lib/components/okr-detail/components/base-okr-type/object-type.js +25 -21
  230. package/lib/components/okr-detail/components/editable-input/index.js +1 -1
  231. package/lib/components/okr-detail/components/header/edit-name.js +6 -4
  232. package/lib/components/okr-detail/components/header/index.js +4 -2
  233. package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
  234. package/lib/components/okr-detail/components/header/o-cycle.js +1 -1
  235. package/lib/components/okr-detail/components/header/o-name.js +3 -1
  236. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  237. package/lib/components/okr-detail/components/o-classify.js +7 -5
  238. package/lib/components/okr-detail/components/o-progress-update/index.js +6 -4
  239. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +13 -11
  240. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +9 -6
  241. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +3 -1
  242. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +8 -6
  243. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +6 -4
  244. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +9 -7
  245. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +12 -10
  246. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +12 -10
  247. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +9 -7
  248. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +9 -7
  249. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +18 -16
  250. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +1 -1
  251. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +6 -4
  252. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +3 -3
  253. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +13 -9
  254. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +1 -1
  255. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +14 -10
  256. package/lib/components/okr-detail/components/okr-type.js +6 -4
  257. package/lib/components/okr-detail/components/score/index.js +3 -1
  258. package/lib/components/okr-detail/detail-footer/index.js +7 -5
  259. package/lib/components/okr-detail/detail-header/actions.js +15 -13
  260. package/lib/components/okr-detail/detail-header/confirm.js +5 -3
  261. package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +21 -17
  262. package/lib/components/okr-detail/detail-header/index.js +11 -9
  263. package/lib/components/okr-detail/e-list/index.js +1 -1
  264. package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +8 -6
  265. package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +11 -9
  266. package/lib/components/okr-detail/e-list/search-form/fields/e-user.js +3 -1
  267. package/lib/components/okr-detail/e-list/search-form/index.js +7 -5
  268. package/lib/components/okr-detail/e-list/util.js +7 -5
  269. package/lib/components/okr-detail/index.js +11 -9
  270. package/lib/components/okr-detail/okr-list/add-parent-okr.js +4 -2
  271. package/lib/components/okr-detail/okr-list/create-kr-item/heart.js +1 -1
  272. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +9 -7
  273. package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
  274. package/lib/components/okr-detail/okr-list/drag-order-kr.js +2 -2
  275. package/lib/components/okr-detail/okr-list/empty/index.js +5 -3
  276. package/lib/components/okr-detail/okr-list/index.js +12 -8
  277. package/lib/components/okr-detail/okr-list/warp-parent-okr.js +3 -1
  278. package/lib/components/okr-detail/request-apis.js +5 -3
  279. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
  280. package/lib/components/okr-detail/schedule/components/o-progress/index.js +19 -17
  281. package/lib/components/okr-detail/schedule/schedule.js +1 -1
  282. package/lib/components/okr-detail/schedule/util.js +3 -1
  283. package/lib/components/okr-filter-drawer/filter-form.js +71 -58
  284. package/lib/components/okr-filter-drawer/index.css +7 -3
  285. package/lib/components/okr-filter-drawer/index.js +5 -9
  286. package/lib/components/okr-flow/child-node/fields/creator.js +1 -1
  287. package/lib/components/okr-flow/child-node/index.js +1 -1
  288. package/lib/components/okr-flow/child-node/work-node.js +19 -15
  289. package/lib/components/okr-flow/empty/index.js +3 -1
  290. package/lib/components/okr-flow/export-modal/index.js +5 -3
  291. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +3 -3
  292. package/lib/components/okr-flow/mini-map/index.js +6 -4
  293. package/lib/components/okr-flow/mini-map/map.js +1 -1
  294. package/lib/components/okr-flow/mini-map/mini-node.js +1 -1
  295. package/lib/components/okr-flow/mini-map/utils.js +2 -2
  296. package/lib/components/okr-flow/okr-map/index.js +1 -1
  297. package/lib/components/okr-flow/open-data/index.js +3 -3
  298. package/lib/components/okr-flow/request-apis.js +2 -2
  299. package/lib/components/okr-flow/root-node/index.js +1 -1
  300. package/lib/components/okr-period-selector/index.js +1 -1
  301. package/lib/components/okr-period-selector/select-cycle.js +9 -7
  302. package/lib/components/okr-progress/components/kr-progress/index.js +3 -1
  303. package/lib/components/okr-progress/components/o-progress/index.js +19 -17
  304. package/lib/components/okr-progress/components/o-progress-update/index.js +6 -4
  305. package/lib/components/okr-progress/okr-progress/index.js +1 -1
  306. package/lib/components/okr-progress/request-apis.js +5 -3
  307. package/lib/components/okr-progress/util.js +3 -1
  308. package/lib/components/okr-progress-detail/index.js +11 -8
  309. package/lib/components/okr-progress-detail/utils.js +5 -3
  310. package/lib/components/okr-progress-modal/helper.js +127 -82
  311. package/lib/components/okr-progress-modal/index.js +15 -38
  312. package/lib/components/okr-progress-modal/textarea/index.js +1 -1
  313. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +23 -21
  314. package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
  315. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
  316. package/lib/components/okr-review/ReviewPop/index.js +13 -11
  317. package/lib/components/okr-review/components/ReviewItem/index.js +8 -6
  318. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +12 -10
  319. package/lib/components/okr-review/index.js +9 -7
  320. package/lib/components/okr-share/index.js +1 -1
  321. package/lib/components/okr-share/pink-card/card.js +3 -1
  322. package/lib/components/okr-share/publishMblog.js +7 -5
  323. package/lib/components/okr-share/shareCardSelector.js +5 -3
  324. package/lib/components/okrcase-library/index.js +5 -3
  325. package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/index.js +1 -1
  326. package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +7 -5
  327. package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +4 -2
  328. package/lib/components/okrcase-library/okrcases-components/caseLibrary-nav.js +1 -1
  329. package/lib/components/okrcase-library/okrcases-components/caseLibray-header.js +5 -3
  330. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +5 -3
  331. package/lib/components/okrcase-library/server/network.js +2 -2
  332. package/lib/components/okrcase-library-card/index.js +7 -5
  333. package/lib/components/operation-records/OperationRecordItem.js +3 -3
  334. package/lib/components/operation-records/index.js +6 -4
  335. package/lib/components/pagination/locale/en_US.js +22 -0
  336. package/lib/components/pagination/locale/zh_CN.js +22 -0
  337. package/lib/components/pagination/pagination.js +11 -1
  338. package/lib/components/password-input/index.js +5 -3
  339. package/lib/components/period-selector/common.js +26 -11
  340. package/lib/components/period-selector/components/button/index.js +1 -1
  341. package/lib/components/period-selector/components/selector/index.js +48 -21
  342. package/lib/components/period-selector/helper/index.js +2 -2
  343. package/lib/components/period-selector/index.js +1 -1
  344. package/lib/components/period-selector/mockData.js +97 -83
  345. package/lib/components/photo-card/components/card/index.js +7 -5
  346. package/lib/components/photo-card/index.js +5 -3
  347. package/lib/components/point-demo/constant.js +74 -0
  348. package/lib/components/point-demo/drop-down-box/index.js +4 -2
  349. package/lib/components/point-demo/index.js +17 -69
  350. package/lib/components/point-demo/input/index.js +3 -3
  351. package/lib/components/point-demo/point-demo.js +1 -1
  352. package/lib/components/point-demo/popup/index.js +1 -1
  353. package/lib/components/popup/index.js +1 -1
  354. package/lib/components/praise-record/PraiseRecordItem.js +3 -3
  355. package/lib/components/praise-record/index.js +7 -5
  356. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -6
  357. package/lib/components/publish-dynamic-modal/requist-api.js +2 -2
  358. package/lib/components/radio/radio.js +1 -1
  359. package/lib/components/radio/radioGroup.js +2 -2
  360. package/lib/components/range-picker-pop/index.js +5 -5
  361. package/lib/components/range-selector-pop/RangeList.js +8 -6
  362. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  363. package/lib/components/scrollbar/simplebar/index.js +2 -0
  364. package/lib/components/scrollbar/simplebar/scrollbar-width.js +2 -0
  365. package/lib/components/scrollbar/simplebar/simplebar.js +3 -3
  366. package/lib/components/scrollbar/simplebar-react.js +3 -3
  367. package/lib/components/search-dropdown/index.js +1 -1
  368. package/lib/components/search-input/index.js +3 -3
  369. package/lib/components/search-key-handle/index.js +1 -1
  370. package/lib/components/select/Option.js +5 -5
  371. package/lib/components/select/index.js +5 -5
  372. package/lib/components/select-layer/index.js +4 -2
  373. package/lib/components/select-tags/index.js +4 -2
  374. package/lib/components/selector-input/index.js +4 -2
  375. package/lib/components/slider-input/index.js +4 -2
  376. package/lib/components/stateless-dropdown/stateless-dropdown.js +1 -1
  377. package/lib/components/status-time/index.js +6 -4
  378. package/lib/components/table/index.css +0 -4
  379. package/lib/components/table/index.js +5 -6
  380. package/lib/components/tabs/index.js +1 -1
  381. package/lib/components/task-relation-modal/index.js +9 -7
  382. package/lib/components/task-relation-modal/radio.js +1 -1
  383. package/lib/components/task-relation-modal/request-api.js +2 -2
  384. package/lib/components/task-relation-modal/search/category-select.js +7 -5
  385. package/lib/components/task-relation-modal/search/okr-status-select.js +7 -5
  386. package/lib/components/task-relation-modal/search/okr-type-select.js +9 -7
  387. package/lib/components/task-relation-modal/search/principal.js +5 -3
  388. package/lib/components/task-relation-modal/search/relation.js +9 -7
  389. package/lib/components/task-relation-modal/tree/category-tree/index.js +7 -5
  390. package/lib/components/task-relation-modal/tree/category-tree/search-form.js +4 -2
  391. package/lib/components/task-relation-modal/tree/okr-tree/index.js +9 -7
  392. package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +6 -4
  393. package/lib/components/task-relation-modal/tree/work-tree/index.js +10 -8
  394. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +4 -2
  395. package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -1
  396. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +1 -1
  397. package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +6 -4
  398. package/lib/components/task-relation-modal/tree-node/o-node/index.js +1 -1
  399. package/lib/components/task-relation-modal/tree-node/work-node/index.js +5 -3
  400. package/lib/components/tita-chart/charts/liquid-ball.js +4 -2
  401. package/lib/components/tita-chart/charts/pie.js +2 -2
  402. package/lib/components/tita-chart/charts/words-cloud.js +10 -8
  403. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  404. package/lib/components/tita-chart/hooks/useChart.js +3 -3
  405. package/lib/components/tita-chart/plots/liquid/index.js +1 -1
  406. package/lib/components/tita-chart/plots/pie/index.js +1 -1
  407. package/lib/components/tita-chart/plots/wordscloud/index.js +1 -1
  408. package/lib/components/toast/index.js +1 -1
  409. package/lib/components/tooltip/tooltip-text/index.js +1 -1
  410. package/lib/components/update-modal/index.js +4 -2
  411. package/lib/components/upload/components/uploadedPreview.js +11 -9
  412. package/lib/components/upload/index.js +10 -8
  413. package/lib/components/upvote/attitude.js +31 -25
  414. package/lib/components/upvote/index.js +10 -8
  415. package/lib/components/upvote/selector.js +2 -2
  416. package/lib/components/upvote/upvoteListModal.js +4 -2
  417. package/lib/components/user-selector/action-btns/btn-cancel.js +3 -1
  418. package/lib/components/user-selector/action-btns/btn-ok.js +3 -1
  419. package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
  420. package/lib/components/user-selector/category-selector-panel/group-tree.js +1 -1
  421. package/lib/components/user-selector/category-selector-panel/index.js +7 -22
  422. package/lib/components/user-selector/constant.js +29 -0
  423. package/lib/components/user-selector/empty/group.js +3 -1
  424. package/lib/components/user-selector/empty/index.js +3 -1
  425. package/lib/components/user-selector/export-modules/depart-search-selector/index.js +1 -1
  426. package/lib/components/user-selector/export-modules/duties-selector/index.js +3 -3
  427. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +4 -2
  428. package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +1 -1
  429. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +1 -1
  430. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
  431. package/lib/components/user-selector/export-modules/group-selector/index.js +1 -1
  432. package/lib/components/user-selector/export-modules/group-selector/searched-panel.js +1 -1
  433. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +4 -2
  434. package/lib/components/user-selector/export-modules/single-selector/index.js +1 -1
  435. package/lib/components/user-selector/searched-panel/index.js +6 -4
  436. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  437. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  438. package/lib/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +1 -1
  439. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +1 -1
  440. package/lib/components/user-selector/selected-panel/index.js +9 -7
  441. package/lib/components/user-selector/utils.js +2 -2
  442. package/lib/components/version-change-modal/constant.js +35 -29
  443. package/lib/components/version-change-modal/index.js +2 -2
  444. package/lib/components/viewer/ImageListRender.js +5 -5
  445. package/lib/components/viewer/index.js +5 -5
  446. package/lib/components/weekly-report/card.js +1 -1
  447. package/lib/components/weekly-report/index.js +5 -3
  448. package/lib/components/weekly-report/statistics.js +3 -1
  449. package/lib/components/word-cloud/index.js +1 -1
  450. package/lib/components-v1/animate/AnimateChild.js +3 -3
  451. package/lib/components-v1/animate/animate.js +3 -3
  452. package/lib/components-v1/avatar/index.js +3 -3
  453. package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
  454. package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
  455. package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
  456. package/lib/components-v1/buttonv2/style/style.js +1 -1
  457. package/lib/components-v1/confirm/index.js +7 -5
  458. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  459. package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
  460. package/lib/components-v1/input/Input.js +3 -3
  461. package/lib/components-v1/input/InputNumber.js +3 -3
  462. package/lib/components-v1/placement/placement.js +3 -3
  463. package/lib/components-v1/placement/placementInner.js +5 -5
  464. package/lib/components-v1/pop/Pop.js +3 -3
  465. package/lib/components-v1/pop/PopInner.js +5 -5
  466. package/lib/components-v1/popConfirm/index.js +5 -3
  467. package/lib/components-v1/portals/Portals.js +3 -3
  468. package/lib/components-v1/progress/CircleProgress.js +4 -4
  469. package/lib/components-v1/progress/LineProgress.js +3 -3
  470. package/lib/components-v1/progress/index.js +3 -3
  471. package/lib/components-v1/radio/radio.js +3 -3
  472. package/lib/components-v1/radio/radioGroup.js +4 -4
  473. package/lib/components-v1/search/cache.js +3 -3
  474. package/lib/components-v1/search/index.js +8 -8
  475. package/lib/components-v1/select/Option.js +5 -5
  476. package/lib/components-v1/select/index.js +5 -5
  477. package/lib/components-v1/tabs/index.js +3 -3
  478. package/lib/components-v1/textarea/index.js +3 -3
  479. package/lib/components-v1/transition/index.js +3 -3
  480. package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
  481. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +6 -4
  482. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +5 -5
  483. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
  484. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
  485. package/lib/components-v1/userSelector/components/MultiMode/index.js +11 -9
  486. package/lib/components-v1/userSelector/components/SearchBar.js +6 -4
  487. package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
  488. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  489. package/lib/components-v1/userSelector/index.js +8 -6
  490. package/lib/components-v1/utils/animate/animate.js +1 -1
  491. package/lib/index.js +0 -8
  492. package/lib/pages/aha2021/index.js +1 -1
  493. package/lib/pages/appointment-demo/drop-down-box/index.js +4 -2
  494. package/lib/pages/appointment-demo/index.js +19 -17
  495. package/lib/pages/appointment-demo/input/index.js +3 -3
  496. package/lib/pages/appointment-demo/popup/index.js +1 -1
  497. package/lib/pages/dynamic/index.js +1 -1
  498. package/lib/pages/group-management/components/checkbox/index.js +1 -1
  499. package/lib/pages/group-management/components/input-form/index.js +3 -3
  500. package/lib/pages/group-management/components/openData/index.js +3 -3
  501. package/lib/pages/group-management/components/table/index.js +1 -1
  502. package/lib/pages/group-management/groupInterface.js +2 -2
  503. package/lib/pages/group-management/page-view/empty.js +2 -2
  504. package/lib/pages/group-management/page-view/group-empty.js +1 -1
  505. package/lib/pages/group-management/page-view/importGroupStaff/index.js +7 -5
  506. package/lib/pages/group-management/page-view/index.js +1 -1
  507. package/lib/pages/group-management/page-view/loading/index.js +1 -1
  508. package/lib/pages/group-management/table/index.js +5 -3
  509. package/lib/pages/group-management/tree/add-group-dialog/index.js +5 -3
  510. package/lib/pages/group-management/tree/delete-group-dialog/index.js +5 -3
  511. package/lib/pages/group-management/tree/edit-group-dialog/index.js +5 -3
  512. package/lib/pages/group-management/tree/group-form/index.js +5 -3
  513. package/lib/pages/group-management/tree/index.js +1 -1
  514. package/lib/pages/group-management/tree/operation-panel.js +5 -3
  515. package/lib/pages/group-management/tree/trigger-render.js +4 -2
  516. package/lib/pages/home/components/data-list/index.js +12 -10
  517. package/lib/pages/home/components/data-list/nav-selector/index.js +13 -11
  518. package/lib/pages/home/components/data-list/table/columns/index.js +16 -14
  519. package/lib/pages/home/components/data-list/table/columns/okrName.js +1 -1
  520. package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +8 -6
  521. package/lib/pages/home/components/data-list/table/index.js +1 -1
  522. package/lib/pages/home/components/data-list/table/utils-function.js +3 -1
  523. package/lib/pages/home/components/guide/index.js +1 -1
  524. package/lib/pages/home/components/header/index.js +1 -1
  525. package/lib/pages/home-page-data-list/index.js +12 -10
  526. package/lib/pages/like-ranking/column.js +8 -6
  527. package/lib/pages/like-ranking/filter-buttons/department.js +4 -2
  528. package/lib/pages/like-ranking/filter-buttons/group.js +3 -1
  529. package/lib/pages/like-ranking/filter-buttons/modular.js +21 -15
  530. package/lib/pages/like-ranking/filter-buttons/name.js +4 -2
  531. package/lib/pages/like-ranking/filter-buttons/timer.js +4 -2
  532. package/lib/pages/like-ranking/index.js +12 -10
  533. package/lib/pages/new-okr-list/header/comments.js +4 -2
  534. package/lib/pages/new-okr-list/header/create-okr.js +4 -2
  535. package/lib/pages/new-okr-list/header/depart-title.js +4 -2
  536. package/lib/pages/new-okr-list/header/filter.js +4 -2
  537. package/lib/pages/new-okr-list/header/index.js +4 -2
  538. package/lib/pages/new-okr-list/header/relation-title.js +4 -2
  539. package/lib/pages/new-okr-list/index.js +7 -5
  540. package/lib/pages/new-okr-list/init-cycle-setting.js +1 -1
  541. package/lib/pages/new-okr-list/keyword-search/index.js +4 -2
  542. package/lib/pages/new-okr-list/request-api.js +2 -2
  543. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +17 -15
  544. package/lib/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +6 -4
  545. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -3
  546. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +7 -5
  547. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  548. package/lib/pages/okr-map/level2-search/group.js +3 -3
  549. package/lib/pages/okr-map/level2-search/index.js +1 -1
  550. package/lib/pages/okr-map/level2-search/level2-input.js +3 -1
  551. package/lib/pages/okr-map/level2-search/user.js +1 -1
  552. package/lib/pages/okr-map/no-okr/index.js +3 -1
  553. package/lib/pages/okr-map/number-select/index.js +3 -1
  554. package/lib/pages/okr-map/open-data/index.js +3 -3
  555. package/lib/pages/okr-map/share-dialog/index.js +9 -7
  556. package/lib/pages/okr-map/unsupport-ie/index.js +1 -1
  557. package/lib/pages/personal-info/components/base-info/index.css +1 -36
  558. package/lib/pages/personal-info/components/base-info/index.js +97 -27
  559. package/lib/pages/personal-info/index.js +1 -3
  560. package/lib/utils/auth.js +3 -3
  561. package/lib/utils/date-test-change.js +5 -3
  562. package/lib/utils/format-time.js +5 -3
  563. package/lib/utils/getLocale.js +12 -0
  564. package/lib/utils/local-storage.js +1 -1
  565. package/lib/utils/open-data.js +3 -3
  566. package/lib/utils/request-v1.js +2 -2
  567. package/lib/utils/roundWeight.js +2 -2
  568. package/package.json +2 -3
  569. package/src/components/avatar/icon-avatar/index.tsx +2 -2
  570. package/src/components/button/default-button/index.tsx +3 -2
  571. package/src/components/button/rect-btn/index.tsx +2 -1
  572. package/src/components/button/text-btn/index.tsx +2 -1
  573. package/src/components/cascader/index.tsx +2 -1
  574. package/src/components/change-okr-modal/Filter.tsx +49 -109
  575. package/src/components/change-okr-modal/Item.tsx +20 -14
  576. package/src/components/change-okr-modal/constant.ts +160 -0
  577. package/src/components/change-okr-modal/filterTab.tsx +0 -2
  578. package/src/components/change-okr-modal/index.tsx +8 -9
  579. package/src/components/common-share/publishMblog.tsx +3 -2
  580. package/src/components/communication/CommunicationAttachments.tsx +7 -6
  581. package/src/components/communication/CommunicationRecord.tsx +6 -8
  582. package/src/components/communication/index.tsx +5 -4
  583. package/src/components/confidence/index.tsx +3 -2
  584. package/src/components/create-okr-modal/constant.ts +21 -12
  585. package/src/components/create-okr-modal/createCycle.tsx +5 -6
  586. package/src/components/create-okr-modal/createSuccessCmp.tsx +7 -6
  587. package/src/components/create-okr-modal/fields/date-cycle.tsx +4 -3
  588. package/src/components/create-okr-modal/fields/o-new-name.tsx +13 -10
  589. package/src/components/create-okr-modal/fields/okr-case.tsx +3 -2
  590. package/src/components/create-okr-modal/fields/okr-classify.tsx +11 -7
  591. package/src/components/create-okr-modal/fields/okr-create-suggest.tsx +5 -4
  592. package/src/components/create-okr-modal/fields/okr-parent.tsx +4 -3
  593. package/src/components/create-okr-modal/fields/okr-type-detail.tsx +6 -5
  594. package/src/components/create-okr-modal/fields/okr-type.tsx +6 -5
  595. package/src/components/create-okr-modal/fields/okr-visibility-detail.tsx +7 -6
  596. package/src/components/create-okr-modal/fields/okr-visibility.tsx +19 -14
  597. package/src/components/create-okr-modal/index.tsx +31 -27
  598. package/src/components/create-okr-modal/kr-items/kr-item-weight.tsx +2 -1
  599. package/src/components/create-okr-modal/kr-items/krDatas.tsx +4 -3
  600. package/src/components/create-okr-modal/kr-items/krItem.tsx +2 -1
  601. package/src/components/create-okr-modal/objectType.tsx +14 -11
  602. package/src/components/create-okr-modal/style.ts +1 -1
  603. package/src/components/date-picker/CalendarBody.js +8 -7
  604. package/src/components/delete-confirm-pop/ConfirmPop.tsx +7 -17
  605. package/src/components/dialog/index.js +4 -4
  606. package/src/components/dialog/index.scss +1 -4
  607. package/src/components/drawer/index.tsx +3 -2
  608. package/src/components/drawer-manager/index.tsx +1 -1
  609. package/src/components/dynamic/components/dynamic-search-input/index.scss +3 -1
  610. package/src/components/dynamic/components/dynamic-search-input/index.tsx +6 -5
  611. package/src/components/dynamic/constant.ts +23 -21
  612. package/src/components/dynamic/dynamic-item/components/header/index.tsx +13 -12
  613. package/src/components/dynamic/dynamic-item/dynamic-align/index.tsx +3 -2
  614. package/src/components/dynamic/dynamic-item/dynamic-assessment/index.tsx +3 -2
  615. package/src/components/dynamic/dynamic-item/dynamic-create-o/index.tsx +6 -5
  616. package/src/components/dynamic/dynamic-item/dynamic-kr/index.tsx +4 -2
  617. package/src/components/dynamic/dynamic-item/dynamic-milestone/constant.ts +6 -4
  618. package/src/components/dynamic/dynamic-item/dynamic-milestone/index.tsx +16 -3
  619. package/src/components/dynamic/dynamic-item/dynamic-progress/index.tsx +8 -7
  620. package/src/components/dynamic/dynamic-item/dynamic-project/constant.ts +9 -7
  621. package/src/components/dynamic/dynamic-item/dynamic-project/index.tsx +2 -1
  622. package/src/components/dynamic/dynamic-item/dynamic-relative/index.tsx +3 -2
  623. package/src/components/dynamic/dynamic-item/dynamic-replay/index.tsx +4 -3
  624. package/src/components/dynamic/dynamic-item/dynamic-report/index.tsx +4 -3
  625. package/src/components/dynamic/dynamic-item/dynamic-reward/index.tsx +5 -4
  626. package/src/components/dynamic/dynamic-item/dynamic-share/index.tsx +2 -1
  627. package/src/components/dynamic/dynamic-item/dynamic-task/constant.ts +9 -7
  628. package/src/components/dynamic/dynamic-item/dynamic-task/index.tsx +4 -3
  629. package/src/components/dynamic/dynamic-item/index.tsx +3 -2
  630. package/src/components/dynamic/dynamic-like-ranking/index.tsx +7 -6
  631. package/src/components/dynamic/dynamic-like-ranking/item.tsx +2 -2
  632. package/src/components/dynamic/dynamic-liking/index.tsx +2 -1
  633. package/src/components/dynamic/dynamic-liking/item.tsx +3 -2
  634. package/src/components/dynamic/dynamic-list/index.tsx +2 -1
  635. package/src/components/dynamic/dynamic-topping/index.tsx +2 -1
  636. package/src/components/dynamic/dynamic-topping/item.tsx +3 -2
  637. package/src/components/dynamic/dynamic.tsx +3 -2
  638. package/src/components/dynamic/my-team/index.tsx +3 -2
  639. package/src/components/dynamic/online-broadcast/index.tsx +3 -2
  640. package/src/components/dynamic/quick-operation/components/create-announcement/index.tsx +2 -1
  641. package/src/components/dynamic/quick-operation/components/create-okr/index.tsx +3 -2
  642. package/src/components/dynamic/quick-operation/components/create-share/index.tsx +2 -1
  643. package/src/components/dynamic/quick-operation/components/create-task/index.tsx +2 -1
  644. package/src/components/dynamic/quick-operation/index.tsx +2 -1
  645. package/src/components/dynamic/util.ts +14 -13
  646. package/src/components/e-priority/index.js +6 -5
  647. package/src/components/eReport/eReportLists/reportList.tsx +8 -7
  648. package/src/components/eReport/eReportShare/index.tsx +3 -2
  649. package/src/components/eReport/eReportShare/toast/index.tsx +2 -1
  650. package/src/components/edit-kr-wight/EditKrWightModal.tsx +5 -4
  651. package/src/components/ereport-list/index.tsx +6 -5
  652. package/src/components/file-list/components/single-file/index.tsx +4 -3
  653. package/src/components/form/form-fields/department/department-input.tsx +2 -1
  654. package/src/components/form/form-fields/duties/duties-input.tsx +2 -1
  655. package/src/components/form/form-fields/input/index.scss +5 -16
  656. package/src/components/form/form-fields/input/index.tsx +3 -6
  657. package/src/components/form/form-fields/password/index.scss +2 -2
  658. package/src/components/form/form-fields/radios/index.tsx +2 -2
  659. package/src/components/form/form-fields/user/user-input.tsx +2 -1
  660. package/src/components/grid-layout/okr-align/index.tsx +3 -2
  661. package/src/components/grid-layout/okr-progress/index.tsx +2 -1
  662. package/src/components/grid-layout/okr-target/index.tsx +10 -9
  663. package/src/components/grid-layout/over-view/index.tsx +3 -3
  664. package/src/components/grid-layout/sub-employee-okr/index.tsx +3 -2
  665. package/src/components/grid-layout/week-task/index.tsx +5 -4
  666. package/src/components/img-viewer/index.tsx +4 -3
  667. package/src/components/mblog/components/ConfirmPop.tsx +2 -1
  668. package/src/components/mblog/components/MblogAction.tsx +14 -15
  669. package/src/components/mblog/index.tsx +17 -26
  670. package/src/components/menus/components/drag-resize/index.tsx +5 -2
  671. package/src/components/menus/components/flip-menu-card/flip-back-header.tsx +2 -1
  672. package/src/components/menus/components/menu-tree/tree-node/assess-manage.tsx +4 -1
  673. package/src/components/menus/components/menu-tree/tree-node/assess-template.tsx +4 -1
  674. package/src/components/menus/components/menu-tree/tree-node/index.scss +2 -0
  675. package/src/components/menus/components/menu-tree/tree-node/no-follower.tsx +2 -1
  676. package/src/components/menus/components/search-colleague/index.tsx +1 -1
  677. package/src/components/menus/export-modules/appraisal-menus/index.tsx +8 -3
  678. package/src/components/menus/export-modules/appraisal-menus/menus.ts +3 -2
  679. package/src/components/menus/export-modules/manage-menus/index.scss +0 -13
  680. package/src/components/menus/export-modules/manage-menus/index.tsx +44 -10
  681. package/src/components/menus/export-modules/okr-menus/depart-menus/index.tsx +3 -2
  682. package/src/components/menus/export-modules/okr-menus/index.tsx +5 -1
  683. package/src/components/menus/export-modules/okr-menus/menus.ts +2 -1
  684. package/src/components/menus/i18n.ts +43 -46
  685. package/src/components/nav-top/components/user-message/components/remind/remind-item.tsx +2 -1
  686. package/src/components/nav-top/components/user-message/msg/index.tsx +4 -3
  687. package/src/components/nav-top/components/user-message/utils.ts +3 -1
  688. package/src/components/nav-top/components/user-own-menu/components/own-menu/index.scss +21 -1
  689. package/src/components/nav-top/components/user-own-menu/components/own-menu/index.tsx +64 -3
  690. package/src/components/nav-top/components/user-own-menu/utils.ts +71 -46
  691. package/src/components/nav-top/components/version/index.tsx +2 -1
  692. package/src/components/nav-top/interface.ts +2 -1
  693. package/src/components/nav-top/request.apis.ts +4 -0
  694. package/src/components/okr-detail/base-info/base-info.tsx +11 -10
  695. package/src/components/okr-detail/base-info/o-desc/index.tsx +8 -8
  696. package/src/components/okr-detail/base-info/other-infos/classify/index.tsx +7 -6
  697. package/src/components/okr-detail/base-info/other-infos/date-cycle/index.tsx +2 -1
  698. package/src/components/okr-detail/base-info/other-infos/okr-type/index.tsx +5 -4
  699. package/src/components/okr-detail/base-info/other-infos/principal/index.tsx +2 -1
  700. package/src/components/okr-detail/base-info/other-infos/visibility/index.tsx +11 -10
  701. package/src/components/okr-detail/base-info/person/index.tsx +2 -1
  702. package/src/components/okr-detail/components/ao-nice/index.js +3 -3
  703. package/src/components/okr-detail/components/base-okr-type/confirm/confirm.tsx +3 -2
  704. package/src/components/okr-detail/components/base-okr-type/index.tsx +1 -1
  705. package/src/components/okr-detail/components/base-okr-type/object-type.tsx +11 -10
  706. package/src/components/okr-detail/components/header/edit-name.tsx +4 -3
  707. package/src/components/okr-detail/components/header/index.js +2 -1
  708. package/src/components/okr-detail/components/header/o-name.tsx +2 -1
  709. package/src/components/okr-detail/components/o-classify.tsx +5 -4
  710. package/src/components/okr-detail/components/o-progress-update/index.tsx +2 -1
  711. package/src/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -10
  712. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/constant.ts +8 -6
  713. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +2 -1
  714. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +6 -5
  715. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +4 -3
  716. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +7 -6
  717. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +8 -7
  718. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +8 -7
  719. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +7 -6
  720. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +3 -2
  721. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +14 -13
  722. package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -3
  723. package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +10 -7
  724. package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +12 -9
  725. package/src/components/okr-detail/components/okr-type.tsx +5 -3
  726. package/src/components/okr-detail/components/score/index.tsx +2 -1
  727. package/src/components/okr-detail/detail-footer/index.tsx +5 -4
  728. package/src/components/okr-detail/detail-header/actions.tsx +12 -11
  729. package/src/components/okr-detail/detail-header/confirm.tsx +5 -6
  730. package/src/components/okr-detail/detail-header/delete-confirm/delete-confirm.tsx +8 -7
  731. package/src/components/okr-detail/detail-header/index.tsx +7 -6
  732. package/src/components/okr-detail/e-list/search-form/fields/e-order.js +6 -5
  733. package/src/components/okr-detail/e-list/search-form/fields/e-status.js +9 -8
  734. package/src/components/okr-detail/e-list/search-form/fields/e-user.js +2 -1
  735. package/src/components/okr-detail/e-list/search-form/index.js +5 -5
  736. package/src/components/okr-detail/e-list/util.ts +4 -3
  737. package/src/components/okr-detail/index.js +7 -6
  738. package/src/components/okr-detail/okr-list/add-parent-okr.js +2 -1
  739. package/src/components/okr-detail/okr-list/create-kr-item/index.tsx +6 -5
  740. package/src/components/okr-detail/okr-list/create-kr-item/style.ts +1 -1
  741. package/src/components/okr-detail/okr-list/empty/index.js +4 -3
  742. package/src/components/okr-detail/okr-list/index.js +6 -5
  743. package/src/components/okr-detail/okr-list/warp-parent-okr.js +2 -1
  744. package/src/components/okr-detail/request-apis.ts +2 -1
  745. package/src/components/okr-detail/schedule/components/kr-progress/index.tsx +2 -1
  746. package/src/components/okr-detail/schedule/components/o-progress/index.tsx +17 -16
  747. package/src/components/okr-detail/schedule/util.ts +3 -1
  748. package/src/components/okr-filter-drawer/filter-form.tsx +83 -79
  749. package/src/components/okr-filter-drawer/index.scss +6 -4
  750. package/src/components/okr-filter-drawer/index.tsx +4 -7
  751. package/src/components/okr-flow/child-node/work-node.js +11 -8
  752. package/src/components/okr-flow/empty/index.js +2 -1
  753. package/src/components/okr-flow/export-modal/index.tsx +3 -2
  754. package/src/components/okr-flow/mini-map/index.js +4 -3
  755. package/src/components/okr-period-selector/select-cycle.tsx +12 -12
  756. package/src/components/okr-progress/components/kr-progress/index.tsx +2 -1
  757. package/src/components/okr-progress/components/o-progress/index.tsx +17 -16
  758. package/src/components/okr-progress/components/o-progress-update/index.tsx +2 -1
  759. package/src/components/okr-progress/request-apis.ts +2 -1
  760. package/src/components/okr-progress/util.ts +2 -1
  761. package/src/components/okr-progress-detail/index.tsx +110 -55
  762. package/src/components/okr-progress-detail/utils.ts +4 -3
  763. package/src/components/okr-progress-modal/helper.js +104 -64
  764. package/src/components/okr-progress-modal/index.tsx +15 -50
  765. package/src/components/okr-review/ReviewPop/components/ReviewBody/index.tsx +19 -17
  766. package/src/components/okr-review/ReviewPop/components/ReviewBody/style.ts +1 -1
  767. package/src/components/okr-review/ReviewPop/index.tsx +7 -7
  768. package/src/components/okr-review/components/ReviewItem/index.tsx +4 -3
  769. package/src/components/okr-review/components/confirm-pop/ConfirmPop.tsx +4 -6
  770. package/src/components/okr-review/index.tsx +5 -4
  771. package/src/components/okr-share/pink-card/card.tsx +2 -1
  772. package/src/components/okr-share/publishMblog.tsx +3 -4
  773. package/src/components/okr-share/shareCardSelector.tsx +5 -4
  774. package/src/components/okrcase-library/index.tsx +4 -3
  775. package/src/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.tsx +5 -4
  776. package/src/components/okrcase-library/okrcases-components/caseLibrary-main.tsx +2 -1
  777. package/src/components/okrcase-library/okrcases-components/caseLibray-header.tsx +23 -17
  778. package/src/components/okrcase-library/okrcases-components/submitOkr-dialog.tsx +3 -2
  779. package/src/components/okrcase-library-card/index.tsx +5 -6
  780. package/src/components/operation-records/index.tsx +2 -1
  781. package/src/components/pagination/locale/en_US.js +16 -0
  782. package/src/components/pagination/locale/zh_CN.js +16 -0
  783. package/src/components/pagination/pagination.tsx +7 -0
  784. package/src/components/password-input/index.tsx +8 -11
  785. package/src/components/period-selector/common.ts +33 -12
  786. package/src/components/period-selector/components/selector/index.tsx +44 -18
  787. package/src/components/period-selector/mockData.ts +30 -28
  788. package/src/components/photo-card/components/card/index.tsx +5 -4
  789. package/src/components/photo-card/index.tsx +3 -2
  790. package/src/components/point-demo/constant.ts +29 -0
  791. package/src/components/point-demo/drop-down-box/index.js +2 -1
  792. package/src/components/point-demo/index.js +16 -35
  793. package/src/components/praise-record/index.tsx +3 -2
  794. package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +9 -6
  795. package/src/components/range-picker-pop/index.js +2 -6
  796. package/src/components/range-selector-pop/RangeList.tsx +5 -4
  797. package/src/components/scrollbar/simplebar/index.js +1 -0
  798. package/src/components/scrollbar/simplebar/scrollbar-width.js +1 -0
  799. package/src/components/select-layer/index.tsx +2 -1
  800. package/src/components/select-tags/index.tsx +2 -1
  801. package/src/components/selector-input/index.js +2 -1
  802. package/src/components/slider-input/index.js +2 -1
  803. package/src/components/status-time/index.tsx +4 -3
  804. package/src/components/table/index.js +3 -3
  805. package/src/components/table/index.scss +0 -5
  806. package/src/components/task-relation-modal/index.tsx +7 -6
  807. package/src/components/task-relation-modal/search/category-select.tsx +5 -4
  808. package/src/components/task-relation-modal/search/okr-status-select.tsx +5 -4
  809. package/src/components/task-relation-modal/search/okr-type-select.tsx +7 -6
  810. package/src/components/task-relation-modal/search/principal.tsx +4 -2
  811. package/src/components/task-relation-modal/search/relation.tsx +7 -6
  812. package/src/components/task-relation-modal/tree/category-tree/index.tsx +3 -2
  813. package/src/components/task-relation-modal/tree/category-tree/search-form.tsx +2 -1
  814. package/src/components/task-relation-modal/tree/okr-tree/index.tsx +5 -4
  815. package/src/components/task-relation-modal/tree/okr-tree/search-form.tsx +3 -2
  816. package/src/components/task-relation-modal/tree/work-tree/index.tsx +6 -5
  817. package/src/components/task-relation-modal/tree/work-tree/search-form.tsx +2 -1
  818. package/src/components/task-relation-modal/tree-node/milestone-node/index.tsx +4 -3
  819. package/src/components/task-relation-modal/tree-node/work-node/index.tsx +3 -2
  820. package/src/components/tita-chart/charts/liquid-ball.tsx +2 -1
  821. package/src/components/tita-chart/charts/words-cloud.tsx +7 -6
  822. package/src/components/update-modal/index.tsx +2 -1
  823. package/src/components/upload/components/uploadedPreview.tsx +7 -6
  824. package/src/components/upload/index.tsx +3 -4
  825. package/src/components/upvote/attitude.ts +36 -32
  826. package/src/components/upvote/index.tsx +7 -6
  827. package/src/components/upvote/selector.tsx +2 -2
  828. package/src/components/upvote/upvoteListModal.tsx +2 -1
  829. package/src/components/user-selector/action-btns/btn-cancel.js +2 -1
  830. package/src/components/user-selector/action-btns/btn-ok.js +2 -1
  831. package/src/components/user-selector/category-selector-panel/index.tsx +3 -13
  832. package/src/components/user-selector/constant.ts +16 -0
  833. package/src/components/user-selector/empty/group.js +2 -2
  834. package/src/components/user-selector/empty/index.js +2 -1
  835. package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +2 -2
  836. package/src/components/user-selector/export-modules/multiple-user-selector--bak/index.js +2 -1
  837. package/src/components/user-selector/searched-panel/index.js +4 -4
  838. package/src/components/user-selector/selected-panel/index.tsx +7 -6
  839. package/src/components/version-change-modal/constant.ts +48 -44
  840. package/src/components/version-change-modal/index.tsx +2 -2
  841. package/src/components/weekly-report/index.tsx +4 -3
  842. package/src/components/weekly-report/statistics.tsx +2 -1
  843. package/src/components-v1/confirm/index.tsx +3 -2
  844. package/src/components-v1/popConfirm/index.tsx +3 -2
  845. package/src/components-v1/progress/CircleProgress.js +1 -1
  846. package/src/components-v1/radio/radioGroup.tsx +1 -1
  847. package/src/components-v1/search/index.tsx +2 -4
  848. package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +2 -1
  849. package/src/components-v1/userSelector/components/MultiMode/index.tsx +7 -6
  850. package/src/components-v1/userSelector/components/SearchBar.tsx +2 -1
  851. package/src/components-v1/userSelector/index.tsx +4 -3
  852. package/src/index.d.ts +2 -0
  853. package/src/index.js +0 -1
  854. package/src/pages/appointment-demo/drop-down-box/index.js +2 -1
  855. package/src/pages/appointment-demo/index.js +17 -16
  856. package/src/pages/group-management/page-view/empty.js +1 -1
  857. package/src/pages/group-management/page-view/importGroupStaff/index.js +5 -4
  858. package/src/pages/group-management/table/index.js +3 -2
  859. package/src/pages/group-management/tree/add-group-dialog/index.js +3 -2
  860. package/src/pages/group-management/tree/delete-group-dialog/index.js +3 -2
  861. package/src/pages/group-management/tree/edit-group-dialog/index.js +3 -2
  862. package/src/pages/group-management/tree/group-form/index.js +3 -2
  863. package/src/pages/group-management/tree/operation-panel.js +3 -2
  864. package/src/pages/group-management/tree/trigger-render.js +2 -1
  865. package/src/pages/home/components/data-list/index.tsx +10 -9
  866. package/src/pages/home/components/data-list/nav-selector/index.tsx +12 -12
  867. package/src/pages/home/components/data-list/table/columns/index.tsx +15 -14
  868. package/src/pages/home/components/data-list/table/columns/progressAndRisk.tsx +6 -5
  869. package/src/pages/home/components/data-list/table/utils-function.ts +2 -1
  870. package/src/pages/home-page-data-list/index.tsx +10 -9
  871. package/src/pages/like-ranking/column.tsx +9 -9
  872. package/src/pages/like-ranking/filter-buttons/department.tsx +3 -2
  873. package/src/pages/like-ranking/filter-buttons/group.tsx +2 -1
  874. package/src/pages/like-ranking/filter-buttons/modular.tsx +11 -8
  875. package/src/pages/like-ranking/filter-buttons/name.tsx +2 -1
  876. package/src/pages/like-ranking/filter-buttons/timer.tsx +2 -1
  877. package/src/pages/like-ranking/index.tsx +8 -7
  878. package/src/pages/new-okr-list/context.ts +1 -1
  879. package/src/pages/new-okr-list/header/comments.tsx +2 -1
  880. package/src/pages/new-okr-list/header/create-okr.tsx +2 -1
  881. package/src/pages/new-okr-list/header/depart-title.tsx +3 -2
  882. package/src/pages/new-okr-list/header/filter.tsx +2 -1
  883. package/src/pages/new-okr-list/header/index.tsx +2 -1
  884. package/src/pages/new-okr-list/header/relation-title.tsx +3 -2
  885. package/src/pages/new-okr-list/index.tsx +4 -3
  886. package/src/pages/new-okr-list/keyword-search/index.tsx +2 -1
  887. package/src/pages/okr-map/export-modules/okr-map/header/index.js +15 -14
  888. package/src/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +5 -4
  889. package/src/pages/okr-map/export-modules/share-okr-page/header/index.js +5 -4
  890. package/src/pages/okr-map/level2-search/level2-input.js +2 -1
  891. package/src/pages/okr-map/no-okr/index.js +2 -1
  892. package/src/pages/okr-map/number-select/index.js +2 -1
  893. package/src/pages/okr-map/share-dialog/index.js +7 -6
  894. package/src/pages/personal-info/components/base-info/index.scss +1 -30
  895. package/src/pages/personal-info/components/base-info/index.tsx +100 -28
  896. package/src/pages/personal-info/index.tsx +0 -2
  897. package/src/utils/date-test-change.ts +5 -3
  898. package/src/utils/format-time.ts +5 -3
  899. package/src/utils/getLocale.ts +3 -0
  900. package/lib/components/upload-photo-modal/constant.js +0 -99
  901. package/lib/components/upload-photo-modal/img/browser-preview-bgc.png +0 -0
  902. package/lib/components/upload-photo-modal/index.css +0 -276
  903. package/lib/components/upload-photo-modal/index.js +0 -332
  904. package/lib/components/upload-photo-modal/request-api.js +0 -44
  905. package/lib/pages/personal-info/components/edit-info/index.js +0 -192
  906. package/lib/pages/personal-info/components/edit-info/input/index.css +0 -89
  907. package/lib/pages/personal-info/components/edit-info/input/index.js +0 -199
  908. package/lib/pages/personal-info/components/person-photo/index.css +0 -88
  909. package/lib/pages/personal-info/components/person-photo/index.js +0 -86
  910. package/src/components/upload-photo-modal/constant.ts +0 -71
  911. package/src/components/upload-photo-modal/img/browser-preview-bgc.png +0 -0
  912. package/src/components/upload-photo-modal/index.scss +0 -248
  913. package/src/components/upload-photo-modal/index.tsx +0 -236
  914. package/src/components/upload-photo-modal/request-api.ts +0 -23
  915. package/src/pages/personal-info/components/edit-info/index.tsx +0 -152
  916. package/src/pages/personal-info/components/edit-info/input/index.scss +0 -82
  917. package/src/pages/personal-info/components/edit-info/input/index.tsx +0 -145
  918. package/src/pages/personal-info/components/person-photo/index.scss +0 -80
  919. package/src/pages/personal-info/components/person-photo/index.tsx +0 -49
  920. package/yarn-error.log +0 -103
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.testDayChange = exports.testDateDiff = void 0;
7
7
 
8
+ var _getLocale = require("./getLocale");
9
+
8
10
  //精确到日期的检测 date为2021/8/26这样的类型,返回距现在几天
9
11
  var testDateDiff = function testDateDiff(date) {
10
12
  var handleDate = date.length == 5 ? "".concat(new Date().getFullYear(), "/").concat(date) : date;
@@ -37,7 +39,7 @@ var testDateDiff = function testDateDiff(date) {
37
39
  // if (hourDiff < 1) {
38
40
  // const minDiff = Math.floor((nTime - tTime) / (1000 * 60))
39
41
  // if (minDiff < 1) {
40
- // return '刚刚'
42
+ // return getLocale('Pro_page_Int_Justnow')
41
43
  // } else {
42
44
  // return `${minDiff}分钟前`
43
45
  // }
@@ -78,7 +80,7 @@ var testDayChange = function testDayChange(date) {
78
80
  var secondDiff = Math.floor((nowMilliSecond - timeMilliSecond) / 1000);
79
81
 
80
82
  if (secondDiff <= 3) {
81
- return '刚刚';
83
+ return (0, _getLocale.getLocale)('Pro_page_Int_Justnow');
82
84
  }
83
85
 
84
86
  if (secondDiff < 60) {
@@ -94,7 +96,7 @@ var testDayChange = function testDayChange(date) {
94
96
  }
95
97
 
96
98
  if (secondDiff < 60 * 60 * 24 * 2 && nowDate - 1 === timeDate) {
97
- return "\u6628\u5929";
99
+ return (0, _getLocale.getLocale)('OKR_MyO_Pr_Text_Yesterday');
98
100
  }
99
101
 
100
102
  if (secondDiff < 60 * 60 * 24 * 3 && nowDate - 2 === timeDate) {
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.timeFormat = exports.showWeekLastDay = exports.showWeekFirstDay = exports.showNextWeekFirstDay = exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.getTimeString = exports.getNextDayOfYear = exports.getFirstDayOfYear = void 0;
7
7
 
8
+ var _getLocale = require("./getLocale");
9
+
8
10
  var getTimeString = function getTimeString(time, nowTime) {
9
11
  if (!time) {
10
- return "暂未更新";
12
+ return (0, _getLocale.getLocale)('OKR_MyO_KRP_Notupdated');
11
13
  }
12
14
 
13
15
  var timeDateObj = new Date(time);
@@ -23,7 +25,7 @@ var getTimeString = function getTimeString(time, nowTime) {
23
25
  var secondDiff = Math.floor((nowMilliSecond - timeMilliSecond) / 1000);
24
26
 
25
27
  if (secondDiff <= 3) {
26
- return "刚刚";
28
+ return (0, _getLocale.getLocale)('Pro_page_Int_Justnow');
27
29
  }
28
30
 
29
31
  if (secondDiff < 60) {
@@ -39,7 +41,7 @@ var getTimeString = function getTimeString(time, nowTime) {
39
41
  }
40
42
 
41
43
  if (secondDiff < 60 * 60 * 24 * 2 && nowDate - 1 === timeDate) {
42
- return "\u6628\u5929 ".concat(timeHours + ":" + timeMinutes);
44
+ return "".concat((0, _getLocale.getLocale)('OKR_MyO_Pr_Text_Yesterday'), " ").concat(timeHours + ":" + timeMinutes);
43
45
  }
44
46
 
45
47
  if (secondDiff < 60 * 60 * 24 * 3 && nowDate - 2 === timeDate) {
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLocale = void 0;
7
+
8
+ var getLocale = function getLocale(key) {
9
+ return window.getLocale(key);
10
+ };
11
+
12
+ exports.getLocale = getLocale;
@@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
 
12
12
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
13
13
 
14
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
15
15
 
16
16
  var localStorage = /*#__PURE__*/function () {
17
17
  function localStorage() {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -15,9 +15,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  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; }
17
17
 
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
19
19
 
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
21
21
 
22
22
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
23
 
@@ -10,9 +10,9 @@ exports.taker = taker;
10
10
 
11
11
  var _bsGlobal = require("./bs-global");
12
12
 
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
14
 
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
16
 
17
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
 
@@ -8,9 +8,9 @@ exports.AccMul = AccMul;
8
8
  exports.ReCalibratePrecision = ReCalibratePrecision;
9
9
  exports.RoundWeight = RoundWeight;
10
10
 
11
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
12
12
 
13
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
14
 
15
15
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.97",
3
+ "version": "1.7.98",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -67,6 +67,7 @@
67
67
  "classnames": "^2.2.6",
68
68
  "clone-deep": "^4.0.1",
69
69
  "color": "^3.2.1",
70
+ "cos-js-sdk-v5": "^1.3.3",
70
71
  "dayjs": "^1.10.4",
71
72
  "html2canvas": "1.3.2",
72
73
  "less": "^4.1.2",
@@ -80,7 +81,6 @@
80
81
  "rc-cascader": "^2.2.0",
81
82
  "rc-checkbox": "^2.3.2",
82
83
  "rc-color-picker": "^1.2.6",
83
- "rc-cropper": "^1.3.1",
84
84
  "rc-dialog": "8.5.2",
85
85
  "rc-drawer": "^4.3.1",
86
86
  "rc-input-number": "^5.0.0",
@@ -97,7 +97,6 @@
97
97
  "rc-util": "^5.13.1",
98
98
  "react-collapse": "^5.1.0",
99
99
  "react-content-loader": "^6.0.3",
100
- "react-cropper": "^2.1.8",
101
100
  "react-custom-scrollbars": "^4.2.1",
102
101
  "react-grid-layout": "^1.2.5",
103
102
  "react-sizeme": "^3.0.1",
@@ -1,6 +1,6 @@
1
1
  import React, { FC } from "react";
2
2
  import Avatar from "../default";
3
- import attitudeArr from "../../upvote/attitude";
3
+ import getAttitudeArr from "../../upvote/attitude";
4
4
 
5
5
  import "./index.scss";
6
6
 
@@ -32,7 +32,7 @@ const IconAvatar: FC<IconAvatarProps> = ({
32
32
  className={`tita-icon-avatar-image`}
33
33
  src={
34
34
  // @ts-ignore
35
- attitudeArr.find((att) => att.type == type).img
35
+ getAttitudeArr().find((att) => att.type == type).img
36
36
  }
37
37
  />
38
38
  </div>
@@ -1,5 +1,6 @@
1
- import React, { FC, useState, useEffect, Fragment } from "react";
1
+ import React, { FC, Fragment } from "react";
2
2
  import classNames from "classnames";
3
+ import { getLocale } from "../../../utils/getLocale";
3
4
  import "./index.scss";
4
5
  const preCls = "tita-button";
5
6
 
@@ -11,7 +12,7 @@ export interface ButtonProps {
11
12
  [key:string]:any;
12
13
  }
13
14
 
14
- const Button: FC<ButtonProps> = ({ type = "default", children = "确定" ,size = "middle",className='', ...restProps }) => {
15
+ const Button: FC<ButtonProps> = ({ type = "default", children = getLocale('OKR_MyO_Butt_Determine') ,size = "middle",className='', ...restProps }) => {
15
16
  return (
16
17
  <Fragment>
17
18
  <div
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import classNames from "classnames";
3
3
  import { RectBtnProps } from "../types";
4
+ import { getLocale } from "../../../utils/getLocale";
4
5
  import "./index.scss";
5
6
  const precls = "titaui-rect-btn";
6
7
 
@@ -8,8 +9,8 @@ const RectBtn = (props: RectBtnProps) => {
8
9
  const {
9
10
  type = "default",
10
11
  icon = "",
12
+ text = getLocale('OKR_MyO_Butt_Determine'),
11
13
  size = "normal",//big|normal|small
12
- text = "确定",
13
14
  onClick = () => {},
14
15
  className = "",
15
16
  disabled = false,
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import classNames from "classnames";
3
3
  import { TextBtnProps } from "../types";
4
+ import { getLocale } from "../../../utils/getLocale";
4
5
  import "./index.scss";
5
6
  const precls = "titaui-text-btn";
6
7
 
@@ -8,7 +9,7 @@ const TextBtn = (props: TextBtnProps) => {
8
9
  const {
9
10
  type = "default",
10
11
  icon = "",
11
- text = "确定",
12
+ text = getLocale('OKR_MyO_Butt_Determine'),
12
13
  onClick = () => {},
13
14
  className = "",
14
15
  disabled = false,
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect } from "react";
2
2
  import Rccascader from "rc-cascader";
3
3
  import TimeCascader from "./time";
4
+ import { getLocale } from "../../utils/getLocale";
4
5
  import "rc-cascader/assets/index.less";
5
6
  import "./index.scss";
6
7
 
@@ -23,7 +24,7 @@ const Cascader = ({
23
24
  options,
24
25
  onChange = () => {},
25
26
  style = { width: "100px" },
26
- placeholder = "请选择",
27
+ placeholder = getLocale('Mod_Pleaseselect'),
27
28
  splitSymbol = "",
28
29
  popupClassName = "",
29
30
  ...restProps
@@ -9,6 +9,8 @@ import ConfirmPop from '../delete-confirm-pop/ConfirmPop';
9
9
  import FilterTab from './filterTab';
10
10
  import { getBSGlobal } from '../../utils/bs-global';
11
11
  import { rget } from '../../utils/request';
12
+ import { getOkrTypes, getStatusType, getYear, getBimonthlyMonthKeyValue, getMonthKeyValue } from './constant';
13
+ import { getLocale } from '../../utils/getLocale';
12
14
 
13
15
  interface Props {
14
16
  year?: number | null;
@@ -27,60 +29,6 @@ interface State {
27
29
  cycles: any[]
28
30
  }
29
31
 
30
- const years: any = [
31
- {
32
- title: '全部年份',
33
- value: -1,
34
- },
35
- ];
36
- for (let i = 2013; i < 2051; i++) {
37
- years.push({ title: i + '年', value: i });
38
- }
39
-
40
-
41
-
42
- const statusType = [
43
- {
44
- title: '全部状态',
45
- value: 0,
46
- },
47
- {
48
- title: '进行中',
49
- value: 1,
50
- },
51
- {
52
- title: '已结束',
53
- value: 2,
54
- },
55
- ];
56
- const okrTypes = [
57
- {
58
- title: '全部类型',
59
- value: -1,
60
- },
61
- {
62
- title: '公司',
63
- value: 3,
64
- },
65
- {
66
- title: '部门',
67
- value: 2,
68
- },
69
- {
70
- /**
71
- 新增的团队 --- start
72
- */
73
- title: '团队',
74
- value: 4,
75
- /**
76
- 新增的团队 --- end
77
- */
78
- },
79
- {
80
- title: '个人',
81
- value: 1,
82
- },
83
- ];
84
32
  interface FilterTabProps {
85
33
  index: number;
86
34
  name: string;
@@ -97,10 +45,10 @@ export default class FilterComp extends PureComponent<Props, State> {
97
45
  super(p);
98
46
  this.state = {
99
47
  OptionsArray: [
100
- { index: 0, title: '年份', name: 'year', valuesArray: years, value: p.year },
101
- { index: 1, title: '周期', name: 'cycle', valuesArray: [], value: p.cycle },
102
- { index: 2, title: '状态', name: 'status', valuesArray: statusType, value: p.status },
103
- { index: 3, title: '类型', name: 'type', valuesArray: okrTypes, value: p.type },
48
+ { index: 0, title: getLocale('OKR_MyO_Pop_Year'), name: 'year', valuesArray: getYear(), value: p.year },
49
+ { index: 1, title: getLocale('Mod_period'), name: 'cycle', valuesArray: [], value: p.cycle },
50
+ { index: 2, title: getLocale('Mod_States'), name: 'status', valuesArray: getStatusType(), value: p.status },
51
+ { index: 3, title: getLocale('OKR_MyO_Pop_Type'), name: 'type', valuesArray: getOkrTypes(), value: p.type },
104
52
  ],
105
53
  cycles: []
106
54
  };
@@ -110,10 +58,10 @@ export default class FilterComp extends PureComponent<Props, State> {
110
58
 
111
59
  this.setState({
112
60
  OptionsArray: [
113
- { index: 0, title: '年份', name: 'year', valuesArray: years, value: year },
114
- { index: 1, title: '周期', name: 'cycle', valuesArray: this.state.OptionsArray[1].valuesArray, value: cycle },
115
- { index: 2, title: '状态', name: 'status', valuesArray: statusType, value: status },
116
- { index: 3, title: '类型', name: 'type', valuesArray: okrTypes, value: type },
61
+ { index: 0, title: getLocale('OKR_MyO_Pop_Year'), name: 'year', valuesArray: getYear(), value: year },
62
+ { index: 1, title: getLocale('Mod_period'), name: 'cycle', valuesArray: this.state.OptionsArray[1].valuesArray, value: cycle },
63
+ { index: 2, title: getLocale('Mod_States'), name: 'status', valuesArray: getStatusType(), value: status },
64
+ { index: 3, title: getLocale('OKR_MyO_Pop_Type'), name: 'type', valuesArray: getOkrTypes(), value: type },
117
65
  ],
118
66
  });
119
67
  }
@@ -132,65 +80,55 @@ export default class FilterComp extends PureComponent<Props, State> {
132
80
  rget('v1')("okr/cycleSetting").then(res => {
133
81
  const data = res.Data
134
82
  let cycles = [{
135
- title: '全部周期',
83
+ title: getLocale('OKR_MyO_Butt_AllStates'),
136
84
  value: '-1',
137
85
  }]
138
86
  if(data.isOpenYear){
139
87
  cycles.push({
140
- title: '年度',
88
+ title: getLocale('OKR_MyO_Pop_Year'),
141
89
  value: '1'
142
90
  })
143
91
  }
144
92
  if(data.isOpenHalfYear){
145
93
  cycles.push({
146
- title: '上半年',
94
+ title: getLocale('OKR_MyO_Pop_Firsthalf'),
147
95
  value: '5,1'
148
96
  })
149
97
  cycles.push({
150
- title: '下半年',
98
+ title: getLocale('OKR_MyO_Pop_Secondhalf'),
151
99
  value: '5,2'
152
100
  })
153
101
  }
154
102
  if(data.isOpenQuarter){
155
- const num = ['一','二','三','四']
156
- for(let i = 0; i < 4; i++){
157
- cycles.push({
158
- title: `第${num[i]}季度`,
159
- value: `2,${i+1}`
160
- })
161
- }
103
+ cycles.push({
104
+ title: getLocale('OKR_MyO_Pop_1stQuarter'),
105
+ value: `2,1`
106
+ },{
107
+ title: getLocale('OKR_MyO_Pop_2ndQuarter'),
108
+ value: `2,2`
109
+ },{
110
+ title: getLocale('OKR_MyO_Pop_3rdQuarter'),
111
+ value: `2,3`
112
+ },{
113
+ title: getLocale('OKR_MyO_Pop_4thQuarter'),
114
+ value: `2,4`
115
+ })
162
116
  }
163
117
  if(data.isOpenBimonthly){
164
- const start = data.yearStartMonth % 2 == 1 ? 1 : 2;
165
- let month = start;
166
- while(1){
167
- const next = (month + 1) % 12 || 12;
168
- cycles.push({
169
- title: `${month}-${next}月`,
170
- value: `4,${month}`
171
- })
172
- month = (month + 2) % 12 || 12;
173
- if(month == start) break
174
- }
118
+ cycles.push(...getBimonthlyMonthKeyValue(data.yearStartMonth));
175
119
  }
176
120
  if(data.isOpenMonth){
177
- for(let i = 1; i <=12; i++){
178
- cycles.push({
179
- title: `${i}月`,
180
- value: `3,${i}`
181
- })
182
- }
121
+ cycles.push(...getMonthKeyValue());
183
122
  }
184
123
  if(data.isOpenCustom){
185
124
  cycles.push({
186
- title: `自定义`,
125
+ title: getLocale('Mod_Customization'),
187
126
  value: `0,0`
188
127
  })
189
128
  }
190
129
  const newOptions = [...this.state.OptionsArray];
191
130
  newOptions[1] = {...newOptions[1]}
192
131
  newOptions[1].valuesArray = cycles
193
- console.log(newOptions)
194
132
  this.setState({
195
133
  OptionsArray: newOptions,
196
134
  cycles
@@ -247,21 +185,21 @@ export default class FilterComp extends PureComponent<Props, State> {
247
185
  <FilterLeftWrapper>
248
186
  <Select
249
187
  container={document.body}
250
- data={years}
188
+ data={getYear()}
251
189
  value={year}
252
- title='年份 '
190
+ title={getLocale('Mod_Year')}
253
191
  textField='title'
254
192
  valueField='value'
255
193
  maxHeight='280px'
256
194
  type='old'
257
195
  width='64px'
258
- onSelect={(value: any) => this.handleSelected(years, value, 'year')}
196
+ onSelect={(value: any) => this.handleSelected(getYear(), value, 'year')}
259
197
  />
260
198
  <Select
261
199
  container={document.body}
262
200
  data={cycles}
263
201
  value={cycle}
264
- title='周期 '
202
+ title={getLocale('Mod_period')}
265
203
  textField='title'
266
204
  valueField='value'
267
205
  maxHeight='280px'
@@ -272,49 +210,51 @@ export default class FilterComp extends PureComponent<Props, State> {
272
210
  {okrPopType == 1 && (
273
211
  <Select
274
212
  container={document.body}
275
- data={statusType}
213
+ data={getStatusType()}
276
214
  value={status}
277
- title='状态 '
215
+ title={getLocale('Mod_States')}
278
216
  textField='title'
279
217
  valueField='value'
280
218
  maxHeight='280px'
281
219
  type='old'
282
220
  width='64px'
283
- onSelect={(value: any) => this.handleSelected(statusType, value, 'status')}
221
+ onSelect={(value: any) => this.handleSelected(getStatusType(), value, 'status')}
284
222
  />
285
223
  )}
286
224
  {this.KRSetting.OkrTypeSetting && (
287
225
  <Select
288
226
  container={document.body}
289
- data={okrTypes}
227
+ data={getOkrTypes()}
290
228
  value={type}
291
- title='类型 '
229
+ title={getLocale('Mod_Type')}
292
230
  textField='title'
293
231
  valueField='value'
294
232
  maxHeight='280px'
295
233
  type='old'
296
234
  width='64px'
297
- onSelect={(value: any) => this.handleSelected(okrTypes, value, 'type')}
235
+ onSelect={(value: any) => this.handleSelected(getOkrTypes(), value, 'type')}
298
236
  />
299
237
  )}
300
238
  <UserSelectorPop onSubmit={this.props.onUserChange} container={document.body}>
301
239
  <UserSelectorWrapper ref='user'>
302
- <span>负责人</span>
240
+ <span>{getLocale('Mod_Owner')}</span>
303
241
  <i className='tu-icon-sort-up' />
304
242
  </UserSelectorWrapper>
305
243
  </UserSelectorPop>
306
244
  </FilterLeftWrapper>
307
- <Search placeHolder='请输入关键字' onSearch={(keywords: string) => onChange('keywords', keywords)} />
245
+ <Search placeHolder={getLocale('OKR_MyO_Pop_Pleaenterwords')} onSearch={(keywords: string) => onChange('keywords', keywords)} />
308
246
  </FilterTop>
309
247
  {(OptionsArray.filter(option => option.value !== null).length > 0 || !!users.length || !!departments.length) && (
310
248
  <FilterBottom>
311
249
  <FilterOptionsWrapper>
312
250
  {OptionsArray.sort((a, b) => a.index - b.index)
313
- .filter(option => option.value !== null)
251
+ .filter(option => {
252
+ return option.value !== null
253
+ })
314
254
  .map(option => (
315
255
  <FilterTab title={option.title} valuesArray={option.valuesArray} name={option.name} value={mapper[option.name]} onClick={this.handleFilterDelete}></FilterTab>
316
256
  ))}
317
- {(!!users.length || !!departments.length) && <span style={{ marginRight: 5 }}>负责人</span>}
257
+ {(!!users.length || !!departments.length) && <span style={{ marginRight: 5 }}>{getLocale('OKR_MyO_Pop_Owner')}</span>}
318
258
  {users.map(u => {
319
259
  return (
320
260
  <OptionItem key={u.Id}>
@@ -333,18 +273,18 @@ export default class FilterComp extends PureComponent<Props, State> {
333
273
  })}
334
274
 
335
275
  <ToolTip title='清空本次选择' overlayStyle={{ zIndex: 999999 }}>
336
- <a onClick={this.handleClear}>清空所选</a>
276
+ <a onClick={this.handleClear}>{getLocale('OKR_MyO_Pop_Clearselected')}</a>
337
277
  </ToolTip>
338
278
  {!remembered ? (
339
279
  <a onClick={() => this.handlerFilterOptions(1)}>
340
280
  <ToolTip title='下次进入显示以上条件' overlayStyle={{ zIndex: 999999 }}>
341
- <span>记住选择</span>
281
+ <span>{getLocale('OKR_MyO_Butt_Remember')}</span>
342
282
  </ToolTip>
343
283
  </a>
344
284
  ) : (
345
285
  <ConfirmPop align='bottom left' confirmTipText='确定取消吗?取消后将不再记住以上条件' onSubmit={() => this.handlerFilterOptions(2)}>
346
286
  <ToolTip title='不再显示以上条件' overlayStyle={{ zIndex: 999999 }}>
347
- <a>取消记住</a>
287
+ <a>{getLocale('OKR_MyO_Pop_Cancelremember')}</a>
348
288
  </ToolTip>
349
289
  </ConfirmPop>
350
290
  )}
@@ -3,6 +3,12 @@ import { ItemWrapper, Radio, Tag, ItemObjectiveContainer, ItemKrContainer, ItemT
3
3
  import { OkrData } from './types';
4
4
  import { OpenUserName } from '../../utils/open-data';
5
5
  import drawerManager from '../../components/drawer-manager'
6
+ import { getMonth, getTypeMap } from './constant';
7
+ import { getLocale } from '../../utils/getLocale';
8
+ import { getBSGlobal } from '../../utils/bs-global';
9
+
10
+ const i18nInfo = getBSGlobal("I18NInfo");
11
+ const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
6
12
 
7
13
  interface Props {
8
14
  data: OkrData,
@@ -20,12 +26,7 @@ const colorMap = {
20
26
  3: '46,156,255',
21
27
  4: '12,192,201'
22
28
  }
23
- const typeMap = {
24
- 1: '个人',
25
- 2: '部门',
26
- 3: '公司',
27
- 4: '团队'
28
- }
29
+
29
30
  export default class Item extends PureComponent<Props, State> {
30
31
  constructor(props: Props) {
31
32
  super(props)
@@ -74,14 +75,19 @@ export default class Item extends PureComponent<Props, State> {
74
75
 
75
76
  getCycleText = () => {
76
77
  const { data } = this.props;
77
- const hzNum = ['一', '二', '三', '四']
78
+ const hzNum = [
79
+ getLocale('OKR_MyO_Pop_1stQuarter'),
80
+ getLocale('OKR_MyO_Pop_2ndQuarter'),
81
+ getLocale('OKR_MyO_Pop_3rdQuarter'),
82
+ getLocale('OKR_MyO_Pop_4thQuarter')
83
+ ]
78
84
  switch (data.cycleType) {
79
- case 1: return `${data.annualNum}年`;
80
- case 2: return `第${hzNum[data.yqmnum - 1]}季度`;
81
- case 3: return `${data.yqmnum}月`;
82
- case 4: return `${data.yqmnum}-${(data.yqmnum + 1) % 12 || 12}月`
83
- case 5: return data.yqmnum == 1 ? '上半年' : '下半年'
84
- default: return '自定义'
85
+ case 1: return `${data.annualNum}${isEn ? '' : '年'}`;
86
+ case 2: return hzNum[data.yqmnum - 1];
87
+ case 3: return getMonth()[data.yqmnum-1];
88
+ case 4: return `${getMonth()[data.yqmnum-1]}-${getMonth()[((data.yqmnum + 1) % 12 || 12) - 1]}月`
89
+ case 5: return data.yqmnum == 1 ? getLocale('OKR_MyO_Pop_Firsthalf') : getLocale('OKR_MyO_Pop_Secondhalf');
90
+ default: return getLocale('Mod_Customization')
85
91
  }
86
92
  }
87
93
 
@@ -126,7 +132,7 @@ export default class Item extends PureComponent<Props, State> {
126
132
  <ItemBottom>
127
133
  {
128
134
  !isShowKr && [
129
- <span>{typeMap[data.okrType]}</span>,
135
+ <span>{getTypeMap()[data.okrType]}</span>,
130
136
  <Separator />
131
137
  ]
132
138
  }