@titaui/pc 1.8.7 → 1.9.0
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/default.js +1 -1
- package/lib/components/avatar/name-avatar/index.js +1 -1
- package/lib/components/avatar/text-avatar/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +5 -5
- package/lib/components/change-okr-modal/Item.js +6 -10
- package/lib/components/change-okr-modal/constant.js +1 -6
- package/lib/components/change-okr-modal/filterTab.js +3 -3
- package/lib/components/change-okr-modal/index.js +5 -5
- package/lib/components/checkbox/index.js +1 -1
- package/lib/components/common-share/index.js +1 -1
- package/lib/components/common-share/publishMblog.js +3 -3
- package/lib/components/communication/CommunicationAttachments.js +3 -3
- package/lib/components/communication/CommunicationRecord.js +1 -1
- package/lib/components/communication/ConvertUserName.js +3 -3
- package/lib/components/communication/index.js +3 -3
- package/lib/components/confidence/index.js +1 -1
- package/lib/components/create-okr-modal/createCycle.js +3 -3
- package/lib/components/create-okr-modal/createSuccessCmp.js +1 -1
- package/lib/components/create-okr-modal/fields/date-cycle.js +1 -1
- package/lib/components/create-okr-modal/fields/input-with-err-popup.js +1 -1
- package/lib/components/create-okr-modal/fields/o-new-name.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-case.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-create-suggest.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-type.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility.js +1 -1
- package/lib/components/create-okr-modal/index.js +3 -3
- package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +3 -3
- package/lib/components/create-okr-modal/kr-items/krDatas.js +3 -3
- package/lib/components/create-okr-modal/kr-items/krItem.js +3 -3
- package/lib/components/create-okr-modal/objectType.js +3 -3
- package/lib/components/create-okr-modal/request-api.js +2 -2
- package/lib/components/create-okr-modal/utils/helper.js +2 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +3 -3
- package/lib/components/date-range-picker/index.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dialog/index.css +1 -1
- package/lib/components/dialog-confirm/index.css +8 -6
- package/lib/components/drawer/headerAction.js +3 -3
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +3 -3
- package/lib/components/drawer/utils/useForceUpdate.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +3 -3
- package/lib/components/drawer-manager/utils/useForceUpdate.js +1 -1
- package/lib/components/drop-selector/index.css +2 -0
- package/lib/components/drop-selector/index.js +3 -3
- package/lib/components/dynamic/advertise/index.js +1 -1
- package/lib/components/dynamic/advertise/util.js +2 -2
- package/lib/components/dynamic/components/dynamic-search-input/index.js +1 -1
- package/lib/components/dynamic/components/first-level-tabs/index.js +1 -1
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.js +1 -1
- package/lib/components/dynamic/dynamic-liking/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +1 -1
- package/lib/components/dynamic/dynamic.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/my-team/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +1 -1
- package/lib/components/dynamic/quick-operation/index.js +1 -1
- package/lib/components/dynamic/request-api.js +2 -2
- package/lib/components/e-priority/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +3 -3
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +3 -3
- package/lib/components/eReport/eReportShare/toast/index.js +3 -3
- package/lib/components/edit-kr-wight/EditKrWightModal.js +5 -5
- package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
- package/lib/components/edit-kr-wight/utils.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/error-boundary/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/firework/index.js +2 -2
- package/lib/components/follower-visitor/index.js +1 -1
- package/lib/components/form/form-fields/department/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/duties/index.js +3 -2
- package/lib/components/form/form-fields/group/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +4 -1
- package/lib/components/form/form-fields/input-verification-code/index.css +1 -0
- package/lib/components/form/form-fields/input-verification-code/index.js +27 -19
- package/lib/components/form/form-fields/password/index.css +18 -0
- package/lib/components/form/form-fields/password/index.js +34 -21
- package/lib/components/form/form-fields/radios/index.js +1 -1
- package/lib/components/form/form-fields/textarea/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/form/index.js +7 -4
- package/lib/components/grid-layout/commen-components/card-title.js +1 -1
- package/lib/components/grid-layout/commen-components/data-item.js +1 -1
- package/lib/components/grid-layout/commen-components/empty-backgrounds.js +1 -1
- package/lib/components/grid-layout/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-layout/essay-component/index.js +1 -1
- package/lib/components/grid-layout/near-visitors/index.js +1 -1
- package/lib/components/grid-layout/near-visitors/visitor.js +1 -1
- package/lib/components/grid-layout/okr-align/index.js +1 -1
- package/lib/components/grid-layout/okr-progress/index.js +1 -1
- package/lib/components/grid-layout/okr-target/index.js +1 -1
- package/lib/components/grid-layout/over-view/index.js +1 -1
- package/lib/components/grid-layout/personal-info/index.js +1 -1
- package/lib/components/grid-layout/sub-employee-okr/index.js +1 -1
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +1 -1
- package/lib/components/grid-layout/util/click-link.js +2 -2
- package/lib/components/grid-layout/week-task/index.js +1 -1
- package/lib/components/grid-layout/words-cloud/index.js +1 -1
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/near-visitors/visitor.js +1 -1
- package/lib/components/grid-page/personal-info/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/img-viewer/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/components/MblogContent.js +3 -3
- package/lib/components/mblog/index.js +3 -3
- package/lib/components/menus/components/drag-resize/index.js +4 -6
- package/lib/components/menus/components/flip-menu-card/index.js +1 -1
- package/lib/components/menus/components/menu-card/index.js +3 -3
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/company-all.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/follower/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/user/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-concern.js +1 -1
- package/lib/components/menus/components/search-colleague/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +2 -7
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/handle-highlight.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.js +2 -6
- package/lib/components/menus/export-modules/okr-menus/depart-menus/helper.js +2 -2
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +3 -6
- package/lib/components/menus/export-modules/okr-menus/menu-highlight.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +1 -1
- package/lib/components/menus/i18n.js +6 -2
- package/lib/components/nav-top/components/menu/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/remind/index.js +4 -2
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +2 -2
- package/lib/components/nav-top/components/user-message/components/reply/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.js +1 -1
- package/lib/components/nav-top/components/user-message/index.js +1 -1
- package/lib/components/nav-top/components/user-message/msg/index.css +4 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +1 -1
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +1 -1
- package/lib/components/nav-top/components/version/index.js +4 -4
- package/lib/components/nav-top/index.js +1 -1
- package/lib/components/okr-detail/auth.js +3 -3
- package/lib/components/okr-detail/base-info/base-info.js +3 -3
- package/lib/components/okr-detail/base-info/o-desc/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/classify/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/common/border-wrapper/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/other-infos.js +3 -3
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +1 -1
- package/lib/components/okr-detail/base-info/person/index.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +2 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +3 -3
- 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 +3 -3
- package/lib/components/okr-detail/components/editable-input/index.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +1 -1
- package/lib/components/okr-detail/components/header/index.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
- package/lib/components/okr-detail/components/header/o-cycle.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +1 -1
- package/lib/components/okr-detail/components/o-progress-update/index.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-type.js +1 -1
- package/lib/components/okr-detail/detail-footer/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/confirm.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +1 -1
- package/lib/components/okr-detail/detail-header/index.js +3 -3
- package/lib/components/okr-detail/e-list/index.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/index.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +2 -2
- package/lib/components/okr-detail/index.js +3 -3
- package/lib/components/okr-detail/okr-list/add-parent-okr.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/heart.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +3 -3
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +2 -2
- package/lib/components/okr-detail/okr-list/empty/index.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +3 -3
- package/lib/components/okr-detail/request-apis.js +2 -2
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +1 -1
- package/lib/components/okr-detail/schedule/schedule.js +1 -1
- package/lib/components/okr-filter-drawer/filter-form.js +3 -3
- package/lib/components/okr-filter-drawer/index.js +1 -1
- package/lib/components/okr-flow/child-node/fields/creator.js +1 -1
- package/lib/components/okr-flow/child-node/index.js +1 -1
- package/lib/components/okr-flow/child-node/work-node.js +1 -1
- package/lib/components/okr-flow/export-modal/index.js +1 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +3 -3
- package/lib/components/okr-flow/mini-map/index.js +1 -1
- package/lib/components/okr-flow/mini-map/map.js +1 -1
- package/lib/components/okr-flow/mini-map/mini-node.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +2 -2
- package/lib/components/okr-flow/okr-map/index.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +3 -3
- package/lib/components/okr-flow/request-apis.js +2 -2
- package/lib/components/okr-flow/root-node/index.js +1 -1
- package/lib/components/okr-period-selector/index.js +1 -1
- package/lib/components/okr-period-selector/select-cycle.js +3 -3
- package/lib/components/okr-progress/components/o-progress/index.js +1 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +3 -3
- package/lib/components/okr-progress/okr-progress/index.js +1 -1
- package/lib/components/okr-progress/request-apis.js +2 -2
- package/lib/components/okr-progress-detail/index.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/index.js +1 -1
- package/lib/components/okr-progress-modal/textarea/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
- package/lib/components/okr-review/ReviewPop/index.js +5 -5
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-review/index.js +3 -3
- package/lib/components/okr-share/index.js +1 -1
- package/lib/components/okr-share/publishMblog.js +3 -3
- package/lib/components/okr-share/shareCardSelector.js +1 -1
- package/lib/components/okrcase-library/index.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/index.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-nav.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibray-header.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +2 -2
- package/lib/components/okrcase-library-card/index.js +1 -1
- package/lib/components/operation-records/OperationRecordItem.js +3 -3
- package/lib/components/operation-records/index.js +3 -3
- package/lib/components/pagination/pagination.js +2 -5
- package/lib/components/password-input/index.js +1 -1
- package/lib/components/period-selector/common.js +3 -8
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/components/selector/index.js +3 -3
- package/lib/components/period-selector/helper/index.js +2 -2
- package/lib/components/period-selector/index.js +1 -1
- package/lib/components/photo-card/components/card/index.js +1 -1
- package/lib/components/photo-card/index.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/point-demo.js +1 -1
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +3 -3
- package/lib/components/praise-record/index.js +3 -3
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +2 -4
- package/lib/components/publish-dynamic-modal/requist-api.js +2 -2
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/radio/radioGroup.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/scrollbar/simplebar/simplebar.js +3 -3
- package/lib/components/scrollbar/simplebar-react.js +3 -3
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/search-input/index.js +3 -3
- package/lib/components/search-key-handle/index.js +1 -1
- package/lib/components/select/Option.js +5 -5
- package/lib/components/select/index.js +5 -5
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/selector-input/index.js +1 -1
- package/lib/components/slider-input/index.js +1 -1
- package/lib/components/stateless-dropdown/stateless-dropdown.js +1 -1
- package/lib/components/status-time/index.js +2 -2
- package/lib/components/table/index.js +2 -2
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/radio.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +2 -2
- package/lib/components/task-relation-modal/search/category-select.js +1 -1
- package/lib/components/task-relation-modal/search/okr-status-select.js +1 -1
- package/lib/components/task-relation-modal/search/okr-type-select.js +1 -1
- package/lib/components/task-relation-modal/search/principal.js +1 -1
- package/lib/components/task-relation-modal/search/relation.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +3 -3
- package/lib/components/task-relation-modal/tree/category-tree/search-form.js +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +3 -3
- package/lib/components/task-relation-modal/tree/work-tree/index.js +3 -3
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +2 -2
- package/lib/components/tita-chart/charts/words-cloud.js +2 -2
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/tita-chart/hooks/useChart.js +3 -3
- package/lib/components/tita-chart/plots/liquid/index.js +1 -1
- package/lib/components/tita-chart/plots/pie/index.js +1 -1
- package/lib/components/tita-chart/plots/wordscloud/index.js +1 -1
- package/lib/components/toast/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +1 -1
- package/lib/components/update-modal/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +3 -3
- package/lib/components/upload/index.js +5 -5
- package/lib/components/upload-photo-modal/constant.js +2 -2
- package/lib/components/upload-photo-modal/index.css +1 -2
- package/lib/components/upload-photo-modal/index.js +55 -78
- package/lib/components/upvote/index.js +3 -3
- package/lib/components/upvote/selector.js +1 -1
- package/lib/components/upvote/upvoteListModal.js +1 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
- package/lib/components/user-selector/category-selector-panel/group-tree.js +1 -1
- package/lib/components/user-selector/category-selector-panel/index.js +1 -1
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/duties-selector/index.js +3 -3
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/export-modules/group-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/group-selector/searched-panel.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/export-modules/single-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/searched-panel/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +1 -1
- package/lib/components/user-selector/selected-panel/index.js +1 -1
- package/lib/components/user-selector/utils.js +2 -2
- package/lib/components/version-change-modal/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +5 -5
- package/lib/components/viewer/index.js +5 -5
- package/lib/components/weekly-report/card.js +1 -1
- package/lib/components/weekly-report/index.js +1 -1
- package/lib/components/word-cloud/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/animate/animate.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
- package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
- package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/confirm/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +3 -3
- package/lib/components-v1/placement/placement.js +3 -3
- package/lib/components-v1/placement/placementInner.js +5 -5
- package/lib/components-v1/pop/Pop.js +3 -3
- package/lib/components-v1/pop/PopInner.js +5 -5
- package/lib/components-v1/popConfirm/index.js +1 -1
- package/lib/components-v1/portals/Portals.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/progress/LineProgress.js +3 -3
- package/lib/components-v1/progress/index.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/radioGroup.js +3 -3
- package/lib/components-v1/search/cache.js +3 -3
- package/lib/components-v1/search/index.js +3 -3
- package/lib/components-v1/select/Option.js +5 -5
- package/lib/components-v1/select/index.js +5 -5
- package/lib/components-v1/tabs/index.js +3 -3
- package/lib/components-v1/textarea/index.js +3 -3
- package/lib/components-v1/transition/index.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/SearchBar.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/components-v1/userSelector/index.js +3 -3
- package/lib/components-v1/utils/animate/animate.js +1 -1
- package/lib/pages/aha2021/index.js +1 -1
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/dynamic/index.js +1 -1
- package/lib/pages/group-management/components/checkbox/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/openData/index.js +3 -3
- package/lib/pages/group-management/components/table/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +2 -2
- package/lib/pages/group-management/page-view/empty.js +1 -1
- package/lib/pages/group-management/page-view/group-empty.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/page-view/index.js +1 -1
- package/lib/pages/group-management/page-view/loading/index.js +1 -1
- package/lib/pages/group-management/table/index.js +1 -1
- package/lib/pages/group-management/tree/add-group-dialog/index.js +1 -1
- package/lib/pages/group-management/tree/delete-group-dialog/index.js +1 -1
- package/lib/pages/group-management/tree/edit-group-dialog/index.js +1 -1
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/group-management/tree/operation-panel.js +1 -1
- package/lib/pages/group-management/tree/trigger-render.js +1 -1
- package/lib/pages/home/components/data-list/index.js +1 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +1 -1
- package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +1 -1
- package/lib/pages/home/components/data-list/table/index.js +1 -1
- package/lib/pages/home/components/guide/index.js +1 -1
- package/lib/pages/home/components/header/index.js +1 -1
- package/lib/pages/home-page-data-list/index.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/department.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/modular.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/name.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/timer.js +1 -1
- package/lib/pages/like-ranking/index.js +5 -5
- package/lib/pages/new-okr-list/header/comments.js +1 -1
- package/lib/pages/new-okr-list/header/create-okr.js +1 -1
- package/lib/pages/new-okr-list/header/filter.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +1 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/lib/pages/new-okr-list/init-cycle-setting.js +1 -1
- package/lib/pages/new-okr-list/keyword-search/index.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/level2-search/group.js +3 -3
- package/lib/pages/okr-map/level2-search/index.js +1 -1
- package/lib/pages/okr-map/level2-search/user.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +3 -3
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/pages/okr-map/unsupport-ie/index.js +1 -1
- package/lib/pages/personal-info/components/base-info/index.css +31 -4
- package/lib/pages/personal-info/components/base-info/index.js +16 -8
- package/lib/pages/personal-info/components/{edit-info → edit-base-info}/index.css +1 -1
- package/lib/pages/personal-info/components/{edit-info → edit-base-info}/index.js +6 -7
- package/lib/pages/personal-info/components/person-photo/index.css +18 -5
- package/lib/pages/personal-info/components/person-photo/index.js +19 -4
- package/lib/utils/auth.js +3 -3
- package/lib/utils/getLocale.js +8 -3
- package/lib/utils/local-storage.js +1 -1
- package/lib/utils/open-data.js +3 -3
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/roundWeight.js +2 -2
- package/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +1 -4
- package/src/components/change-okr-modal/constant.ts +1 -5
- package/src/components/dialog/index.scss +1 -1
- package/src/components/dialog-confirm/index.scss +8 -6
- package/src/components/drop-selector/index.scss +2 -0
- package/src/components/dynamic/my-team/index.tsx +1 -1
- package/src/components/form/form-fields/duties/index.tsx +1 -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 +106 -70
- package/src/components/form/form-fields/password/index.scss +20 -4
- package/src/components/form/form-fields/password/index.tsx +73 -51
- package/src/components/form/index.tsx +3 -1
- package/src/components/menus/components/drag-resize/index.tsx +1 -3
- package/src/components/menus/export-modules/appraisal-menus/index.tsx +1 -5
- package/src/components/menus/export-modules/manage-menus/index.tsx +1 -4
- package/src/components/menus/export-modules/okr-menus/index.tsx +1 -4
- 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 +2 -2
- package/src/components/nav-top/components/user-message/msg/index.scss +3 -0
- package/src/components/nav-top/components/version/index.tsx +1 -3
- package/src/components/okr-detail/okr-list/empty/index.js +1 -1
- package/src/components/pagination/pagination.tsx +1 -4
- package/src/components/period-selector/common.ts +1 -5
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +2 -4
- package/src/components/status-time/index.tsx +2 -2
- package/src/components/table/index.js +1 -1
- package/src/components/upload-photo-modal/constant.ts +2 -2
- package/src/components/upload-photo-modal/index.scss +1 -2
- package/src/components/upload-photo-modal/index.tsx +42 -57
- package/src/components/user-selector/export-modules/duties-selector/index.tsx +1 -1
- package/src/components/user-selector/request-apis.js +1 -1
- package/src/pages/like-ranking/index.tsx +2 -2
- package/src/pages/personal-info/components/base-info/index.scss +26 -4
- package/src/pages/personal-info/components/base-info/index.tsx +12 -3
- package/src/pages/personal-info/components/{edit-info → edit-base-info}/index.scss +1 -1
- package/src/pages/personal-info/components/{edit-info → edit-base-info}/index.tsx +2 -4
- package/src/pages/personal-info/components/person-photo/index.scss +17 -5
- package/src/pages/personal-info/components/person-photo/index.tsx +12 -4
- package/src/utils/getLocale.ts +7 -1
- package/yarn-error.log +103 -0
- package/lib/pages/personal-info/components/edit-info/input/index.css +0 -89
- package/lib/pages/personal-info/components/edit-info/input/index.js +0 -199
- package/src/pages/personal-info/components/edit-info/input/index.scss +0 -82
- package/src/pages/personal-info/components/edit-info/input/index.tsx +0 -145
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
.form-field-input {
|
|
2
|
+
&-row {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
.form-field-input__label {
|
|
6
|
+
margin-bottom: unset;
|
|
7
|
+
}
|
|
8
|
+
.form-field-input__border {
|
|
9
|
+
margin-left: 16px;
|
|
10
|
+
flex: 1;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
2
13
|
&__label {
|
|
3
14
|
height: 22px;
|
|
4
15
|
font-size: 14px;
|
|
5
16
|
margin-bottom: 5px;
|
|
6
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
|
|
17
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
|
|
18
|
+
sans-serif, PingFang SC, Microsoft YaHei;
|
|
7
19
|
font-weight: 400;
|
|
8
20
|
line-height: 22px;
|
|
9
21
|
|
|
@@ -22,10 +34,13 @@
|
|
|
22
34
|
transition: all 0.2s;
|
|
23
35
|
border: 1px solid #e9ecf0;
|
|
24
36
|
box-sizing: border-box;
|
|
37
|
+
.tu-icon-yincang {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
25
40
|
}
|
|
26
41
|
&__border--error {
|
|
27
|
-
box-shadow: inset 0px 0px 4px 0px rgba(240, 94, 94, 0.3)
|
|
28
|
-
border: 1px solid #f05e5e
|
|
42
|
+
box-shadow: inset 0px 0px 4px 0px rgba(240, 94, 94, 0.3);
|
|
43
|
+
border: 1px solid #f05e5e;
|
|
29
44
|
}
|
|
30
45
|
&__border--active {
|
|
31
46
|
box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);
|
|
@@ -37,7 +52,8 @@
|
|
|
37
52
|
padding: 0;
|
|
38
53
|
width: calc(100% - 12px);
|
|
39
54
|
font-size: 14px;
|
|
40
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
|
|
55
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
|
|
56
|
+
sans-serif, PingFang SC, Microsoft YaHei;
|
|
41
57
|
font-weight: 400;
|
|
42
58
|
color: #3f4755;
|
|
43
59
|
height: 22px;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React, {
|
|
2
|
+
useState,
|
|
3
|
+
useRef,
|
|
4
|
+
useEffect,
|
|
5
|
+
forwardRef,
|
|
6
|
+
useImperativeHandle,
|
|
7
|
+
} from "react";
|
|
8
|
+
import classNames from "classnames";
|
|
9
|
+
import ToolTip from "../../../tooltip/error-tip";
|
|
10
|
+
import "./index.scss";
|
|
5
11
|
|
|
6
|
-
const preCls =
|
|
12
|
+
const preCls = "form-field-input";
|
|
7
13
|
|
|
8
14
|
interface verify {
|
|
9
15
|
tip: string;
|
|
@@ -16,9 +22,9 @@ interface Props {
|
|
|
16
22
|
onChange?: Function;
|
|
17
23
|
value?: any;
|
|
18
24
|
require?: boolean;
|
|
19
|
-
type?: string;
|
|
20
25
|
name: string;
|
|
21
26
|
getContainer?: Function;
|
|
27
|
+
layout?: "clomn" | "row";
|
|
22
28
|
}
|
|
23
29
|
interface Error {
|
|
24
30
|
name: string;
|
|
@@ -26,10 +32,10 @@ interface Error {
|
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
const OverlayInner = ({ hasError, hasActive, tip }) => {
|
|
29
|
-
if (hasError) return <span style={{
|
|
30
|
-
if (hasActive) return <span style={{
|
|
35
|
+
if (hasError) return <span style={{ color: "#F05E5E" }}>{tip}</span>;
|
|
36
|
+
if (hasActive) return <span style={{ color: "#3F4755" }}>{tip}</span>;
|
|
31
37
|
return <span />;
|
|
32
|
-
}
|
|
38
|
+
};
|
|
33
39
|
|
|
34
40
|
export default forwardRef((props: Props, ref) => {
|
|
35
41
|
const {
|
|
@@ -38,20 +44,21 @@ export default forwardRef((props: Props, ref) => {
|
|
|
38
44
|
placeholder,
|
|
39
45
|
onChange,
|
|
40
46
|
require,
|
|
41
|
-
type,
|
|
42
47
|
name,
|
|
43
|
-
getContainer
|
|
48
|
+
getContainer,
|
|
49
|
+
layout,
|
|
44
50
|
} = props;
|
|
45
51
|
|
|
46
52
|
const inputRef = useRef<any>();
|
|
47
53
|
const [hasError, setHasError] = useState<boolean>(false);
|
|
48
54
|
const [hasActive, setHasActive] = useState<boolean>(false);
|
|
49
|
-
const [
|
|
50
|
-
const [
|
|
55
|
+
const [showPwd, setShowPwd] = useState(false);
|
|
56
|
+
const [tip, setTip] = useState<string>("");
|
|
57
|
+
const [value, setValue] = useState<string>(props.value || "");
|
|
51
58
|
|
|
52
59
|
useEffect(() => {
|
|
53
60
|
setValue(props.value);
|
|
54
|
-
}, [props.value])
|
|
61
|
+
}, [props.value]);
|
|
55
62
|
|
|
56
63
|
const verifing = (): Error[] => {
|
|
57
64
|
const value = inputRef.current && inputRef.current.value;
|
|
@@ -65,16 +72,16 @@ export default forwardRef((props: Props, ref) => {
|
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
74
|
return errors;
|
|
68
|
-
}
|
|
75
|
+
};
|
|
69
76
|
|
|
70
77
|
const onInputFocusHandler = () => {
|
|
71
78
|
setHasActive(true);
|
|
72
79
|
inputRef.current.setSelectionRange(9999999, 9999999);
|
|
73
|
-
}
|
|
80
|
+
};
|
|
74
81
|
|
|
75
82
|
const onBlurHandler = () => {
|
|
76
83
|
setHasActive(false);
|
|
77
|
-
}
|
|
84
|
+
};
|
|
78
85
|
|
|
79
86
|
const onChangeHandler = () => {
|
|
80
87
|
const value = inputRef.current && inputRef.current.value;
|
|
@@ -86,12 +93,12 @@ export default forwardRef((props: Props, ref) => {
|
|
|
86
93
|
setTip(errors[0].tip);
|
|
87
94
|
} else {
|
|
88
95
|
setHasError(false);
|
|
89
|
-
setTip(
|
|
96
|
+
setTip("");
|
|
90
97
|
}
|
|
91
|
-
}
|
|
98
|
+
};
|
|
92
99
|
|
|
93
100
|
useImperativeHandle(ref, () => ({
|
|
94
|
-
|
|
101
|
+
verifing: (): Error[] => {
|
|
95
102
|
const errors = verifing();
|
|
96
103
|
if (errors.length) {
|
|
97
104
|
setHasError(true);
|
|
@@ -99,37 +106,52 @@ export default forwardRef((props: Props, ref) => {
|
|
|
99
106
|
inputRef.current.focus();
|
|
100
107
|
}
|
|
101
108
|
return errors;
|
|
102
|
-
}
|
|
103
|
-
}))
|
|
109
|
+
},
|
|
110
|
+
}));
|
|
104
111
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
const onTypeChangeHandler = () => setShowPwd(!showPwd);
|
|
113
|
+
|
|
114
|
+
return (
|
|
115
|
+
<div
|
|
116
|
+
className={classNames(preCls, { [`${preCls}-row`]: layout === "row" })}
|
|
117
|
+
>
|
|
118
|
+
<div className={classNames(`${preCls}__label`)}>
|
|
119
|
+
<span className={classNames(`${preCls}__label-text`)}>{label}</span>
|
|
120
|
+
{require && (
|
|
121
|
+
<span className={classNames(`${preCls}__label-require`)}>*</span>
|
|
122
|
+
)}
|
|
123
|
+
</div>
|
|
124
|
+
<div
|
|
125
|
+
className={classNames(`${preCls}__border`, {
|
|
126
|
+
[`${preCls}__border--error`]: hasError,
|
|
127
|
+
[`${preCls}__border--active`]: hasActive,
|
|
128
|
+
})}
|
|
120
129
|
>
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
<ToolTip
|
|
131
|
+
placement={"topLeft"}
|
|
132
|
+
destroyTooltipOnHide={true}
|
|
133
|
+
visible={(hasActive || hasError) && tip}
|
|
134
|
+
overlay={
|
|
135
|
+
<OverlayInner hasActive={hasActive} hasError={hasError} tip={tip} />
|
|
136
|
+
}
|
|
137
|
+
getTooltipContainer={getContainer}
|
|
138
|
+
>
|
|
139
|
+
<>
|
|
140
|
+
<input
|
|
141
|
+
ref={inputRef}
|
|
142
|
+
type={showPwd ? "text" : "password"}
|
|
143
|
+
className={classNames(`${preCls}__input`)}
|
|
144
|
+
value={value}
|
|
145
|
+
placeholder={placeholder}
|
|
146
|
+
onFocus={onInputFocusHandler}
|
|
147
|
+
onBlur={onBlurHandler}
|
|
148
|
+
onChange={onChangeHandler}
|
|
149
|
+
autoComplete="off"
|
|
150
|
+
/>
|
|
151
|
+
<span className="tu-icon-yincang" onClick={onTypeChangeHandler} />
|
|
152
|
+
</>
|
|
153
|
+
</ToolTip>
|
|
154
|
+
</div>
|
|
133
155
|
</div>
|
|
134
|
-
|
|
135
|
-
})
|
|
156
|
+
);
|
|
157
|
+
});
|
|
@@ -8,7 +8,8 @@ import _FormFieldTextarea from "./form-fields/textarea";
|
|
|
8
8
|
import _FormFieldRadios from "./form-fields/radios";
|
|
9
9
|
import _FormFieldDropDown from "./form-fields/dropdown";
|
|
10
10
|
import _FormFieldGroup from "./form-fields/group";
|
|
11
|
-
import _FormFieldVerificationCode from "./form-fields/input-verification-code"
|
|
11
|
+
import _FormFieldVerificationCode from "./form-fields/input-verification-code";
|
|
12
|
+
import _Password from './form-fields/password';
|
|
12
13
|
import { SingleLayout } from "./layout";
|
|
13
14
|
import "./index.scss";
|
|
14
15
|
|
|
@@ -102,6 +103,7 @@ const FormFields = {
|
|
|
102
103
|
DropDown:_FormFieldDropDown,
|
|
103
104
|
GroupFields:_FormFieldGroup,
|
|
104
105
|
VerificationInput:_FormFieldVerificationCode,
|
|
106
|
+
Password: _Password
|
|
105
107
|
};
|
|
106
108
|
//@ts-ignore
|
|
107
109
|
Form.Fields = FormFields
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import {
|
|
4
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
5
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
3
|
+
import { isEn } from '../../../../utils/getLocale';
|
|
6
4
|
import './index.scss';
|
|
7
5
|
|
|
8
6
|
const preCls = 'titaui-drag-resize';
|
|
@@ -8,11 +8,7 @@ import Scrollbar from '../../../scrollbar';
|
|
|
8
8
|
import AppraisalMenuData, { AppraisalMenusInt, defaultRefObject } from "./menus";
|
|
9
9
|
import MenuHighlight from './menu-highlight';
|
|
10
10
|
import preCls from "../../precls";
|
|
11
|
-
import { getLocale } from "../../../../utils/getLocale";
|
|
12
|
-
import { getBSGlobal } from "../../../../utils/bs-global";
|
|
13
|
-
|
|
14
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
15
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
11
|
+
import { getLocale, isEn } from "../../../../utils/getLocale";
|
|
16
12
|
|
|
17
13
|
import "../../index.scss";
|
|
18
14
|
import "./index.scss";
|
|
@@ -8,13 +8,10 @@ import {
|
|
|
8
8
|
} from "../../components/menu-tree/tree-node/index";
|
|
9
9
|
import { menus } from "./constant";
|
|
10
10
|
import { JudgeManageHighLightMenu } from "./handle-highlight";
|
|
11
|
-
import { getLocale } from "../../../../utils/getLocale";
|
|
11
|
+
import { getLocale, isEn } from "../../../../utils/getLocale";
|
|
12
12
|
import FlipCard, { flipRefIns } from "../../components/flip-menu-card";
|
|
13
|
-
import { getBSGlobal } from "../../../../utils/bs-global";
|
|
14
13
|
import Scrollbar from "../../../scrollbar";
|
|
15
14
|
|
|
16
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
17
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
18
15
|
import "./index.scss";
|
|
19
16
|
|
|
20
17
|
interface Props {
|
|
@@ -8,10 +8,7 @@ import SearchColeague from "../../components/search-colleague";
|
|
|
8
8
|
import OkrFrontMenus from './okr-front-menus';
|
|
9
9
|
import { FlipContext } from '../../context';
|
|
10
10
|
import preCls from "../../precls";
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
14
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
11
|
+
import { isEn } from "../../../../utils/getLocale";
|
|
15
12
|
|
|
16
13
|
import "../../index.scss";
|
|
17
14
|
import "./index.scss";
|
|
@@ -7,6 +7,7 @@ import { getReminds } from "../../../../request.apis";
|
|
|
7
7
|
import Empty from "../empty";
|
|
8
8
|
import RemindItem from "./remind-item";
|
|
9
9
|
import Loading from "../../images/loading.gif";
|
|
10
|
+
import { getLocale } from "../../../../../../utils/getLocale";
|
|
10
11
|
import "./index.scss";
|
|
11
12
|
|
|
12
13
|
const preCls = "titaui-user-message-msg-remind";
|
|
@@ -65,7 +66,7 @@ const Remind = (props) => {
|
|
|
65
66
|
className={classNames(`${preCls}__footer-all`)}
|
|
66
67
|
onClick={() => deleteAll()}
|
|
67
68
|
>
|
|
68
|
-
|
|
69
|
+
{getLocale('Feed_Tab_IgnoreAll')}
|
|
69
70
|
</span>
|
|
70
71
|
</div>
|
|
71
72
|
</ConditionRender>
|
|
@@ -44,7 +44,7 @@ const Remind = (props) => {
|
|
|
44
44
|
className={classNames(`${preCls}__item-handle-ignore`)}
|
|
45
45
|
onClick={deleteOneTask}
|
|
46
46
|
>
|
|
47
|
-
|
|
47
|
+
{getLocale('Tasks_Menu_Ignore')}
|
|
48
48
|
</span>
|
|
49
49
|
<a
|
|
50
50
|
target="_blank"
|
|
@@ -55,7 +55,7 @@ const Remind = (props) => {
|
|
|
55
55
|
className={classNames(`${preCls}__item-handle-deal`)}
|
|
56
56
|
onClick={deleteOneTask}
|
|
57
57
|
>
|
|
58
|
-
|
|
58
|
+
{getLocale('Feed_Tab_ToDealWith')}
|
|
59
59
|
</span>
|
|
60
60
|
</a>
|
|
61
61
|
</div>
|
|
@@ -3,11 +3,9 @@ import { getBSGlobal } from "../../../../utils/bs-global";
|
|
|
3
3
|
import VersionChangeModal from "../../../version-change-modal";
|
|
4
4
|
import { Versions } from "../../../version-change-modal/constant";
|
|
5
5
|
import { getVersionTextMap } from "../../constant";
|
|
6
|
+
import { isEn } from "../../../../utils/getLocale";
|
|
6
7
|
import "./index.scss";
|
|
7
8
|
|
|
8
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
9
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
10
|
-
|
|
11
9
|
const prefix = "titaui-nav-top-version";
|
|
12
10
|
|
|
13
11
|
const Version: FC = () => {
|
|
@@ -22,7 +22,7 @@ export default ({ onCreateKr, canEditOkr, style={} }) => {
|
|
|
22
22
|
{canEditOkr &&
|
|
23
23
|
<div className={classNames(`${preCls}__action`)}>
|
|
24
24
|
<span className={classNames(`${preCls}__action-btn`)} onClick={() => onCreateKr()}>
|
|
25
|
-
<span
|
|
25
|
+
<span>{getLocale('OKR_MyO_Text_Addkeyr')}</span>
|
|
26
26
|
</span>
|
|
27
27
|
</div>
|
|
28
28
|
}
|
|
@@ -5,13 +5,10 @@ import Select from 'rc-select';
|
|
|
5
5
|
import 'rc-pagination/assets/index.css';
|
|
6
6
|
import './index.scss';
|
|
7
7
|
import './select.scss';
|
|
8
|
-
import {
|
|
8
|
+
import { isEn } from '../../utils/getLocale';
|
|
9
9
|
import zh_CN from './locale/zh_CN';
|
|
10
10
|
import en_US from './locale/en_US';
|
|
11
11
|
|
|
12
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
13
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
14
|
-
|
|
15
12
|
interface Props extends PaginationProps {
|
|
16
13
|
size?: 'md' | 'sm';
|
|
17
14
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { getLocale } from "../../utils/getLocale";
|
|
1
|
+
import { getLocale, isEn } from "../../utils/getLocale";
|
|
2
2
|
import { SelectedInterface, PeriodObj } from "./type";
|
|
3
3
|
import moment from "moment";
|
|
4
|
-
import { getBSGlobal } from "./helper";
|
|
5
|
-
|
|
6
|
-
const i18nInfo = getBSGlobal("I18NInfo");
|
|
7
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
8
4
|
|
|
9
5
|
export const getMonth = () => [
|
|
10
6
|
getLocale("Mod_Jan"),
|
|
@@ -3,10 +3,8 @@ import Dialog from "../dialog";
|
|
|
3
3
|
import MBlog from "../mblog";
|
|
4
4
|
import { addShare, addNotice } from "./requist-api";
|
|
5
5
|
import Toast from "../toast";
|
|
6
|
-
import { getUserInfo
|
|
7
|
-
import { getLocale } from "../../utils/getLocale";
|
|
8
|
-
const i18nInfo = getBSGlobal('I18NInfo')
|
|
9
|
-
const isEn = i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "en_US";
|
|
6
|
+
import { getUserInfo } from "../../utils/bs-global";
|
|
7
|
+
import { getLocale, isEn } from "../../utils/getLocale";
|
|
10
8
|
|
|
11
9
|
import "./publish-dynamic-modal.scss";
|
|
12
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC, useState, useEffect, useCallback } from 'react';
|
|
2
|
-
import { getLocale } from '../../utils/getLocale';
|
|
2
|
+
import { getLocale, isEn } from '../../utils/getLocale';
|
|
3
3
|
import './index.scss';
|
|
4
4
|
|
|
5
5
|
interface IStatusTimeProps {
|
|
@@ -61,7 +61,7 @@ const StatusTime: FC<IStatusTimeProps> = ({ deadLine, isLongTerm, isCancel, isCo
|
|
|
61
61
|
if (isLongTerm) return getLocale('Pro_newpro_LongTerm');
|
|
62
62
|
|
|
63
63
|
if (isRemainLessThan30Days && remainDays > 0 && !isComplete && !isCancel) {
|
|
64
|
-
return `${
|
|
64
|
+
return isEn ? `${remainDays} day(s)` : `剩余${remainDays}天`;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
return `${deadDate.year !== new Date().getFullYear() ? deadDate.year + '/' : ''}${deadDate.month}/${deadDate.day}`;
|
|
@@ -3,7 +3,7 @@ import RcTable from 'rc-table';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import Pagination from '../pagination'
|
|
6
|
-
import Checkbox from '
|
|
6
|
+
import Checkbox from '../checkbox';
|
|
7
7
|
import { getLocale } from '../../utils/getLocale';
|
|
8
8
|
import 'rc-table/assets/index.css';
|
|
9
9
|
|
|
@@ -1,44 +1,37 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import Cropper from 'react-cropper';
|
|
4
|
-
import 'cropperjs/dist/cropper.css';
|
|
5
4
|
import Toast from '../../components/toast';
|
|
6
5
|
import ConditionRender from '../condition-render';
|
|
7
6
|
import { saveTenantLogo, saveBrowserIcon, saveUserPhoto } from './request-api';
|
|
8
7
|
import Dialog from '../../components/dialog';
|
|
9
|
-
import { List } from './constant'
|
|
8
|
+
import { List } from './constant';
|
|
9
|
+
import 'cropperjs/dist/cropper.css';
|
|
10
10
|
import './index.scss';
|
|
11
|
-
import uuid from 'uuid';
|
|
12
|
-
import { getBSGlobal, getUserInfo, getTenantInfo } from '../../utils/bs-global';
|
|
13
|
-
const apiServer = getBSGlobal("apiPath")
|
|
14
|
-
const userid = getUserInfo().Id;
|
|
15
|
-
const tenantId = getTenantInfo().Id
|
|
16
|
-
|
|
17
11
|
|
|
18
12
|
const preCls = 'tita-ui-change-person-photo';
|
|
19
|
-
|
|
20
13
|
interface Props {
|
|
21
14
|
visible: boolean;
|
|
22
15
|
type: string; // person enterprise browser
|
|
23
16
|
onCancel: Function;
|
|
17
|
+
handleSuccessUploadPhoto: Function;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
20
|
const ChangePhoto = (props: Props) => {
|
|
27
|
-
const { visible, onCancel, type = '
|
|
21
|
+
const { visible, onCancel, type = 'person', handleSuccessUploadPhoto } = props;
|
|
28
22
|
|
|
29
23
|
const modalRef = useRef<any>();
|
|
24
|
+
const cropperRef = useRef<HTMLImageElement>(null);
|
|
30
25
|
|
|
31
26
|
const [ image, setImage ] = useState('');
|
|
32
27
|
const [ cropper, setCropper ] = useState<any>();
|
|
33
28
|
const [ cropData, setCropData ] = useState('#');
|
|
34
|
-
const [
|
|
35
|
-
const [
|
|
36
|
-
const [fileName, setFileName] = useState('')
|
|
37
|
-
|
|
38
|
-
const cropperRef = useRef<HTMLImageElement>(null);
|
|
29
|
+
const [ isEnter, setIsEnter ] = useState(false);
|
|
30
|
+
const [ fileName, setFileName ] = useState('')
|
|
39
31
|
|
|
32
|
+
const item = List.find(item => item.id === type)
|
|
33
|
+
|
|
40
34
|
const onChange = (e: any) => {
|
|
41
|
-
e.preventDefault();
|
|
42
35
|
let files;
|
|
43
36
|
if (e.dataTransfer) {
|
|
44
37
|
files = e.dataTransfer.files;
|
|
@@ -81,36 +74,37 @@ const ChangePhoto = (props: Props) => {
|
|
|
81
74
|
setCropper(formData);
|
|
82
75
|
};
|
|
83
76
|
|
|
77
|
+
const handleSuccessSave = (resp) => {
|
|
78
|
+
if (resp.Code === 1) {
|
|
79
|
+
Toast.Success('保存成功', {
|
|
80
|
+
style: { position: "fixed", top: " 36px", left: "50%" },
|
|
81
|
+
});
|
|
82
|
+
onCancel();
|
|
83
|
+
setImage('');
|
|
84
|
+
handleSuccessUploadPhoto(cropData);
|
|
85
|
+
} else {
|
|
86
|
+
Toast.Error(resp.Message, {
|
|
87
|
+
style: { position: "fixed", top: " 36px", left: "50%" },
|
|
88
|
+
});
|
|
89
|
+
setImage('');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
84
93
|
const handleSaveInfo = () => {
|
|
85
94
|
if (!image) {
|
|
86
95
|
return;
|
|
87
96
|
} else {
|
|
88
97
|
if(type === "person") {
|
|
89
98
|
saveUserPhoto(cropper).then((resp) => {
|
|
90
|
-
|
|
91
|
-
Toast.Success('保存成功', { canClose: false });
|
|
92
|
-
onCancel();
|
|
93
|
-
} else {
|
|
94
|
-
Toast.Error(resp.Message, { canClose: false });
|
|
95
|
-
}
|
|
99
|
+
handleSuccessSave(resp);
|
|
96
100
|
});
|
|
97
101
|
} else if(type === "enterprise") {
|
|
98
102
|
saveTenantLogo( cropper ).then((resp) => {
|
|
99
|
-
|
|
100
|
-
Toast.Success('保存成功', { canClose: false });
|
|
101
|
-
onCancel();
|
|
102
|
-
} else {
|
|
103
|
-
Toast.Error(resp.Message, { canClose: false });
|
|
104
|
-
}
|
|
103
|
+
handleSuccessSave(resp);
|
|
105
104
|
});
|
|
106
105
|
} else {
|
|
107
106
|
saveBrowserIcon( cropper ).then((resp) => {
|
|
108
|
-
|
|
109
|
-
Toast.Success('保存成功', { canClose: false });
|
|
110
|
-
onCancel();
|
|
111
|
-
} else {
|
|
112
|
-
Toast.Error(resp.Message, { canClose: false });
|
|
113
|
-
}
|
|
107
|
+
handleSuccessSave(resp);
|
|
114
108
|
});
|
|
115
109
|
}
|
|
116
110
|
}
|
|
@@ -124,6 +118,11 @@ const ChangePhoto = (props: Props) => {
|
|
|
124
118
|
setIsEnter(false);
|
|
125
119
|
}
|
|
126
120
|
|
|
121
|
+
const handleCancel = () => {
|
|
122
|
+
onCancel();
|
|
123
|
+
setImage('');
|
|
124
|
+
}
|
|
125
|
+
|
|
127
126
|
return (
|
|
128
127
|
<Dialog
|
|
129
128
|
visible={visible}
|
|
@@ -134,8 +133,8 @@ const ChangePhoto = (props: Props) => {
|
|
|
134
133
|
title={'上传头像'}
|
|
135
134
|
noHeadLine
|
|
136
135
|
maskClosable={false}
|
|
137
|
-
onClose={
|
|
138
|
-
onCancel={
|
|
136
|
+
onClose={handleCancel}
|
|
137
|
+
onCancel={handleCancel}
|
|
139
138
|
okText="保存"
|
|
140
139
|
noFooterLine
|
|
141
140
|
onOk={handleSaveInfo}
|
|
@@ -153,19 +152,9 @@ const ChangePhoto = (props: Props) => {
|
|
|
153
152
|
accept={item?.accept}
|
|
154
153
|
/>
|
|
155
154
|
<span className={`${preCls}__upload-right-title`}>点击上传</span>
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</span>
|
|
160
|
-
</ConditionRender>
|
|
161
|
-
<ConditionRender condition={type === 'enterprise'}>
|
|
162
|
-
<span className={`${preCls}__upload-right-tips`}>
|
|
163
|
-
{item?.tips}
|
|
164
|
-
</span>
|
|
165
|
-
</ConditionRender>
|
|
166
|
-
<ConditionRender condition={type === 'browser'}>
|
|
167
|
-
<span className={`${preCls}__upload-right-tips`}>{item?.tips}</span>
|
|
168
|
-
</ConditionRender>
|
|
155
|
+
<span className={`${preCls}__upload-right-tips`}>
|
|
156
|
+
{item?.tips}
|
|
157
|
+
</span>
|
|
169
158
|
</div>
|
|
170
159
|
</div>
|
|
171
160
|
<div className={`${preCls}__upload-left`}>
|
|
@@ -174,11 +163,7 @@ const ChangePhoto = (props: Props) => {
|
|
|
174
163
|
<div className={`${preCls}__upload-left-box2`} />
|
|
175
164
|
<div className={`${preCls}__upload-left-box3`} />
|
|
176
165
|
</ConditionRender>
|
|
177
|
-
<ConditionRender condition={type === 'enterprise'}>
|
|
178
|
-
<div className={`${preCls}__upload-left-box`} />
|
|
179
|
-
<span className={`${preCls}__upload-left-preview`}>{item?.previewTitle}</span>
|
|
180
|
-
</ConditionRender>
|
|
181
|
-
<ConditionRender condition={type === 'browser'}>
|
|
166
|
+
<ConditionRender condition={type === 'enterprise' || type === 'browser'}>
|
|
182
167
|
<div className={`${preCls}__upload-left-box`} />
|
|
183
168
|
<span className={`${preCls}__upload-left-preview`}>{item?.previewTitle}</span>
|
|
184
169
|
</ConditionRender>
|
|
@@ -203,9 +188,9 @@ const ChangePhoto = (props: Props) => {
|
|
|
203
188
|
/>
|
|
204
189
|
<div className={classNames(`${preCls}__preview-box`, {[`${preCls}__preview-box-bgc`]:type === "enterprise"}, {[`${preCls}__preview-box-browser`]:type === "browser"})}>
|
|
205
190
|
<ConditionRender condition={type === "person"}>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
191
|
+
<img src={cropData} className={`${preCls}__preview-box1`} />
|
|
192
|
+
<img src={cropData} className={`${preCls}__preview-box2`} />
|
|
193
|
+
<img src={cropData} className={`${preCls}__preview-box3`} />
|
|
209
194
|
</ConditionRender>
|
|
210
195
|
<ConditionRender condition={type === "enterprise"}>
|
|
211
196
|
<img src={cropData} className={`${preCls}__preview-enterprise-img`}/>
|