@titaui/pc 1.8.2 → 1.8.6
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 +5 -5
- 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 +3 -1
- 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.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 +1 -1
- 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 +1 -1
- package/lib/components/form/form-fields/group/index.js +1 -1
- package/lib/components/form/form-fields/input/index.css +3 -2
- package/lib/components/form/form-fields/input/index.js +2 -2
- package/lib/components/form/form-fields/input-verification-code/index.js +1 -1
- package/lib/components/form/form-fields/password/index.js +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.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 +1 -1
- 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/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/password-input/index.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/lib/components/table/index.css +1 -0
- package/lib/components/table/index.js +1 -1
- 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 +7 -7
- package/lib/components/upload-photo-modal/constant.js +7 -71
- package/lib/components/upload-photo-modal/index.css +13 -1
- package/lib/components/upload-photo-modal/index.js +96 -94
- package/lib/components/upload-photo-modal/request-api.js +22 -4
- 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/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 +3 -3
- 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.js +3 -3
- package/lib/pages/personal-info/components/edit-info/index.css +19 -0
- package/lib/pages/personal-info/components/edit-info/index.js +27 -10
- package/lib/pages/personal-info/components/edit-info/input/index.js +1 -1
- package/lib/pages/personal-info/components/person-photo/index.js +1 -1
- package/lib/utils/auth.js +3 -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/dialog/index.scss +3 -1
- package/src/components/form/form-fields/input/index.scss +3 -2
- package/src/components/form/form-fields/input/index.tsx +2 -2
- package/src/components/table/index.scss +1 -0
- package/src/components/upload/index.tsx +4 -4
- package/src/components/upload-photo-modal/constant.ts +7 -45
- package/src/components/upload-photo-modal/index.scss +11 -1
- package/src/components/upload-photo-modal/index.tsx +78 -71
- package/src/components/upload-photo-modal/request-api.ts +13 -3
- package/src/pages/personal-info/components/edit-info/index.scss +20 -0
- package/src/pages/personal-info/components/edit-info/index.tsx +19 -5
- package/yarn-error.log +103 -0
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
&-enterprise {
|
|
161
161
|
&-img {
|
|
162
162
|
position: absolute;
|
|
163
|
-
top:
|
|
163
|
+
top: 1px;
|
|
164
164
|
right: 45px;
|
|
165
165
|
width: 70px;
|
|
166
166
|
height: 28px;
|
|
@@ -222,6 +222,10 @@
|
|
|
222
222
|
display: block;
|
|
223
223
|
opacity: 0;
|
|
224
224
|
cursor: pointer;
|
|
225
|
+
width: 56px;
|
|
226
|
+
height: 22px;
|
|
227
|
+
position: absolute;
|
|
228
|
+
left: 124px;
|
|
225
229
|
}
|
|
226
230
|
}
|
|
227
231
|
&-again {
|
|
@@ -234,6 +238,12 @@
|
|
|
234
238
|
&--show {
|
|
235
239
|
cursor: pointer;
|
|
236
240
|
color: #2879ff;
|
|
241
|
+
&:hover {
|
|
242
|
+
color: #DFE3EA;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
&--hover {
|
|
246
|
+
color: #DFE3EA;
|
|
237
247
|
}
|
|
238
248
|
}
|
|
239
249
|
&-preview {
|
|
@@ -4,10 +4,16 @@ import Cropper from 'react-cropper';
|
|
|
4
4
|
import 'cropperjs/dist/cropper.css';
|
|
5
5
|
import Toast from '../../components/toast';
|
|
6
6
|
import ConditionRender from '../condition-render';
|
|
7
|
-
import {
|
|
7
|
+
import { saveTenantLogo, saveBrowserIcon, saveUserPhoto } from './request-api';
|
|
8
8
|
import Dialog from '../../components/dialog';
|
|
9
9
|
import { List } from './constant'
|
|
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
|
+
|
|
11
17
|
|
|
12
18
|
const preCls = 'tita-ui-change-person-photo';
|
|
13
19
|
|
|
@@ -22,99 +28,101 @@ const ChangePhoto = (props: Props) => {
|
|
|
22
28
|
|
|
23
29
|
const modalRef = useRef<any>();
|
|
24
30
|
|
|
25
|
-
const [ image, setImage ] = useState();
|
|
31
|
+
const [ image, setImage ] = useState('');
|
|
26
32
|
const [ cropper, setCropper ] = useState<any>();
|
|
27
33
|
const [ cropData, setCropData ] = useState('#');
|
|
28
|
-
const [ userInfo, setUserInfo ] = useState({ Avatar: '' });
|
|
29
34
|
const [item] = useState(List.find(item => item.id === type));
|
|
35
|
+
const [isEnter, setIsEnter] = useState(false);
|
|
36
|
+
const [fileName, setFileName] = useState('')
|
|
30
37
|
|
|
31
38
|
const cropperRef = useRef<HTMLImageElement>(null);
|
|
32
39
|
|
|
33
|
-
const onChange = (e: any) => {
|
|
40
|
+
const onChange = (e: any) => {
|
|
34
41
|
e.preventDefault();
|
|
35
42
|
let files;
|
|
36
43
|
if (e.dataTransfer) {
|
|
37
44
|
files = e.dataTransfer.files;
|
|
38
45
|
} else if (e.target) {
|
|
39
46
|
files = e.target.files;
|
|
40
|
-
}
|
|
41
|
-
|
|
47
|
+
}
|
|
48
|
+
setFileName(files[0].name)
|
|
49
|
+
const reader = new FileReader();
|
|
42
50
|
reader.onload = () => {
|
|
43
|
-
setImage(reader.result as any);
|
|
51
|
+
setImage(reader.result as any);
|
|
44
52
|
};
|
|
45
53
|
reader.readAsDataURL(files[0]);
|
|
46
54
|
};
|
|
47
55
|
|
|
48
|
-
|
|
56
|
+
|
|
57
|
+
const dataURLtoFile = (dataurl, filename) => {
|
|
58
|
+
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1],
|
|
59
|
+
bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
|
|
60
|
+
while(n--){
|
|
61
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
62
|
+
}
|
|
63
|
+
return new File([u8arr], filename, {type:mime});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
const onCrop = () => {
|
|
49
68
|
const imageElement: any = cropperRef.current;
|
|
50
|
-
const cropper: any = imageElement.cropper;
|
|
51
|
-
setCropData(cropper.getCroppedCanvas().toDataURL());
|
|
52
|
-
setUserInfo(cropper.getCroppedCanvas().toDataURL());
|
|
69
|
+
const cropper: any = imageElement.cropper;
|
|
53
70
|
|
|
71
|
+
setCropData(cropper.getCroppedCanvas().toDataURL());
|
|
72
|
+
|
|
54
73
|
let base64Url = cropper.getCroppedCanvas().toDataURL();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
74
|
+
|
|
75
|
+
const newFile = dataURLtoFile(base64Url, fileName);
|
|
76
|
+
|
|
58
77
|
let formData = new FormData();
|
|
59
|
-
formData.append('file', FileOrBlob, "file_" + Date.parse(new Date()) + ".png");
|
|
60
|
-
setCropper(formData)
|
|
61
|
-
};
|
|
62
78
|
|
|
63
|
-
|
|
64
|
-
var bytes = window.atob(urlData.split(',')[1]);
|
|
65
|
-
var ab = new ArrayBuffer(bytes.length);
|
|
66
|
-
var ia = new Uint8Array(ab);
|
|
67
|
-
for (var i = 0; i < bytes.length; i++) {
|
|
68
|
-
ia[i] = bytes.charCodeAt(i);
|
|
69
|
-
}
|
|
70
|
-
return new Blob([ab], { type: 'image/png' });
|
|
71
|
-
}
|
|
79
|
+
formData.append('file', newFile);
|
|
72
80
|
|
|
73
|
-
|
|
74
|
-
if (!image) {
|
|
75
|
-
return;
|
|
76
|
-
} else {
|
|
77
|
-
saveUserInfo({ data: userInfo }).then((resp) => {
|
|
78
|
-
if (resp.Code === 1) {
|
|
79
|
-
Toast.Success('保存成功', { canClose: false });
|
|
80
|
-
onCancel();
|
|
81
|
-
} else {
|
|
82
|
-
Toast.Error(resp.Message, { canClose: false });
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
81
|
+
setCropper(formData);
|
|
86
82
|
};
|
|
83
|
+
|
|
87
84
|
const handleSaveInfo = () => {
|
|
88
85
|
if (!image) {
|
|
89
86
|
return;
|
|
90
|
-
} else {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
87
|
+
} else {
|
|
88
|
+
if(type === "person") {
|
|
89
|
+
saveUserPhoto(cropper).then((resp) => {
|
|
90
|
+
if (resp.Code === 1) {
|
|
91
|
+
Toast.Success('保存成功', { canClose: false });
|
|
92
|
+
onCancel();
|
|
93
|
+
} else {
|
|
94
|
+
Toast.Error(resp.Message, { canClose: false });
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
} else if(type === "enterprise") {
|
|
98
|
+
saveTenantLogo( cropper ).then((resp) => {
|
|
99
|
+
if (resp.Code === 1) {
|
|
100
|
+
Toast.Success('保存成功', { canClose: false });
|
|
101
|
+
onCancel();
|
|
102
|
+
} else {
|
|
103
|
+
Toast.Error(resp.Message, { canClose: false });
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
} else {
|
|
107
|
+
saveBrowserIcon( cropper ).then((resp) => {
|
|
108
|
+
if (resp.Code === 1) {
|
|
109
|
+
Toast.Success('保存成功', { canClose: false });
|
|
110
|
+
onCancel();
|
|
111
|
+
} else {
|
|
112
|
+
Toast.Error(resp.Message, { canClose: false });
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
99
116
|
}
|
|
100
117
|
};
|
|
101
118
|
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (resp.Code === 1) {
|
|
110
|
-
Toast.Success('保存成功', { canClose: false });
|
|
111
|
-
onCancel();
|
|
112
|
-
} else {
|
|
113
|
-
Toast.Error(resp.Message, { canClose: false });
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
};
|
|
119
|
+
const handleEnterAgain = () => {
|
|
120
|
+
setIsEnter(true);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const handleLeaveAgain = () => {
|
|
124
|
+
setIsEnter(false);
|
|
125
|
+
}
|
|
118
126
|
|
|
119
127
|
return (
|
|
120
128
|
<Dialog
|
|
@@ -130,7 +138,7 @@ const ChangePhoto = (props: Props) => {
|
|
|
130
138
|
onCancel={onCancel}
|
|
131
139
|
okText="保存"
|
|
132
140
|
noFooterLine
|
|
133
|
-
onOk={
|
|
141
|
+
onOk={handleSaveInfo}
|
|
134
142
|
>
|
|
135
143
|
<div className={preCls}>
|
|
136
144
|
{!image ?
|
|
@@ -185,15 +193,12 @@ const ChangePhoto = (props: Props) => {
|
|
|
185
193
|
responsive={true}
|
|
186
194
|
autoCropArea={item?.autoCropArea}
|
|
187
195
|
checkOrientation={true}
|
|
188
|
-
minCropBoxHeight={
|
|
189
|
-
minCropBoxWidth={
|
|
196
|
+
minCropBoxHeight={item?.minCropBoxHeight}
|
|
197
|
+
minCropBoxWidth={item?.minCropBoxWidth}
|
|
190
198
|
initialAspectRatio={item?.initialAspectRatio}
|
|
191
199
|
guides={true}
|
|
192
200
|
preview=".img-preview"
|
|
193
201
|
ref={cropperRef}
|
|
194
|
-
// onInitialized={(instance) => {
|
|
195
|
-
// setCropper(instance);
|
|
196
|
-
// }}
|
|
197
202
|
crop={onCrop}
|
|
198
203
|
/>
|
|
199
204
|
<div className={classNames(`${preCls}__preview-box`, {[`${preCls}__preview-box-bgc`]:type === "enterprise"}, {[`${preCls}__preview-box-browser`]:type === "browser"})}>
|
|
@@ -220,8 +225,10 @@ const ChangePhoto = (props: Props) => {
|
|
|
220
225
|
type="file"
|
|
221
226
|
onChange={onChange}
|
|
222
227
|
className={classNames(`${preCls}__title-input`, { [`${preCls}__title-input--show`]: image })}
|
|
228
|
+
onMouseEnter={handleEnterAgain}
|
|
229
|
+
onMouseLeave={handleLeaveAgain}
|
|
223
230
|
/>
|
|
224
|
-
<span className={classNames(`${preCls}__title-again`, { [`${preCls}__title-again--show`]: image })}>
|
|
231
|
+
<span className={classNames(`${preCls}__title-again`, { [`${preCls}__title-again--show`]: image },{ [`${preCls}__title-again--hover`]: isEnter })}>
|
|
225
232
|
重新上传
|
|
226
233
|
</span>
|
|
227
234
|
<ConditionRender condition={type === 'person'}>
|
|
@@ -8,16 +8,26 @@ export const getUserInfoFun = () => {
|
|
|
8
8
|
|
|
9
9
|
export const saveUserInfo = ({ data }) => {
|
|
10
10
|
return rput("v1")("manage/user/update", data, {
|
|
11
|
-
"headers": { "Content-Type": "
|
|
11
|
+
"headers": { "Content-Type": "multipart/form-data"},
|
|
12
12
|
"transformRequest": qs.stringify,
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
export const saveUserPhoto = (params) => {
|
|
17
|
+
return rpost("v1")("manage/user/avatar", params, {
|
|
18
|
+
"headers": { "Content-Type": "multipart/form-data"},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
export const saveTenantLogo = (params) => {
|
|
17
|
-
return rpost("v1")("tenant/update/logo", params
|
|
23
|
+
return rpost("v1")("tenant/update/logo", params, {
|
|
24
|
+
"headers": { "Content-Type": "multipart/form-data"},
|
|
25
|
+
});
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
export const saveBrowserIcon = (params) => {
|
|
21
|
-
return rpost("v1")("tenant/update/browerIcon", params
|
|
29
|
+
return rpost("v1")("tenant/update/browerIcon", params, {
|
|
30
|
+
"headers": { "Content-Type": "multipart/form-data"},
|
|
31
|
+
});
|
|
22
32
|
}
|
|
23
33
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.titaui-edit-personal-info {
|
|
2
|
+
&__form {
|
|
3
|
+
.titaui-form {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0 32px;
|
|
6
|
+
}
|
|
7
|
+
.form-field-input__label {
|
|
8
|
+
width: 62px;
|
|
9
|
+
}
|
|
10
|
+
.form-field-input__label-text {
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
color: #89919F;
|
|
14
|
+
line-height: 22px;
|
|
15
|
+
}
|
|
16
|
+
.rc-tooltip {
|
|
17
|
+
left:110.5px !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import Form from '../../../../components/form';
|
|
2
3
|
import { getUserInfoFun, saveUserInfo } from '../../request-api';
|
|
3
4
|
import Toast from '../../../../components/toast';
|
|
4
|
-
import Input from './input';
|
|
5
|
+
// import Input from './input';
|
|
5
6
|
import Dialog from '../../../../components/dialog';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
|
|
9
|
+
const { Fields } = Form;
|
|
10
|
+
|
|
11
|
+
const prefix = "titaui-edit-personal-info"
|
|
6
12
|
|
|
7
13
|
const EditBaseInfo = (props) => {
|
|
8
14
|
const { visible, onCancel } = props;
|
|
9
15
|
|
|
10
16
|
const modalRef = useRef<any>();
|
|
17
|
+
const formContainerRef = useRef<any>();
|
|
18
|
+
const formRef = useRef<any>();
|
|
11
19
|
|
|
12
20
|
const [ isDisable, setIsDisable ] = useState(false);
|
|
13
21
|
const [ isEdit, setIsEdit ] = useState(false);
|
|
@@ -92,12 +100,15 @@ const EditBaseInfo = (props) => {
|
|
|
92
100
|
onOk={handleSaveUserInfo}
|
|
93
101
|
disabled={isDisable}
|
|
94
102
|
>
|
|
95
|
-
|
|
103
|
+
<div className={`${prefix}__form`} ref={formContainerRef}>
|
|
104
|
+
<Form ref={formRef} getFormContainer={() => formContainerRef.current}>
|
|
105
|
+
<Fields.Input
|
|
96
106
|
name="name"
|
|
97
107
|
label={'姓名'}
|
|
98
108
|
placeholder={'请输入姓名'}
|
|
99
109
|
type="text"
|
|
100
110
|
require
|
|
111
|
+
layout="row"
|
|
101
112
|
verifies={[
|
|
102
113
|
{
|
|
103
114
|
tip: '姓名不能为空',
|
|
@@ -111,12 +122,13 @@ const EditBaseInfo = (props) => {
|
|
|
111
122
|
value={userInfo.name}
|
|
112
123
|
onChange={handleNameChange}
|
|
113
124
|
/>
|
|
114
|
-
<Input
|
|
125
|
+
<Fields.Input
|
|
115
126
|
name="phone"
|
|
116
127
|
type="text"
|
|
117
128
|
label={'手机号码'}
|
|
118
129
|
placeholder={'请输入手机号'}
|
|
119
130
|
require
|
|
131
|
+
layout="row"
|
|
120
132
|
value={userInfo.mobile}
|
|
121
133
|
verifies={[
|
|
122
134
|
{
|
|
@@ -130,12 +142,12 @@ const EditBaseInfo = (props) => {
|
|
|
130
142
|
]}
|
|
131
143
|
onChange={handlePhoneChange}
|
|
132
144
|
/>
|
|
133
|
-
<Input
|
|
145
|
+
<Fields.Input
|
|
134
146
|
name="email"
|
|
135
147
|
type="text"
|
|
136
148
|
label={'邮箱'}
|
|
137
149
|
value={userInfo.email}
|
|
138
|
-
|
|
150
|
+
layout="row"
|
|
139
151
|
placeholder={'请输入邮箱'}
|
|
140
152
|
verifies={[
|
|
141
153
|
{
|
|
@@ -145,6 +157,8 @@ const EditBaseInfo = (props) => {
|
|
|
145
157
|
]}
|
|
146
158
|
onChange={handleEmailChange}
|
|
147
159
|
/>
|
|
160
|
+
</Form>
|
|
161
|
+
</div>
|
|
148
162
|
</Dialog>
|
|
149
163
|
);
|
|
150
164
|
};
|
package/yarn-error.log
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
/usr/local/bin/node /usr/local/bin/yarn
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.10
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
12.22.1
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
darwin x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
SyntaxError: /Users/yang/tita/titaui-pc/package.json: Unexpected token < in JSON at position 26
|
|
18
|
+
at JSON.parse (<anonymous>)
|
|
19
|
+
at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
|
|
20
|
+
at Generator.next (<anonymous>)
|
|
21
|
+
at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
|
|
22
|
+
at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
|
|
23
|
+
|
|
24
|
+
npm manifest:
|
|
25
|
+
{
|
|
26
|
+
"name": "@titaui/pc",
|
|
27
|
+
<<<<<<< HEAD
|
|
28
|
+
"version": "1.2.22",
|
|
29
|
+
=======
|
|
30
|
+
"version": "1.2.13",
|
|
31
|
+
>>>>>>> master
|
|
32
|
+
"nameCN": "",
|
|
33
|
+
"description": "",
|
|
34
|
+
"main": "src/index.js",
|
|
35
|
+
"scripts": {
|
|
36
|
+
"storybook": "start-storybook -p 6006 --no-dll",
|
|
37
|
+
"start": "dev_server=on webpack-dev-server --disableHostCheck=true --progress --colors --config webpack-stories.config.js",
|
|
38
|
+
"build-storybook": "build-storybook --docs --no-dll",
|
|
39
|
+
"build:es": "babel src -d es --ignore **/__tests__",
|
|
40
|
+
"build:lib": "cross-env OUTPUT_MODULE=commonjs babel src -d lib --ignore **/__tests__",
|
|
41
|
+
"build:umd": "webpack --config ./.scripts/webpack.umd.js",
|
|
42
|
+
"build": "npm run build:lib && npm run build:es && npm run build:umd"
|
|
43
|
+
},
|
|
44
|
+
"author": "",
|
|
45
|
+
"license": "ISC",
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"del": "^6.0.0",
|
|
48
|
+
"gulp": "^3.x",
|
|
49
|
+
"gulp-autoprefixer": "^7.0.1",
|
|
50
|
+
"gulp-babel": "^8.0.0",
|
|
51
|
+
"gulp-concat": "^2.6.1",
|
|
52
|
+
"gulp-cssbeautify": "^3.0.0",
|
|
53
|
+
"gulp-cssnano": "^2.1.3",
|
|
54
|
+
"gulp-filesize": "0.0.6",
|
|
55
|
+
"gulp-postcss": "^9.0.0",
|
|
56
|
+
"gulp-rename": "^2.0.0",
|
|
57
|
+
"gulp-replace": "^1.0.0",
|
|
58
|
+
"gulp-sass": "^4.1.0",
|
|
59
|
+
"gulp-sourcemaps": "^2.6.5",
|
|
60
|
+
"sass-resources-loader": "^2.2.1"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@titaui/dagre": "^0.8.8-pre",
|
|
64
|
+
"@titaui/rc-tree2": "^4.1.15",
|
|
65
|
+
"@titaui/rc-trigger": "^5.2.5",
|
|
66
|
+
"@titaui/react-flow-renderer": "9.5.4",
|
|
67
|
+
"@titaui/toast": "^1.0.0",
|
|
68
|
+
"axios": "^0.21.1",
|
|
69
|
+
"classnames": "^2.2.6",
|
|
70
|
+
"clone-deep": "^4.0.1",
|
|
71
|
+
"d3-cloud": "^1.2.5",
|
|
72
|
+
"dayjs": "^1.10.4",
|
|
73
|
+
"html2canvas": "^1.0.0-rc.7",
|
|
74
|
+
"moment": "^2.29.1",
|
|
75
|
+
"qs": "^6.10.1",
|
|
76
|
+
"rc-checkbox": "^2.3.2",
|
|
77
|
+
"rc-dialog": "8.5.2",
|
|
78
|
+
"rc-drawer": "^4.3.1",
|
|
79
|
+
"rc-input-number": "^5.0.0",
|
|
80
|
+
"rc-pagination": "^3.1.6",
|
|
81
|
+
"rc-queue-anim": "1.4.1",
|
|
82
|
+
"rc-select": "^12.1.7",
|
|
83
|
+
"rc-switch": "^3.2.2",
|
|
84
|
+
"rc-table": "^7.13.2",
|
|
85
|
+
"rc-tabs": "^11.7.3",
|
|
86
|
+
"rc-tooltip": "^5.1.1",
|
|
87
|
+
"rc-tree": "^4.1.5",
|
|
88
|
+
"rc-trigger": "^5.2.3",
|
|
89
|
+
"rc-upload": "^4.2.0-alpha.0",
|
|
90
|
+
"rc-util": "^5.13.1",
|
|
91
|
+
"react-collapse": "^5.1.0",
|
|
92
|
+
"react-perfect-scrollbar": "^1.5.2",
|
|
93
|
+
"url-parse": "^1.5.1",
|
|
94
|
+
"uuid": "^3.1.0",
|
|
95
|
+
"wordcloud": "^1.2.2"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
yarn manifest:
|
|
100
|
+
No manifest
|
|
101
|
+
|
|
102
|
+
Lockfile:
|
|
103
|
+
No lockfile
|