@titaui/pc 1.8.61 → 1.9.3
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.
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/button/default-button/index.js +3 -1
- package/lib/components/button/rect-btn/index.js +4 -2
- package/lib/components/button/text-btn/index.js +3 -1
- package/lib/components/cascader/index.js +3 -1
- package/lib/components/change-okr-modal/Filter.js +54 -108
- package/lib/components/change-okr-modal/Item.js +12 -14
- package/lib/components/change-okr-modal/constant.js +185 -0
- package/lib/components/change-okr-modal/filterTab.js +0 -2
- package/lib/components/change-okr-modal/index.js +9 -9
- package/lib/components/common-share/publishMblog.js +4 -2
- package/lib/components/communication/CommunicationAttachments.js +8 -6
- package/lib/components/communication/CommunicationRecord.js +7 -8
- package/lib/components/communication/index.js +6 -4
- package/lib/components/confidence/index.js +4 -2
- package/lib/components/create-okr-modal/constant.js +37 -11
- package/lib/components/create-okr-modal/createCycle.js +6 -4
- package/lib/components/create-okr-modal/createSuccessCmp.js +8 -6
- package/lib/components/create-okr-modal/fields/date-cycle.js +5 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +14 -11
- package/lib/components/create-okr-modal/fields/okr-case.js +5 -3
- package/lib/components/create-okr-modal/fields/okr-classify.js +14 -9
- package/lib/components/create-okr-modal/fields/okr-create-suggest.js +5 -3
- package/lib/components/create-okr-modal/fields/okr-parent.js +4 -2
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-type.js +6 -4
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +8 -6
- package/lib/components/create-okr-modal/fields/okr-visibility.js +28 -21
- package/lib/components/create-okr-modal/index.js +32 -24
- package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +3 -1
- package/lib/components/create-okr-modal/kr-items/krDatas.js +5 -4
- package/lib/components/create-okr-modal/kr-items/krItem.js +3 -1
- package/lib/components/create-okr-modal/objectType.js +22 -18
- package/lib/components/create-okr-modal/style.js +1 -1
- package/lib/components/date-picker/CalendarBody.js +3 -1
- package/lib/components/delete-confirm-pop/ConfirmPop.js +15 -16
- package/lib/components/dialog/index.css +1 -3
- package/lib/components/dialog/index.js +6 -3
- package/lib/components/dialog-confirm/index.css +8 -6
- package/lib/components/drawer/index.js +4 -2
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.css +2 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +3 -1
- package/lib/components/dynamic/components/dynamic-search-input/index.js +7 -5
- package/lib/components/dynamic/constant.js +18 -16
- package/lib/components/dynamic/dynamic-item/components/header/index.js +14 -12
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +7 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +7 -4
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -3
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +9 -7
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +10 -7
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +6 -4
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +10 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/index.js +4 -2
- package/lib/components/dynamic/dynamic-like-ranking/index.js +8 -6
- package/lib/components/dynamic/dynamic-like-ranking/item.js +3 -1
- package/lib/components/dynamic/dynamic-liking/index.js +3 -1
- package/lib/components/dynamic/dynamic-liking/item.js +4 -2
- package/lib/components/dynamic/dynamic-list/index.js +3 -1
- package/lib/components/dynamic/dynamic-topping/index.js +3 -1
- package/lib/components/dynamic/dynamic-topping/item.js +4 -2
- package/lib/components/dynamic/dynamic.js +4 -2
- package/lib/components/dynamic/my-team/index.js +5 -3
- package/lib/components/dynamic/online-broadcast/index.js +4 -2
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +3 -1
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +3 -1
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +3 -1
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +3 -1
- package/lib/components/dynamic/quick-operation/index.js +3 -1
- package/lib/components/dynamic/util.js +15 -13
- package/lib/components/e-priority/index.js +7 -5
- package/lib/components/eReport/eReportLists/reportList.js +9 -7
- package/lib/components/eReport/eReportShare/index.js +4 -2
- package/lib/components/eReport/eReportShare/toast/index.js +3 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +6 -4
- package/lib/components/ereport-list/index.js +7 -5
- package/lib/components/file-list/components/single-file/index.js +5 -3
- package/lib/components/form/form-fields/department/department-input.js +3 -1
- package/lib/components/form/form-fields/duties/duties-input.js +3 -1
- package/lib/components/form/form-fields/input/index.js +3 -0
- package/lib/components/form/form-fields/input-verification-code/index.css +1 -0
- package/lib/components/form/form-fields/input-verification-code/index.js +71 -29
- package/lib/components/form/form-fields/password/index.css +11 -1
- package/lib/components/form/form-fields/password/index.js +24 -11
- package/lib/components/form/form-fields/password/yincang-s.svg +7 -0
- package/lib/components/form/form-fields/user/user-input.js +3 -1
- package/lib/components/grid-layout/near-visitors/index.js +4 -2
- package/lib/components/grid-layout/okr-align/index.js +8 -6
- package/lib/components/grid-layout/okr-progress/index.js +9 -7
- package/lib/components/grid-layout/okr-target/index.js +13 -11
- package/lib/components/grid-layout/over-view/index.js +5 -3
- package/lib/components/grid-layout/personal-info/index.js +5 -3
- package/lib/components/grid-layout/sub-employee-okr/index.js +5 -3
- package/lib/components/grid-layout/week-task/index.js +10 -8
- package/lib/components/grid-layout/words-cloud/index.js +5 -3
- package/lib/components/grid-page/personal-info/index.js +5 -3
- package/lib/components/img-viewer/index.js +6 -4
- package/lib/components/mblog/components/ConfirmPop.js +3 -1
- package/lib/components/mblog/components/MblogAction.js +13 -16
- package/lib/components/mblog/index.js +23 -21
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/menus/components/drag-resize/index.js +4 -2
- package/lib/components/menus/components/flip-menu-card/dark.svg +15 -0
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +3 -1
- package/lib/components/menus/components/flip-menu-card/index.css +21 -0
- package/lib/components/menus/components/flip-menu-card/index.js +45 -15
- package/lib/components/menus/components/flip-menu-card/light.svg +15 -0
- package/lib/components/menus/components/menu-tree/tree-node/assess-manage.js +6 -1
- package/lib/components/menus/components/menu-tree/tree-node/assess-template.js +6 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +2 -0
- package/lib/components/menus/components/menu-tree/tree-node/no-follower.js +3 -1
- package/lib/components/menus/components/search-colleague/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.css +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +5 -3
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +4 -2
- package/lib/components/menus/export-modules/manage-menus/index.css +0 -12
- package/lib/components/menus/export-modules/manage-menus/index.js +33 -4
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +4 -2
- package/lib/components/menus/export-modules/okr-menus/index.js +3 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +3 -1
- package/lib/components/menus/i18n.js +36 -40
- package/lib/components/nav-top/components/user-message/components/empty/index.js +4 -2
- package/lib/components/nav-top/components/user-message/components/remind/index.js +3 -1
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +5 -3
- package/lib/components/nav-top/components/user-message/msg/index.css +4 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +6 -4
- package/lib/components/nav-top/components/user-message/utils.js +3 -1
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.css +22 -1
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +44 -3
- package/lib/components/nav-top/components/user-own-menu/utils.js +60 -26
- package/lib/components/nav-top/components/version/index.css +11 -3
- package/lib/components/nav-top/components/version/index.js +4 -2
- package/lib/components/nav-top/constant.js +11 -5
- package/lib/components/nav-top/request.apis.js +8 -2
- package/lib/components/okr-detail/base-info/base-info.js +16 -13
- package/lib/components/okr-detail/base-info/o-desc/index.js +10 -14
- package/lib/components/okr-detail/base-info/other-infos/classify/index.js +15 -10
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +6 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +12 -10
- package/lib/components/okr-detail/base-info/person/index.js +3 -1
- package/lib/components/okr-detail/components/ao-nice/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +4 -2
- package/lib/components/okr-detail/components/base-okr-type/index.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +22 -18
- package/lib/components/okr-detail/components/header/edit-name.js +5 -3
- package/lib/components/okr-detail/components/header/index.js +3 -1
- package/lib/components/okr-detail/components/header/o-name.js +3 -1
- package/lib/components/okr-detail/components/o-classify.js +6 -4
- package/lib/components/okr-detail/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +12 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +9 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +5 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +9 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +9 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +15 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +5 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +12 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +13 -9
- package/lib/components/okr-detail/components/okr-type.js +5 -3
- package/lib/components/okr-detail/components/score/index.js +3 -1
- package/lib/components/okr-detail/detail-footer/index.js +6 -4
- package/lib/components/okr-detail/detail-header/actions.js +13 -11
- package/lib/components/okr-detail/detail-header/confirm.js +4 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +20 -16
- package/lib/components/okr-detail/detail-header/index.js +8 -6
- package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +7 -5
- package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +10 -8
- package/lib/components/okr-detail/e-list/search-form/fields/e-user.js +3 -1
- package/lib/components/okr-detail/e-list/search-form/index.js +6 -4
- package/lib/components/okr-detail/e-list/util.js +5 -3
- package/lib/components/okr-detail/index.js +8 -6
- package/lib/components/okr-detail/okr-list/add-parent-okr.js +3 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +6 -4
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/empty/index.js +6 -4
- package/lib/components/okr-detail/okr-list/index.js +9 -5
- package/lib/components/okr-detail/okr-list/warp-parent-okr.js +3 -1
- package/lib/components/okr-detail/request-apis.js +3 -1
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +18 -16
- package/lib/components/okr-detail/schedule/util.js +3 -1
- package/lib/components/okr-filter-drawer/filter-form.js +68 -55
- package/lib/components/okr-filter-drawer/index.css +7 -3
- package/lib/components/okr-filter-drawer/index.js +4 -8
- package/lib/components/okr-flow/child-node/work-node.js +18 -14
- package/lib/components/okr-flow/empty/index.js +3 -1
- package/lib/components/okr-flow/export-modal/index.js +4 -2
- package/lib/components/okr-flow/mini-map/index.js +5 -3
- package/lib/components/okr-period-selector/select-cycle.js +6 -4
- package/lib/components/okr-progress/components/kr-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress/index.js +18 -16
- package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-progress/request-apis.js +3 -1
- package/lib/components/okr-progress/util.js +3 -1
- package/lib/components/okr-progress-detail/index.js +10 -7
- package/lib/components/okr-progress-detail/utils.js +5 -3
- package/lib/components/okr-progress-modal/helper.js +126 -81
- package/lib/components/okr-progress-modal/index.js +14 -37
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +18 -16
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/index.js +8 -6
- package/lib/components/okr-review/components/ReviewItem/index.js +5 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +9 -7
- package/lib/components/okr-review/index.js +6 -4
- package/lib/components/okr-share/pink-card/card.js +3 -1
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +4 -2
- package/lib/components/okrcase-library/index.js +4 -2
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +3 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibray-header.js +4 -2
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -2
- package/lib/components/okrcase-library-card/index.js +6 -4
- package/lib/components/operation-records/index.js +3 -1
- package/lib/components/pagination/locale/en_US.js +22 -0
- package/lib/components/pagination/locale/zh_CN.js +22 -0
- package/lib/components/pagination/pagination.js +8 -1
- package/lib/components/password-input/index.js +4 -2
- package/lib/components/period-selector/common.js +19 -9
- package/lib/components/period-selector/components/selector/index.js +45 -18
- package/lib/components/period-selector/mockData.js +97 -83
- package/lib/components/photo-card/components/card/index.js +6 -4
- package/lib/components/photo-card/index.js +4 -2
- package/lib/components/point-demo/constant.js +72 -0
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/index.js +12 -66
- package/lib/components/praise-record/index.js +4 -2
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +9 -6
- package/lib/components/range-picker-pop/index.js +7 -6
- package/lib/components/range-selector-pop/RangeList.js +5 -3
- package/lib/components/scrollbar/simplebar/index.js +2 -0
- package/lib/components/scrollbar/simplebar/scrollbar-width.js +2 -0
- package/lib/components/select-layer/index.js +3 -1
- package/lib/components/select-tags/index.js +3 -1
- package/lib/components/selector-input/index.js +3 -1
- package/lib/components/slider-input/index.js +3 -1
- package/lib/components/status-time/index.js +5 -3
- package/lib/components/table/index.js +3 -1
- package/lib/components/task-relation-modal/index.js +8 -6
- package/lib/components/task-relation-modal/search/category-select.js +6 -4
- package/lib/components/task-relation-modal/search/okr-status-select.js +6 -4
- package/lib/components/task-relation-modal/search/okr-type-select.js +8 -6
- package/lib/components/task-relation-modal/search/principal.js +4 -2
- package/lib/components/task-relation-modal/search/relation.js +8 -6
- package/lib/components/task-relation-modal/tree/category-tree/index.js +5 -3
- package/lib/components/task-relation-modal/tree/category-tree/search-form.js +3 -1
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +6 -4
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +3 -1
- package/lib/components/task-relation-modal/tree/work-tree/index.js +7 -5
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +3 -1
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +5 -3
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +4 -2
- package/lib/components/tita-chart/charts/liquid-ball.js +3 -1
- package/lib/components/tita-chart/charts/words-cloud.js +8 -6
- package/lib/components/update-modal/index.js +3 -1
- package/lib/components/upload/components/uploadedPreview.js +8 -6
- package/lib/components/upload/index.js +5 -3
- package/lib/components/upload-photo-modal/index.css +2 -4
- package/lib/components/upvote/attitude.js +31 -25
- package/lib/components/upvote/index.js +7 -5
- package/lib/components/upvote/selector.js +1 -1
- package/lib/components/upvote/upvoteListModal.js +3 -1
- package/lib/components/user-selector/action-btns/btn-cancel.js +3 -1
- package/lib/components/user-selector/action-btns/btn-ok.js +3 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -0
- package/lib/components/user-selector/category-selector-panel/index.js +6 -21
- package/lib/components/user-selector/constant.js +29 -0
- package/lib/components/user-selector/empty/group.js +3 -1
- package/lib/components/user-selector/empty/index.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +5 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +3 -1
- package/lib/components/user-selector/searched-panel/index.js +5 -3
- package/lib/components/user-selector/selected-panel/index.js +8 -6
- package/lib/components/version-change-modal/constant.js +35 -29
- package/lib/components/version-change-modal/index.js +6 -4
- package/lib/components/weekly-report/index.js +4 -2
- package/lib/components/weekly-report/statistics.js +3 -1
- package/lib/components/word-cloud/index.js +1 -1
- package/lib/components-v1/confirm/index.js +4 -2
- package/lib/components-v1/popConfirm/index.js +4 -2
- package/lib/components-v1/progress/CircleProgress.js +1 -1
- package/lib/components-v1/radio/radioGroup.js +1 -1
- package/lib/components-v1/search/index.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +4 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/index.js +8 -6
- package/lib/components-v1/userSelector/components/SearchBar.js +3 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/components-v1/userSelector/index.js +5 -3
- package/lib/pages/appointment-demo/drop-down-box/index.js +3 -1
- package/lib/pages/appointment-demo/index.js +18 -16
- package/lib/pages/group-management/page-view/empty.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +6 -4
- package/lib/pages/group-management/table/index.js +4 -2
- package/lib/pages/group-management/tree/add-group-dialog/index.js +4 -2
- package/lib/pages/group-management/tree/delete-group-dialog/index.js +4 -2
- package/lib/pages/group-management/tree/edit-group-dialog/index.js +4 -2
- package/lib/pages/group-management/tree/group-form/index.js +4 -2
- package/lib/pages/group-management/tree/operation-panel.js +4 -2
- package/lib/pages/group-management/tree/trigger-render.js +3 -1
- package/lib/pages/home/components/data-list/index.js +13 -11
- package/lib/pages/home/components/data-list/nav-selector/index.js +15 -13
- package/lib/pages/home/components/data-list/table/columns/index.js +16 -14
- package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +7 -5
- package/lib/pages/home/components/data-list/table/utils-function.js +3 -1
- package/lib/pages/home/components/guide/index.js +14 -12
- package/lib/pages/home/components/header/index.js +3 -1
- package/lib/pages/home-page-data-list/index.js +13 -11
- package/lib/pages/like-ranking/column.js +8 -6
- package/lib/pages/like-ranking/filter-buttons/department.js +3 -1
- package/lib/pages/like-ranking/filter-buttons/group.js +3 -1
- package/lib/pages/like-ranking/filter-buttons/modular.js +20 -14
- package/lib/pages/like-ranking/filter-buttons/name.js +3 -1
- package/lib/pages/like-ranking/filter-buttons/timer.js +3 -1
- package/lib/pages/like-ranking/index.js +10 -8
- package/lib/pages/new-okr-list/header/comments.js +3 -1
- package/lib/pages/new-okr-list/header/create-okr.js +3 -1
- package/lib/pages/new-okr-list/header/depart-title.js +4 -2
- package/lib/pages/new-okr-list/header/filter.js +3 -1
- package/lib/pages/new-okr-list/header/index.js +3 -1
- package/lib/pages/new-okr-list/header/relation-title.js +4 -2
- package/lib/pages/new-okr-list/index.js +4 -2
- package/lib/pages/new-okr-list/keyword-search/index.js +3 -1
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +16 -14
- package/lib/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +6 -4
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +6 -4
- package/lib/pages/okr-map/level2-search/level2-input.js +3 -1
- package/lib/pages/okr-map/no-okr/index.js +3 -1
- package/lib/pages/okr-map/number-select/index.js +3 -1
- package/lib/pages/okr-map/share-dialog/index.js +8 -6
- package/lib/pages/personal-info/components/base-info/index.css +2 -2
- package/lib/pages/personal-info/components/base-info/index.js +8 -6
- package/lib/pages/personal-info/components/edit-base-info/index.js +19 -9
- package/lib/utils/date-test-change.js +5 -3
- package/lib/utils/format-time.js +5 -3
- package/lib/utils/getLocale.js +17 -0
- package/package.json +2 -1
- package/src/components/avatar/icon-avatar/index.tsx +2 -2
- package/src/components/button/default-button/index.tsx +3 -2
- package/src/components/button/rect-btn/index.tsx +2 -1
- package/src/components/button/text-btn/index.tsx +2 -1
- package/src/components/cascader/index.tsx +2 -1
- package/src/components/change-okr-modal/Filter.tsx +49 -109
- package/src/components/change-okr-modal/Item.tsx +17 -14
- package/src/components/change-okr-modal/constant.ts +156 -0
- package/src/components/change-okr-modal/filterTab.tsx +0 -2
- package/src/components/change-okr-modal/index.tsx +8 -9
- package/src/components/common-share/publishMblog.tsx +3 -2
- package/src/components/communication/CommunicationAttachments.tsx +7 -6
- package/src/components/communication/CommunicationRecord.tsx +6 -8
- package/src/components/communication/index.tsx +5 -4
- package/src/components/confidence/index.tsx +3 -2
- package/src/components/create-okr-modal/constant.ts +21 -12
- package/src/components/create-okr-modal/createCycle.tsx +5 -6
- package/src/components/create-okr-modal/createSuccessCmp.tsx +7 -6
- package/src/components/create-okr-modal/fields/date-cycle.tsx +4 -3
- package/src/components/create-okr-modal/fields/o-new-name.tsx +13 -10
- package/src/components/create-okr-modal/fields/okr-case.tsx +3 -2
- package/src/components/create-okr-modal/fields/okr-classify.tsx +11 -7
- package/src/components/create-okr-modal/fields/okr-create-suggest.tsx +5 -4
- package/src/components/create-okr-modal/fields/okr-parent.tsx +4 -3
- package/src/components/create-okr-modal/fields/okr-type-detail.tsx +6 -5
- package/src/components/create-okr-modal/fields/okr-type.tsx +6 -5
- package/src/components/create-okr-modal/fields/okr-visibility-detail.tsx +7 -6
- package/src/components/create-okr-modal/fields/okr-visibility.tsx +19 -14
- package/src/components/create-okr-modal/index.tsx +32 -27
- package/src/components/create-okr-modal/kr-items/kr-item-weight.tsx +2 -1
- package/src/components/create-okr-modal/kr-items/krDatas.tsx +4 -3
- package/src/components/create-okr-modal/kr-items/krItem.tsx +2 -1
- package/src/components/create-okr-modal/objectType.tsx +14 -11
- package/src/components/create-okr-modal/style.ts +1 -1
- package/src/components/date-picker/CalendarBody.js +8 -7
- package/src/components/delete-confirm-pop/ConfirmPop.tsx +7 -17
- package/src/components/dialog/index.js +4 -3
- package/src/components/dialog/index.scss +1 -3
- package/src/components/dialog-confirm/index.scss +8 -6
- package/src/components/drawer/index.tsx +3 -2
- package/src/components/drawer-manager/index.tsx +1 -1
- package/src/components/drop-selector/index.scss +2 -0
- package/src/components/dynamic/components/dynamic-search-input/index.scss +3 -1
- package/src/components/dynamic/components/dynamic-search-input/index.tsx +6 -5
- package/src/components/dynamic/constant.ts +23 -21
- package/src/components/dynamic/dynamic-item/components/header/index.tsx +13 -12
- package/src/components/dynamic/dynamic-item/dynamic-align/index.tsx +3 -2
- package/src/components/dynamic/dynamic-item/dynamic-announcement/index.tsx +2 -1
- package/src/components/dynamic/dynamic-item/dynamic-assessment/index.tsx +3 -2
- package/src/components/dynamic/dynamic-item/dynamic-create-o/index.tsx +6 -5
- package/src/components/dynamic/dynamic-item/dynamic-kr/index.tsx +4 -2
- package/src/components/dynamic/dynamic-item/dynamic-milestone/constant.ts +6 -4
- package/src/components/dynamic/dynamic-item/dynamic-milestone/index.tsx +16 -3
- package/src/components/dynamic/dynamic-item/dynamic-progress/index.tsx +8 -7
- package/src/components/dynamic/dynamic-item/dynamic-project/constant.ts +9 -7
- package/src/components/dynamic/dynamic-item/dynamic-project/index.tsx +2 -1
- package/src/components/dynamic/dynamic-item/dynamic-relative/index.tsx +3 -2
- package/src/components/dynamic/dynamic-item/dynamic-replay/index.tsx +4 -3
- package/src/components/dynamic/dynamic-item/dynamic-report/index.tsx +4 -3
- package/src/components/dynamic/dynamic-item/dynamic-reward/index.tsx +5 -4
- package/src/components/dynamic/dynamic-item/dynamic-share/index.tsx +2 -1
- package/src/components/dynamic/dynamic-item/dynamic-task/constant.ts +9 -7
- package/src/components/dynamic/dynamic-item/dynamic-task/index.tsx +4 -3
- package/src/components/dynamic/dynamic-item/index.tsx +3 -2
- package/src/components/dynamic/dynamic-like-ranking/index.tsx +7 -6
- package/src/components/dynamic/dynamic-like-ranking/item.tsx +2 -2
- package/src/components/dynamic/dynamic-liking/index.tsx +2 -1
- package/src/components/dynamic/dynamic-liking/item.tsx +3 -2
- package/src/components/dynamic/dynamic-list/index.tsx +2 -1
- package/src/components/dynamic/dynamic-topping/index.tsx +2 -1
- package/src/components/dynamic/dynamic-topping/item.tsx +3 -2
- package/src/components/dynamic/dynamic.tsx +3 -2
- package/src/components/dynamic/my-team/index.tsx +4 -3
- package/src/components/dynamic/online-broadcast/index.tsx +3 -2
- package/src/components/dynamic/quick-operation/components/create-announcement/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/components/create-okr/index.tsx +3 -2
- package/src/components/dynamic/quick-operation/components/create-share/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/components/create-task/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/index.tsx +2 -1
- package/src/components/dynamic/util.ts +14 -13
- package/src/components/e-priority/index.js +6 -5
- package/src/components/eReport/eReportLists/reportList.tsx +8 -7
- package/src/components/eReport/eReportShare/index.tsx +3 -2
- package/src/components/eReport/eReportShare/toast/index.tsx +2 -1
- package/src/components/edit-kr-wight/EditKrWightModal.tsx +5 -4
- package/src/components/ereport-list/index.tsx +6 -5
- package/src/components/file-list/components/single-file/index.tsx +4 -3
- package/src/components/form/form-fields/department/department-input.tsx +2 -1
- package/src/components/form/form-fields/duties/duties-input.tsx +2 -1
- package/src/components/form/form-fields/input/index.tsx +5 -0
- package/src/components/form/form-fields/input-verification-code/index.scss +1 -0
- package/src/components/form/form-fields/input-verification-code/index.tsx +16 -11
- package/src/components/form/form-fields/password/index.scss +10 -1
- package/src/components/form/form-fields/password/index.tsx +15 -5
- package/src/components/form/form-fields/password/yincang-s.svg +7 -0
- package/src/components/form/form-fields/user/user-input.tsx +2 -1
- package/src/components/grid-layout/near-visitors/index.tsx +3 -2
- package/src/components/grid-layout/okr-align/index.tsx +7 -6
- package/src/components/grid-layout/okr-progress/index.tsx +8 -7
- package/src/components/grid-layout/okr-target/index.tsx +12 -11
- package/src/components/grid-layout/over-view/index.tsx +4 -4
- package/src/components/grid-layout/personal-info/index.tsx +4 -3
- package/src/components/grid-layout/sub-employee-okr/index.tsx +4 -3
- package/src/components/grid-layout/week-task/index.tsx +8 -7
- package/src/components/grid-layout/words-cloud/index.tsx +4 -3
- package/src/components/grid-page/personal-info/index.tsx +4 -3
- package/src/components/img-viewer/index.tsx +5 -4
- package/src/components/mblog/components/ConfirmPop.tsx +2 -1
- package/src/components/mblog/components/MblogAction.tsx +14 -15
- package/src/components/mblog/index.tsx +17 -26
- package/src/components/mblog/style.ts +5 -5
- package/src/components/menus/components/drag-resize/index.tsx +3 -2
- package/src/components/menus/components/flip-menu-card/dark.svg +15 -0
- package/src/components/menus/components/flip-menu-card/flip-back-header.tsx +2 -1
- package/src/components/menus/components/flip-menu-card/index.scss +19 -0
- package/src/components/menus/components/flip-menu-card/index.tsx +173 -125
- package/src/components/menus/components/flip-menu-card/light.svg +15 -0
- package/src/components/menus/components/menu-tree/tree-node/assess-manage.tsx +4 -1
- package/src/components/menus/components/menu-tree/tree-node/assess-template.tsx +4 -1
- package/src/components/menus/components/menu-tree/tree-node/index.scss +2 -0
- package/src/components/menus/components/menu-tree/tree-node/no-follower.tsx +2 -1
- package/src/components/menus/components/search-colleague/index.tsx +1 -1
- package/src/components/menus/export-modules/appraisal-menus/index.scss +1 -1
- package/src/components/menus/export-modules/appraisal-menus/index.tsx +4 -3
- package/src/components/menus/export-modules/appraisal-menus/menus.ts +3 -2
- package/src/components/menus/export-modules/manage-menus/index.scss +0 -13
- package/src/components/menus/export-modules/manage-menus/index.tsx +41 -10
- package/src/components/menus/export-modules/okr-menus/depart-menus/index.tsx +3 -2
- package/src/components/menus/export-modules/okr-menus/index.tsx +2 -1
- package/src/components/menus/export-modules/okr-menus/menus.ts +2 -1
- package/src/components/menus/i18n.ts +43 -46
- package/src/components/nav-top/components/user-message/components/empty/index.tsx +3 -2
- package/src/components/nav-top/components/user-message/components/remind/index.tsx +2 -1
- package/src/components/nav-top/components/user-message/components/remind/remind-item.tsx +4 -3
- package/src/components/nav-top/components/user-message/msg/index.scss +3 -0
- package/src/components/nav-top/components/user-message/msg/index.tsx +5 -4
- package/src/components/nav-top/components/user-message/utils.ts +3 -1
- package/src/components/nav-top/components/user-own-menu/components/own-menu/index.scss +21 -1
- package/src/components/nav-top/components/user-own-menu/components/own-menu/index.tsx +64 -3
- package/src/components/nav-top/components/user-own-menu/utils.ts +71 -46
- package/src/components/nav-top/components/version/index.scss +11 -3
- package/src/components/nav-top/components/version/index.tsx +4 -3
- package/src/components/nav-top/constant.ts +7 -7
- package/src/components/nav-top/interface.ts +2 -1
- package/src/components/nav-top/request.apis.ts +4 -0
- package/src/components/okr-detail/base-info/base-info.tsx +13 -14
- package/src/components/okr-detail/base-info/o-desc/index.tsx +8 -15
- package/src/components/okr-detail/base-info/other-infos/classify/index.tsx +7 -6
- package/src/components/okr-detail/base-info/other-infos/date-cycle/index.tsx +2 -1
- package/src/components/okr-detail/base-info/other-infos/okr-type/index.tsx +5 -4
- package/src/components/okr-detail/base-info/other-infos/principal/index.tsx +2 -1
- package/src/components/okr-detail/base-info/other-infos/visibility/index.tsx +11 -10
- package/src/components/okr-detail/base-info/person/index.tsx +2 -1
- package/src/components/okr-detail/components/ao-nice/index.js +3 -3
- package/src/components/okr-detail/components/base-okr-type/confirm/confirm.tsx +3 -2
- package/src/components/okr-detail/components/base-okr-type/index.tsx +1 -1
- package/src/components/okr-detail/components/base-okr-type/object-type.tsx +11 -10
- package/src/components/okr-detail/components/header/edit-name.tsx +4 -3
- package/src/components/okr-detail/components/header/index.js +2 -1
- package/src/components/okr-detail/components/header/o-name.tsx +2 -1
- package/src/components/okr-detail/components/o-classify.tsx +5 -4
- package/src/components/okr-detail/components/o-progress-update/index.tsx +3 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -10
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/constant.ts +8 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +2 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +6 -5
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +4 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +7 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +8 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +8 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +7 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +3 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +14 -13
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +10 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +12 -9
- package/src/components/okr-detail/components/okr-type.tsx +5 -3
- package/src/components/okr-detail/components/score/index.tsx +2 -1
- package/src/components/okr-detail/detail-footer/index.tsx +5 -4
- package/src/components/okr-detail/detail-header/actions.tsx +12 -11
- package/src/components/okr-detail/detail-header/confirm.tsx +5 -6
- package/src/components/okr-detail/detail-header/delete-confirm/delete-confirm.tsx +8 -7
- package/src/components/okr-detail/detail-header/index.tsx +7 -6
- package/src/components/okr-detail/e-list/search-form/fields/e-order.js +6 -5
- package/src/components/okr-detail/e-list/search-form/fields/e-status.js +9 -8
- package/src/components/okr-detail/e-list/search-form/fields/e-user.js +2 -1
- package/src/components/okr-detail/e-list/search-form/index.js +5 -5
- package/src/components/okr-detail/e-list/util.ts +4 -3
- package/src/components/okr-detail/index.js +7 -6
- package/src/components/okr-detail/okr-list/add-parent-okr.js +2 -1
- package/src/components/okr-detail/okr-list/create-kr-item/index.tsx +6 -5
- package/src/components/okr-detail/okr-list/create-kr-item/style.ts +1 -1
- package/src/components/okr-detail/okr-list/empty/index.js +5 -4
- package/src/components/okr-detail/okr-list/index.js +6 -5
- package/src/components/okr-detail/okr-list/warp-parent-okr.js +2 -1
- package/src/components/okr-detail/request-apis.ts +2 -1
- package/src/components/okr-detail/schedule/components/kr-progress/index.tsx +2 -1
- package/src/components/okr-detail/schedule/components/o-progress/index.tsx +17 -16
- package/src/components/okr-detail/schedule/util.ts +3 -1
- package/src/components/okr-filter-drawer/filter-form.tsx +83 -79
- package/src/components/okr-filter-drawer/index.scss +6 -4
- package/src/components/okr-filter-drawer/index.tsx +4 -7
- package/src/components/okr-flow/child-node/work-node.js +11 -8
- package/src/components/okr-flow/empty/index.js +2 -1
- package/src/components/okr-flow/export-modal/index.tsx +3 -2
- package/src/components/okr-flow/mini-map/index.js +4 -3
- package/src/components/okr-period-selector/select-cycle.tsx +12 -12
- package/src/components/okr-progress/components/kr-progress/index.tsx +2 -1
- package/src/components/okr-progress/components/o-progress/index.tsx +17 -16
- package/src/components/okr-progress/components/o-progress-update/index.tsx +3 -2
- package/src/components/okr-progress/request-apis.ts +2 -1
- package/src/components/okr-progress/util.ts +2 -1
- package/src/components/okr-progress-detail/index.tsx +110 -55
- package/src/components/okr-progress-detail/utils.ts +4 -3
- package/src/components/okr-progress-modal/helper.js +104 -64
- package/src/components/okr-progress-modal/index.tsx +15 -50
- package/src/components/okr-review/ReviewPop/components/ReviewBody/index.tsx +19 -17
- package/src/components/okr-review/ReviewPop/components/ReviewBody/style.ts +1 -1
- package/src/components/okr-review/ReviewPop/index.tsx +7 -7
- package/src/components/okr-review/components/ReviewItem/index.tsx +4 -3
- package/src/components/okr-review/components/confirm-pop/ConfirmPop.tsx +4 -6
- package/src/components/okr-review/index.tsx +5 -4
- package/src/components/okr-share/pink-card/card.tsx +2 -1
- package/src/components/okr-share/publishMblog.tsx +3 -4
- package/src/components/okr-share/shareCardSelector.tsx +5 -4
- package/src/components/okrcase-library/index.tsx +4 -3
- package/src/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.tsx +5 -4
- package/src/components/okrcase-library/okrcases-components/caseLibrary-main.tsx +2 -1
- package/src/components/okrcase-library/okrcases-components/caseLibray-header.tsx +23 -17
- package/src/components/okrcase-library/okrcases-components/submitOkr-dialog.tsx +3 -2
- package/src/components/okrcase-library-card/index.tsx +5 -6
- package/src/components/operation-records/index.tsx +2 -1
- package/src/components/pagination/locale/en_US.js +16 -0
- package/src/components/pagination/locale/zh_CN.js +16 -0
- package/src/components/pagination/pagination.tsx +4 -0
- package/src/components/password-input/index.tsx +8 -11
- package/src/components/period-selector/common.ts +29 -12
- package/src/components/period-selector/components/selector/index.tsx +44 -18
- package/src/components/period-selector/mockData.ts +30 -28
- package/src/components/photo-card/components/card/index.tsx +5 -4
- package/src/components/photo-card/index.tsx +3 -2
- package/src/components/point-demo/constant.ts +27 -0
- package/src/components/point-demo/drop-down-box/index.js +1 -1
- package/src/components/point-demo/index.js +13 -33
- package/src/components/praise-record/index.tsx +3 -2
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.scss +1 -1
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +7 -5
- package/src/components/range-picker-pop/index.js +6 -10
- package/src/components/range-selector-pop/RangeList.tsx +5 -4
- package/src/components/scrollbar/simplebar/index.js +1 -0
- package/src/components/scrollbar/simplebar/scrollbar-width.js +1 -0
- package/src/components/select-layer/index.tsx +2 -1
- package/src/components/select-tags/index.tsx +2 -1
- package/src/components/selector-input/index.js +2 -1
- package/src/components/slider-input/index.js +2 -1
- package/src/components/status-time/index.tsx +4 -3
- package/src/components/table/index.js +3 -2
- package/src/components/task-relation-modal/index.tsx +7 -6
- package/src/components/task-relation-modal/search/category-select.tsx +5 -4
- package/src/components/task-relation-modal/search/okr-status-select.tsx +5 -4
- package/src/components/task-relation-modal/search/okr-type-select.tsx +7 -6
- package/src/components/task-relation-modal/search/principal.tsx +4 -2
- package/src/components/task-relation-modal/search/relation.tsx +7 -6
- package/src/components/task-relation-modal/tree/category-tree/index.tsx +4 -3
- package/src/components/task-relation-modal/tree/category-tree/search-form.tsx +2 -1
- package/src/components/task-relation-modal/tree/okr-tree/index.tsx +5 -4
- package/src/components/task-relation-modal/tree/okr-tree/search-form.tsx +3 -2
- package/src/components/task-relation-modal/tree/work-tree/index.tsx +6 -5
- package/src/components/task-relation-modal/tree/work-tree/search-form.tsx +2 -1
- package/src/components/task-relation-modal/tree-node/milestone-node/index.tsx +4 -3
- package/src/components/task-relation-modal/tree-node/work-node/index.tsx +3 -2
- package/src/components/tita-chart/charts/liquid-ball.tsx +2 -1
- package/src/components/tita-chart/charts/words-cloud.tsx +7 -6
- package/src/components/update-modal/index.tsx +2 -1
- package/src/components/upload/components/uploadedPreview.tsx +7 -6
- package/src/components/upload/index.tsx +3 -4
- package/src/components/upload-photo-modal/index.scss +2 -4
- package/src/components/upvote/attitude.ts +36 -32
- package/src/components/upvote/index.tsx +7 -6
- package/src/components/upvote/selector.tsx +2 -2
- package/src/components/upvote/upvoteListModal.tsx +2 -1
- package/src/components/user-selector/action-btns/btn-cancel.js +2 -1
- package/src/components/user-selector/action-btns/btn-ok.js +2 -1
- package/src/components/user-selector/category-selector-panel/depart-tree.tsx +3 -2
- package/src/components/user-selector/category-selector-panel/index.tsx +3 -13
- package/src/components/user-selector/constant.ts +16 -0
- package/src/components/user-selector/empty/group.js +2 -2
- package/src/components/user-selector/empty/index.js +2 -1
- package/src/components/user-selector/export-modules/field-tree-selector/index.scss +1 -1
- package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +5 -2
- package/src/components/user-selector/export-modules/multiple-user-selector--bak/index.js +2 -1
- package/src/components/user-selector/searched-panel/index.js +4 -4
- package/src/components/user-selector/selected-panel/index.tsx +7 -6
- package/src/components/version-change-modal/constant.ts +54 -44
- package/src/components/version-change-modal/index.tsx +5 -4
- package/src/components/weekly-report/index.tsx +4 -3
- package/src/components/weekly-report/statistics.tsx +2 -1
- package/src/components/word-cloud/index.js +1 -1
- package/src/components-v1/confirm/index.tsx +3 -2
- package/src/components-v1/popConfirm/index.tsx +3 -2
- package/src/components-v1/progress/CircleProgress.js +1 -1
- package/src/components-v1/radio/radioGroup.tsx +1 -1
- package/src/components-v1/search/index.tsx +2 -4
- package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +3 -2
- package/src/components-v1/userSelector/components/MultiMode/DepartmentList.tsx +1 -1
- package/src/components-v1/userSelector/components/MultiMode/SubsList.tsx +1 -1
- package/src/components-v1/userSelector/components/MultiMode/index.tsx +7 -6
- package/src/components-v1/userSelector/components/SearchBar.tsx +2 -1
- package/src/components-v1/userSelector/components/SingleMode.tsx +1 -1
- package/src/components-v1/userSelector/index.tsx +4 -3
- package/src/index.d.ts +2 -0
- package/src/pages/appointment-demo/drop-down-box/index.js +2 -1
- package/src/pages/appointment-demo/index.js +17 -16
- package/src/pages/group-management/page-view/empty.js +1 -1
- package/src/pages/group-management/page-view/importGroupStaff/index.js +5 -4
- package/src/pages/group-management/table/index.js +3 -2
- package/src/pages/group-management/tree/add-group-dialog/index.js +3 -2
- package/src/pages/group-management/tree/delete-group-dialog/index.js +3 -2
- package/src/pages/group-management/tree/edit-group-dialog/index.js +3 -2
- package/src/pages/group-management/tree/group-form/index.js +3 -2
- package/src/pages/group-management/tree/operation-panel.js +3 -2
- package/src/pages/group-management/tree/trigger-render.js +2 -1
- package/src/pages/home/components/data-list/index.tsx +12 -11
- package/src/pages/home/components/data-list/nav-selector/index.tsx +14 -14
- package/src/pages/home/components/data-list/table/columns/index.tsx +15 -14
- package/src/pages/home/components/data-list/table/columns/progressAndRisk.tsx +6 -5
- package/src/pages/home/components/data-list/table/utils-function.ts +2 -1
- package/src/pages/home/components/guide/index.tsx +13 -12
- package/src/pages/home/components/header/index.tsx +2 -1
- package/src/pages/home-page-data-list/index.tsx +12 -11
- package/src/pages/like-ranking/column.tsx +9 -9
- package/src/pages/like-ranking/filter-buttons/department.tsx +3 -2
- package/src/pages/like-ranking/filter-buttons/group.tsx +2 -1
- package/src/pages/like-ranking/filter-buttons/modular.tsx +11 -8
- package/src/pages/like-ranking/filter-buttons/name.tsx +2 -1
- package/src/pages/like-ranking/filter-buttons/timer.tsx +2 -1
- package/src/pages/like-ranking/index.tsx +9 -8
- package/src/pages/new-okr-list/context.ts +1 -1
- package/src/pages/new-okr-list/header/comments.tsx +2 -1
- package/src/pages/new-okr-list/header/create-okr.tsx +2 -1
- package/src/pages/new-okr-list/header/depart-title.tsx +3 -2
- package/src/pages/new-okr-list/header/filter.tsx +2 -1
- package/src/pages/new-okr-list/header/index.tsx +2 -1
- package/src/pages/new-okr-list/header/relation-title.tsx +3 -2
- package/src/pages/new-okr-list/index.tsx +4 -3
- package/src/pages/new-okr-list/keyword-search/index.tsx +2 -1
- package/src/pages/okr-map/export-modules/okr-map/header/index.js +15 -14
- package/src/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +5 -4
- package/src/pages/okr-map/export-modules/share-okr-page/header/index.js +5 -4
- package/src/pages/okr-map/level2-search/level2-input.js +2 -1
- package/src/pages/okr-map/no-okr/index.js +2 -1
- package/src/pages/okr-map/number-select/index.js +2 -1
- package/src/pages/okr-map/share-dialog/index.js +7 -6
- package/src/pages/personal-info/components/base-info/index.scss +2 -2
- package/src/pages/personal-info/components/base-info/index.tsx +6 -5
- package/src/pages/personal-info/components/edit-base-info/index.tsx +17 -15
- package/src/utils/date-test-change.ts +5 -3
- package/src/utils/format-time.ts +5 -3
- package/src/utils/getLocale.ts +9 -0
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import Switch from "../../../components/switch";
|
|
3
3
|
import Tooltip from "../../../components/tooltip";
|
|
4
4
|
import { OpenDepartmentName } from "../../../utils/open-data";
|
|
5
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
5
6
|
import { precls } from "../precls";
|
|
6
7
|
import "./index.scss";
|
|
7
8
|
interface IProps {
|
|
@@ -37,7 +38,7 @@ const DepartTitle = (props: IProps) => {
|
|
|
37
38
|
maxWidth={160}
|
|
38
39
|
text={
|
|
39
40
|
<>
|
|
40
|
-
{departmentId == 0 && '
|
|
41
|
+
{departmentId == 0 && getLocale('OKR_CompanyAll_Allobje')}
|
|
41
42
|
{departmentId != 0 && (
|
|
42
43
|
<OpenDepartmentName name={departmentName} id={departmentId} />
|
|
43
44
|
)}
|
|
@@ -50,7 +51,7 @@ const DepartTitle = (props: IProps) => {
|
|
|
50
51
|
label={
|
|
51
52
|
<span>
|
|
52
53
|
<Tooltip
|
|
53
|
-
overlay=
|
|
54
|
+
overlay={getLocale('OKR_ComAll_Wswitchon')}
|
|
54
55
|
placement="top"
|
|
55
56
|
>
|
|
56
57
|
<span
|
|
@@ -5,6 +5,7 @@ import PeriodSelector from "../../../components/period-selector";
|
|
|
5
5
|
import { localStorage } from "../../../utils/local-storage";
|
|
6
6
|
import { getQueryString } from "../../../utils/tools";
|
|
7
7
|
import { precls } from "../precls";
|
|
8
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
8
9
|
|
|
9
10
|
const Filter = (props) => {
|
|
10
11
|
const useLocalStorage = new localStorage();
|
|
@@ -83,7 +84,7 @@ const Filter = (props) => {
|
|
|
83
84
|
|
|
84
85
|
<span className={`${precls}__header-filter-right`}>
|
|
85
86
|
<span className={`${precls}__header-filter-line`}></span>
|
|
86
|
-
<Tooltip overlay=
|
|
87
|
+
<Tooltip overlay={getLocale('OKR_MyO_Text_Screening')} placement="top">
|
|
87
88
|
<span
|
|
88
89
|
className={`tu-icon-shaixuan ${precls}__header-filter-shaixuan`}
|
|
89
90
|
onClick={openFilterDrawer}
|
|
@@ -18,6 +18,7 @@ import Filter from "./filter";
|
|
|
18
18
|
import Comments from "./comments";
|
|
19
19
|
import { Context } from "../context";
|
|
20
20
|
import { getUserInfoById } from "../request-api";
|
|
21
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
21
22
|
import "./index.scss";
|
|
22
23
|
|
|
23
24
|
const Header = (props, ref) => {
|
|
@@ -145,7 +146,7 @@ const Header = (props, ref) => {
|
|
|
145
146
|
<CreateOkr ref={createOkrRef} onFrontAddOKR={onFrontAddOKR} />
|
|
146
147
|
</div>
|
|
147
148
|
<div className={`${precls}__header-item`} onClick={gotoOkrMap}>
|
|
148
|
-
<Tooltip overlay=
|
|
149
|
+
<Tooltip overlay={getLocale('OKR_MyO_Text_Alignment')} placement="top">
|
|
149
150
|
<span className={`${precls}__header-icon`}>
|
|
150
151
|
<span className="tu-icon-yangshi-ditu" />
|
|
151
152
|
</span>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { precls } from "../precls";
|
|
3
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
3
4
|
import "./index.scss";
|
|
4
5
|
|
|
5
6
|
const RelationTitle = ({ relation }) => {
|
|
6
7
|
const relationTitle = {
|
|
7
|
-
"2":
|
|
8
|
-
"3":
|
|
8
|
+
"2": getLocale('OKR_Menu_Title_Collaborator'),
|
|
9
|
+
"3": getLocale('OKR_Menu_Title_FollowingOKRs'),
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
return (
|
|
@@ -22,6 +22,7 @@ import ERROR_LEVEL from "../../utils/error-level";
|
|
|
22
22
|
import { okrSearch, okrList, visitOkrCyclePag } from "./request-api";
|
|
23
23
|
import { Context } from "./context";
|
|
24
24
|
import { precls } from "./precls";
|
|
25
|
+
import { getLocale } from "../../utils/getLocale";
|
|
25
26
|
import "./index.scss";
|
|
26
27
|
import "./theme.scss";
|
|
27
28
|
|
|
@@ -251,11 +252,11 @@ const NewOkrList = (props) => {
|
|
|
251
252
|
<InitCycleSetting SetCycleModal={SetCycleModal} />
|
|
252
253
|
{!loading && (
|
|
253
254
|
<div className='okr-list__check-filter-tips'>
|
|
254
|
-
|
|
255
|
+
{getLocale('OKR_MyO_Text_CanfindOKR')}
|
|
255
256
|
<span className='okr-list__check-filter-btn' onClick={triggerAnimation}>
|
|
256
|
-
|
|
257
|
+
{getLocale('OKR_MyO_Text_Check')}
|
|
257
258
|
</span>
|
|
258
|
-
|
|
259
|
+
{getLocale('OKR_MyO_Text_Topfiltercriteria')}
|
|
259
260
|
</div>
|
|
260
261
|
)}
|
|
261
262
|
<Dialog
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import React, { useState, useRef } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
4
5
|
import './index.scss';
|
|
5
6
|
|
|
6
7
|
const precls = 'titaui-keyword-search';
|
|
@@ -44,7 +45,7 @@ const KeywordSearch = (props: IProps) => {;
|
|
|
44
45
|
|
|
45
46
|
return <div className={classnames(precls, {[`${precls}--active`]: active})}>
|
|
46
47
|
<span className={`${precls}__input` }>
|
|
47
|
-
<input value={keyword} onKeyUp={handleOnKeyDown} onChange={changeValue} ref={inputRef} onBlur={handleOnBlur} placeholder='
|
|
48
|
+
<input value={keyword} onKeyUp={handleOnKeyDown} onChange={changeValue} ref={inputRef} onBlur={handleOnBlur} placeholder={getLocale('Mod_Enterkeywords')} />
|
|
48
49
|
</span>
|
|
49
50
|
{
|
|
50
51
|
keyword.length > 0 &&
|
|
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import Switch from '../../../../../components/switch';
|
|
4
4
|
import Popup from '../../../../../components/popup';
|
|
5
|
+
import { getLocale } from '../../../../../utils/getLocale';
|
|
5
6
|
import SearchDropdown from '../../../../../components/search-dropdown';
|
|
6
7
|
import PeriodSelector from '../../../../../components/period-selector';
|
|
7
8
|
import IconButtonList from '../../../../../components/icon-button-list';
|
|
@@ -34,19 +35,19 @@ export default props => {
|
|
|
34
35
|
const [visible, setVisible] = useState(false);
|
|
35
36
|
|
|
36
37
|
const iconButtons = [
|
|
37
|
-
{ 'icon': 'export', 'overlay': '
|
|
38
|
-
{ 'icon': 'share', 'overlay': '
|
|
39
|
-
{ 'icon': fullScreen ? 'quit-fullscreen' : 'fullscreen', 'overlay': '
|
|
40
|
-
{ 'icon': direction == 'horizontal' ? 'vertical' : 'horizontal', 'overlay': direction == 'horizontal' ? '
|
|
38
|
+
{ 'icon': 'export', 'overlay': getLocale('Mod_Export') },
|
|
39
|
+
{ 'icon': 'share', 'overlay': getLocale('OKR_MyO_Share') },
|
|
40
|
+
{ 'icon': fullScreen ? 'quit-fullscreen' : 'fullscreen', 'overlay': getLocale('OKR_Ali_Butt_Fullscreen') },
|
|
41
|
+
{ 'icon': direction == 'horizontal' ? 'vertical' : 'horizontal', 'overlay': direction == 'horizontal' ? `${getLocale('OKR_Ali_Butt_Toggleportrait')}` : `${getLocale('OKR_Ali_Butt_Togglelandscape')}`, 'placement': 'topRight' },
|
|
41
42
|
];
|
|
42
43
|
|
|
43
44
|
const popup = (
|
|
44
45
|
<div className={classNames(`${preCls}__show-more-popup`)}>
|
|
45
46
|
<div className={classNames(`${preCls}__header-action-showkr`)}>
|
|
46
|
-
<Switch label='
|
|
47
|
+
<Switch label={getLocale('OKR_Ali_Butt_ExhibitionKRs')} checked={showkr} onChange={() => setVisible(true)} />
|
|
47
48
|
</div>
|
|
48
49
|
<div className={classNames(`${preCls}__header-action-level`)}>
|
|
49
|
-
<NumberSelect max={10} min={1} onChange={num => onLevelChange(num)} label=
|
|
50
|
+
<NumberSelect max={10} min={1} onChange={num => onLevelChange(num)} label={getLocale('OKR_Ali_Butt_Displaylevel')} defaultValue={openLevel} />
|
|
50
51
|
</div>
|
|
51
52
|
</div>
|
|
52
53
|
)
|
|
@@ -60,7 +61,7 @@ export default props => {
|
|
|
60
61
|
return (
|
|
61
62
|
<div className={classNames(`${preCls}__header`, { [`${preCls}__header__folded`]: fold })}>
|
|
62
63
|
<div className={classNames(`${preCls}__header-title`)}>
|
|
63
|
-
<span className={classNames(`${preCls}__header-title-text`)}
|
|
64
|
+
<span className={classNames(`${preCls}__header-title-text`)}>{getLocale('OKR_Ali_Title_Objectivemap')}</span>
|
|
64
65
|
<span className={classNames(`${preCls}__header-title-right`)}>
|
|
65
66
|
<span className={classNames(`${preCls}__header-theme`)} onClick={onThemeChange}>
|
|
66
67
|
切换{darkTheme ? '浅色' : '深色'}模式
|
|
@@ -72,25 +73,25 @@ export default props => {
|
|
|
72
73
|
<div className={classNames(`${preCls}__header-action`)}>
|
|
73
74
|
|
|
74
75
|
<span className={classNames(`${preCls}__header-action-search`)}>
|
|
75
|
-
<SearchDropdown placeholder='
|
|
76
|
-
<SearchDropdown.Option value='company'
|
|
77
|
-
<SearchDropdown.Option value='depart'
|
|
76
|
+
<SearchDropdown placeholder={getLocale('Mod_Pleaseselect')} value={searchType} onChange={onSearchChange}>
|
|
77
|
+
<SearchDropdown.Option value='company'>{getLocale('OKR_Ali_From_Companyobje')}</SearchDropdown.Option>
|
|
78
|
+
<SearchDropdown.Option value='depart'>{getLocale('OKR_Ali_From_Viewdepartment')}</SearchDropdown.Option>
|
|
78
79
|
{OkrTypeSetting && (
|
|
79
|
-
<SearchDropdown.Option value='group'
|
|
80
|
+
<SearchDropdown.Option value='group'>{getLocale('OKR_Ali_From_Viewteam')}</SearchDropdown.Option>
|
|
80
81
|
)}
|
|
81
|
-
<SearchDropdown.Option value='user'
|
|
82
|
+
<SearchDropdown.Option value='user'>{getLocale('OKR_Ali_From_Viewmember')}</SearchDropdown.Option>
|
|
82
83
|
</SearchDropdown>
|
|
83
84
|
</span>
|
|
84
85
|
|
|
85
86
|
<Popup popup={popup} >
|
|
86
|
-
<span className={classNames(`${preCls}__header-action--show-more`)}
|
|
87
|
+
<span className={classNames(`${preCls}__header-action--show-more`)}>{getLocale('OKR_Ali_Butt_Exhibitionmore')}</span>
|
|
87
88
|
</Popup>
|
|
88
89
|
|
|
89
90
|
<span className={classNames(`${preCls}__header-action-btns`)}>
|
|
90
91
|
<IconButtonList items={iconButtons} onClick={(e, iconType) => onBtnClick(iconType)} />
|
|
91
92
|
</span>
|
|
92
93
|
</div>
|
|
93
|
-
<Tooltip overlay={fold ? '
|
|
94
|
+
<Tooltip overlay={fold ? `${getLocale('Mod_Unfold')}` : `${getLocale('Mod_Fold')}`} placement='top' >
|
|
94
95
|
<span className={classNames(`${preCls}__header-fold`, { [`${preCls}__header-fold__close`]: fold })} onClick={() => setFold(!fold)}></span>
|
|
95
96
|
</Tooltip>
|
|
96
97
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Dialog from '../../../../../components/dialog'
|
|
2
|
+
import { getLocale } from '../../../../../utils/getLocale';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
|
|
4
5
|
import precls from '../../../precls';
|
|
@@ -9,18 +10,18 @@ const ShowKrConfirmDialog = (props) => {
|
|
|
9
10
|
return <Dialog
|
|
10
11
|
visible={visible}
|
|
11
12
|
width={360}
|
|
12
|
-
title={<span className={classNames(`${precls}--kr-dialog--title`)}
|
|
13
|
+
title={<span className={classNames(`${precls}--kr-dialog--title`)}>{showkr ? getLocale('OKR_Ali_Text_Areclose') : getLocale('OKR_Ali_Text_Aresureon')}</span>}
|
|
13
14
|
noHeadLine={true}
|
|
14
15
|
noFooterLine={true}
|
|
15
16
|
noCloseIcon={true}
|
|
16
|
-
okText='
|
|
17
|
+
okText={getLocale('OKR_MyO_Butt_Determine')}
|
|
17
18
|
destroyOnClose={true}
|
|
18
|
-
cancelText=
|
|
19
|
+
cancelText={getLocale('Mod_Cancel')}
|
|
19
20
|
onOk={() => onConfirmHandler(!showkr)}
|
|
20
21
|
onCancel={() => setVisible(false)}
|
|
21
22
|
>
|
|
22
23
|
<span className={classNames(`${precls}--kr-dialog--content`)}>
|
|
23
|
-
{showkr ? '
|
|
24
|
+
{showkr ? getLocale('OKR_Ali_Text_Pageclosing') : getLocale('OKR_Ali_Text_Pagerefreshed')}
|
|
24
25
|
</span>
|
|
25
26
|
</Dialog>
|
|
26
27
|
}
|
|
@@ -2,6 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import IconButtonList from '../../../../../components/icon-button-list';
|
|
4
4
|
import Switch from '../../../../../components/switch';
|
|
5
|
+
import { getLocale } from '../../../../../utils/getLocale';
|
|
5
6
|
import preCls from '../../../precls';
|
|
6
7
|
|
|
7
8
|
import './index.scss';
|
|
@@ -20,8 +21,8 @@ export default props => {
|
|
|
20
21
|
const period = {}
|
|
21
22
|
|
|
22
23
|
const iconButtons = [
|
|
23
|
-
{ 'icon': 'export', 'overlay': '
|
|
24
|
-
{ 'icon': direction == 'horizontal' ? 'vertical' : 'horizontal', 'overlay': direction == 'horizontal' ? '
|
|
24
|
+
{ 'icon': 'export', 'overlay': getLocale('Mod_Export')},
|
|
25
|
+
{ 'icon': direction == 'horizontal' ? 'vertical' : 'horizontal', 'overlay': direction == 'horizontal' ? `${getLocale('OKR_Ali_Butt_Toggleportrait')}` : `${getLocale('OKR_Ali_Butt_Togglelandscape')}` },
|
|
25
26
|
]
|
|
26
27
|
// 获取地图数据
|
|
27
28
|
useEffect(() => {
|
|
@@ -29,9 +30,9 @@ export default props => {
|
|
|
29
30
|
}, [])
|
|
30
31
|
|
|
31
32
|
return <div className={classNames(`${preCls}-share-okr__header`)}>
|
|
32
|
-
<span className={classNames(`${preCls}-share-okr__header-title`)}>
|
|
33
|
+
<span className={classNames(`${preCls}-share-okr__header-title`)}>{getLocale('OKR_Menu_Title_Alignment')}</span>
|
|
33
34
|
<span className={classNames(`${preCls}-share-okr__header-showkr`)}>
|
|
34
|
-
<Switch label=
|
|
35
|
+
<Switch label={getLocale('OKR_Ali_Butt_ExhibitionKRs')} checked={showkr} onChange={checked => setShowKr(checked)} />
|
|
35
36
|
</span>
|
|
36
37
|
<span className={classNames(`${preCls}-share-okr__header-dark`)} onClick={() => setDarkTheme(!darkTheme)}>
|
|
37
38
|
切换{darkTheme ? '浅色' : '深色'}模式
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { OpenUserName, OpenDepartmentName, isWechat } from '../open-data';
|
|
4
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
4
5
|
import preCls from '../precls';
|
|
5
6
|
|
|
6
7
|
export default props => {
|
|
@@ -14,7 +15,7 @@ export default props => {
|
|
|
14
15
|
} else if (type == 'user') {
|
|
15
16
|
return <OpenUserName id={selected.id} name={selected.name} />;
|
|
16
17
|
} else {
|
|
17
|
-
return selected.name || '
|
|
18
|
+
return selected.name || getLocale('Mod_Pleaseselect');
|
|
18
19
|
}
|
|
19
20
|
})()}
|
|
20
21
|
</span>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./index.scss";
|
|
2
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
2
3
|
|
|
3
4
|
export default () => {
|
|
4
5
|
return (
|
|
@@ -8,7 +9,7 @@ export default () => {
|
|
|
8
9
|
你还没有制定目标,系统根据目标件的关联性自动生成目标地图
|
|
9
10
|
</div>
|
|
10
11
|
<div className="titaui-button">
|
|
11
|
-
<a href="/#okr/manage"
|
|
12
|
+
<a href="/#okr/manage">{getLocale('OKR_OKRW_Butt_Toformulate')}</a>
|
|
12
13
|
</div>
|
|
13
14
|
</div>
|
|
14
15
|
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
3
4
|
|
|
4
5
|
import './index.scss';
|
|
5
6
|
|
|
6
7
|
const preCls = 'titaui-number-select';
|
|
7
8
|
|
|
8
9
|
const NumberSelect = (props) => {
|
|
9
|
-
const { max = 10, min = 2, onChange = () => { }, defaultValue = 2, label = '
|
|
10
|
+
const { max = 10, min = 2, onChange = () => { }, defaultValue = 2, label = getLocale('Mod_Editor') } = props
|
|
10
11
|
const [num, setNum] = useState(defaultValue);
|
|
11
12
|
|
|
12
13
|
const addHandler = () => {
|
|
@@ -4,6 +4,7 @@ import copyToClipboard from 'copy-to-clipboard';
|
|
|
4
4
|
import Dialog from '../../../components/dialog';
|
|
5
5
|
import preCls from '../precls';
|
|
6
6
|
import { getShareUrl } from '../request-apis';
|
|
7
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
7
8
|
import Toast from '@titaui/toast';
|
|
8
9
|
|
|
9
10
|
import './index.scss';
|
|
@@ -39,9 +40,9 @@ const ShareContent = props => {
|
|
|
39
40
|
}, [])
|
|
40
41
|
|
|
41
42
|
return <div className={classNames(`${preCls}__share-content`)}>
|
|
42
|
-
<div className={classNames(`${preCls}__share-content-text`)}
|
|
43
|
+
<div className={classNames(`${preCls}__share-content-text`)}>{getLocale('OKR_Ali_Aftersendinlink')}</div>
|
|
43
44
|
<div className={classNames(`${preCls}__share-content-link`)}>
|
|
44
|
-
<span className={classNames(`${preCls}__share-content-link-label`)}
|
|
45
|
+
<span className={classNames(`${preCls}__share-content-link-label`)}>{getLocale('OKR_MyO_KRP_Link')}</span>
|
|
45
46
|
<span className={classNames(`${preCls}__share-content-link-url`)}>
|
|
46
47
|
{copyUrl}
|
|
47
48
|
</span>
|
|
@@ -61,20 +62,20 @@ export default props => {
|
|
|
61
62
|
const onCopyUrlHandler = () => {
|
|
62
63
|
copyToClipboard(copyUrl)
|
|
63
64
|
setVisible(false);
|
|
64
|
-
Toast.Success('
|
|
65
|
+
Toast.Success(getLocale('OKR_Ali_Copylinksuc'))
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
return <div className={classNames(`${preCls}__share-dialog`)}>
|
|
68
69
|
<Dialog
|
|
69
70
|
visible={visible}
|
|
70
71
|
width={480}
|
|
71
|
-
title=
|
|
72
|
+
title={getLocale('OKR_Ali_Copyandsharethelink')}
|
|
72
73
|
noHeadLine={true}
|
|
73
74
|
noFooterLine={true}
|
|
74
75
|
noCloseIcon={true}
|
|
75
|
-
okText={
|
|
76
|
+
okText={getLocale('OKR_Ali_Butt_Copylink')}
|
|
76
77
|
destroyOnClose={true}
|
|
77
|
-
cancelText={
|
|
78
|
+
cancelText={getLocale('Mod_Cancel')}
|
|
78
79
|
onOk={onCopyUrlHandler}
|
|
79
80
|
onCancel={() => setVisible(false)}
|
|
80
81
|
>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
font-size: 14px;
|
|
35
35
|
font-weight: normal;
|
|
36
36
|
color: #2879FF;
|
|
37
|
-
line-height:
|
|
37
|
+
line-height: 28px;
|
|
38
38
|
background: rgba(40, 121, 255, 0.2);
|
|
39
39
|
&:hover {
|
|
40
40
|
color: #fff;
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
min-width: 64px;
|
|
47
47
|
}
|
|
48
48
|
&-btn {
|
|
49
|
-
width: 64px;
|
|
50
49
|
height: 28px;
|
|
51
50
|
box-sizing: border-box;
|
|
52
51
|
padding: 3px 18px;
|
|
@@ -66,6 +65,7 @@
|
|
|
66
65
|
width: 342px;
|
|
67
66
|
.form-field-input__border--disabled input:disabled {
|
|
68
67
|
color: #6F7886;
|
|
68
|
+
cursor: default;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
.form-field-input__label {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { FC, useState, useRef, useEffect } from "react";
|
|
2
|
-
import { getUserInfoFun } from '../../request-api';
|
|
3
|
-
import { RectBtn } from "../../../../components/button";
|
|
4
2
|
import Form from "../../../../components/form";
|
|
3
|
+
import { getUserInfoFun } from "../../request-api";
|
|
4
|
+
import { getLocale } from "../../../../utils/getLocale";
|
|
5
5
|
import EditModle from '../edit-base-info'
|
|
6
|
+
import { RectBtn } from "../../../../components/button";
|
|
6
7
|
import "./index.scss";
|
|
7
8
|
|
|
8
9
|
const {Fields} = Form
|
|
@@ -36,10 +37,10 @@ const BaseInfo: FC = () => {
|
|
|
36
37
|
return (
|
|
37
38
|
<div className={prefix}>
|
|
38
39
|
<div className={`${prefix}__header`}>
|
|
39
|
-
<span className={`${prefix}__header-title`}
|
|
40
|
+
<span className={`${prefix}__header-title`}>{getLocale('Per_Ass_New_title_text_BasicIn')}</span>
|
|
40
41
|
<RectBtn
|
|
41
42
|
type={"primary"}
|
|
42
|
-
text={
|
|
43
|
+
text={getLocale('Mod_Editor')}
|
|
43
44
|
onClick={handleClickEdit}
|
|
44
45
|
/>
|
|
45
46
|
<EditModle visible={visible} onCancel={handleCancelEdit} handleSuccessEditBaseInfo={handleSuccessEditBaseInfo}/>
|
|
@@ -48,7 +49,7 @@ const BaseInfo: FC = () => {
|
|
|
48
49
|
<Form ref={formRef}>
|
|
49
50
|
<Fields.Input
|
|
50
51
|
name="name"
|
|
51
|
-
label={
|
|
52
|
+
label={getLocale('Mod_UserName')}
|
|
52
53
|
placeholder={"未设置"}
|
|
53
54
|
type="text"
|
|
54
55
|
verifies={[]}
|
|
@@ -2,7 +2,6 @@ import React, { useState, useRef, useEffect } from 'react';
|
|
|
2
2
|
import Form from '../../../../components/form';
|
|
3
3
|
import { getUserInfoFun, saveUserInfo } from '../../request-api';
|
|
4
4
|
import Toast from '../../../../components/toast';
|
|
5
|
-
// import Input from './input';
|
|
6
5
|
import Dialog from '../../../../components/dialog';
|
|
7
6
|
import './index.scss';
|
|
8
7
|
|
|
@@ -26,6 +25,11 @@ const EditBaseInfo = (props) => {
|
|
|
26
25
|
...userInfo,
|
|
27
26
|
name: value || ''
|
|
28
27
|
});
|
|
28
|
+
if(value.length > 50 || value.length === 0) {
|
|
29
|
+
setIsDisable(true);
|
|
30
|
+
} else {
|
|
31
|
+
setIsDisable(false);
|
|
32
|
+
}
|
|
29
33
|
setIsEdit(true);
|
|
30
34
|
};
|
|
31
35
|
|
|
@@ -34,6 +38,11 @@ const EditBaseInfo = (props) => {
|
|
|
34
38
|
...userInfo,
|
|
35
39
|
mobile: value || ''
|
|
36
40
|
});
|
|
41
|
+
if(value.length !== 11 ) {
|
|
42
|
+
setIsDisable(true);
|
|
43
|
+
}else {
|
|
44
|
+
setIsDisable(false);
|
|
45
|
+
}
|
|
37
46
|
setIsEdit(true);
|
|
38
47
|
};
|
|
39
48
|
|
|
@@ -46,7 +55,7 @@ const EditBaseInfo = (props) => {
|
|
|
46
55
|
};
|
|
47
56
|
|
|
48
57
|
const handleSaveUserInfo = () => {
|
|
49
|
-
if (!userInfo.email || !userInfo.mobile || !userInfo.name ||
|
|
58
|
+
if (!userInfo.email || !userInfo.mobile || !userInfo.name || userInfo.name.length > 50) {
|
|
50
59
|
setIsDisable(true);
|
|
51
60
|
return;
|
|
52
61
|
} else {
|
|
@@ -70,17 +79,6 @@ const EditBaseInfo = (props) => {
|
|
|
70
79
|
});
|
|
71
80
|
}, []);
|
|
72
81
|
|
|
73
|
-
useEffect(
|
|
74
|
-
() => {
|
|
75
|
-
if (userInfo.name && userInfo.mobile && isEdit) {
|
|
76
|
-
setIsDisable(false);
|
|
77
|
-
} else {
|
|
78
|
-
setIsDisable(true);
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
[ userInfo, isEdit ]
|
|
82
|
-
);
|
|
83
|
-
|
|
84
82
|
return (
|
|
85
83
|
<Dialog
|
|
86
84
|
visible={visible}
|
|
@@ -115,7 +113,11 @@ const EditBaseInfo = (props) => {
|
|
|
115
113
|
{
|
|
116
114
|
tip: '姓名只能为中文,英文字母和数字及下划线的组合',
|
|
117
115
|
test: /^((?!(\uff08|\uff09)).)*$/g
|
|
118
|
-
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
tip: `姓名不能超过${50}个字`,
|
|
119
|
+
test: /^[\s\S]{0,50}$/,
|
|
120
|
+
},
|
|
119
121
|
]}
|
|
120
122
|
value={userInfo.name}
|
|
121
123
|
onChange={handleNameChange}
|
|
@@ -134,7 +136,7 @@ const EditBaseInfo = (props) => {
|
|
|
134
136
|
test: /^[\s\S]+$/
|
|
135
137
|
},
|
|
136
138
|
{
|
|
137
|
-
tip: '
|
|
139
|
+
tip: '格式错误,海外手机格式如:(+852)52345678',
|
|
138
140
|
test: /^1[3456789]\d{9}$/
|
|
139
141
|
}
|
|
140
142
|
]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { getLocale } from "./getLocale"
|
|
2
|
+
|
|
1
3
|
//精确到日期的检测 date为2021/8/26这样的类型,返回距现在几天
|
|
2
4
|
export const testDateDiff = (date) => {
|
|
3
5
|
|
|
@@ -38,7 +40,7 @@ export const testDateDiff = (date) => {
|
|
|
38
40
|
// if (hourDiff < 1) {
|
|
39
41
|
// const minDiff = Math.floor((nTime - tTime) / (1000 * 60))
|
|
40
42
|
// if (minDiff < 1) {
|
|
41
|
-
// return '
|
|
43
|
+
// return getLocale('Pro_page_Int_Justnow')
|
|
42
44
|
// } else {
|
|
43
45
|
// return `${minDiff}分钟前`
|
|
44
46
|
// }
|
|
@@ -81,7 +83,7 @@ export const testDayChange = (date) => {
|
|
|
81
83
|
|
|
82
84
|
const secondDiff = Math.floor((nowMilliSecond - timeMilliSecond) / 1000);
|
|
83
85
|
if (secondDiff <= 3) {
|
|
84
|
-
return '
|
|
86
|
+
return getLocale('Pro_page_Int_Justnow');
|
|
85
87
|
}
|
|
86
88
|
if (secondDiff < 60) {
|
|
87
89
|
return `${secondDiff}秒前`;
|
|
@@ -93,7 +95,7 @@ export const testDayChange = (date) => {
|
|
|
93
95
|
return `${Math.floor(secondDiff / (60 * 60))}小时前`;
|
|
94
96
|
}
|
|
95
97
|
if (secondDiff < 60 * 60 * 24 * 2 && nowDate - 1 === timeDate) {
|
|
96
|
-
return
|
|
98
|
+
return getLocale('OKR_MyO_Pr_Text_Yesterday');
|
|
97
99
|
}
|
|
98
100
|
if (secondDiff < 60 * 60 * 24 * 3 && nowDate - 2 === timeDate) {
|
|
99
101
|
return `前天`;
|
package/src/utils/format-time.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { getLocale } from "./getLocale";
|
|
2
|
+
|
|
1
3
|
export const getTimeString = (time: string, nowTime): string => {
|
|
2
4
|
if (!time) {
|
|
3
|
-
return
|
|
5
|
+
return getLocale('OKR_MyO_KRP_Notupdated');
|
|
4
6
|
}
|
|
5
7
|
const timeDateObj = new Date(time);
|
|
6
8
|
const timeMilliSecond = timeDateObj.getTime();
|
|
@@ -16,7 +18,7 @@ export const getTimeString = (time: string, nowTime): string => {
|
|
|
16
18
|
|
|
17
19
|
const secondDiff = Math.floor((nowMilliSecond - timeMilliSecond) / 1000);
|
|
18
20
|
if (secondDiff <= 3) {
|
|
19
|
-
return
|
|
21
|
+
return getLocale('Pro_page_Int_Justnow');
|
|
20
22
|
}
|
|
21
23
|
if (secondDiff < 60) {
|
|
22
24
|
return `${secondDiff}秒前`;
|
|
@@ -28,7 +30,7 @@ export const getTimeString = (time: string, nowTime): string => {
|
|
|
28
30
|
return `${Math.floor(secondDiff / (60 * 60))}小时前`;
|
|
29
31
|
}
|
|
30
32
|
if (secondDiff < 60 * 60 * 24 * 2 && nowDate - 1 === timeDate) {
|
|
31
|
-
return
|
|
33
|
+
return `${getLocale('OKR_MyO_Pr_Text_Yesterday')} ${timeHours + ":" + timeMinutes}`;
|
|
32
34
|
}
|
|
33
35
|
if (secondDiff < 60 * 60 * 24 * 3 && nowDate - 2 === timeDate) {
|
|
34
36
|
return `前天 ${timeHours + ":" + timeMinutes}`;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getBSGlobal } from "./bs-global";
|
|
2
|
+
|
|
3
|
+
export const getLocale = (key) => {
|
|
4
|
+
return window.getLocale && window.getLocale(key) || '';
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const i18nInfo = getBSGlobal("I18NInfo");
|
|
8
|
+
|
|
9
|
+
export const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|