@titaui/pc 1.6.8 → 1.6.12
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/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +38 -0
- package/lib/components/button/icon-btn/index.js +62 -0
- package/lib/components/button/index.css +3 -0
- package/lib/components/button/index.js +16 -9
- package/lib/components/button/rect-btn/index.css +82 -0
- package/lib/components/button/rect-btn/index.js +62 -0
- package/lib/components/button/text-btn/index.css +0 -0
- package/lib/components/button/text-btn/index.js +15 -0
- package/lib/components/button/types.js +5 -0
- package/lib/components/change-okr/index.js +1 -1
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/condition-render/index.js +20 -0
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/drawer/index.css +3 -1
- package/lib/components/drawer/index.js +2 -1
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -5
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/follower-visitor/img/follower-visitor-follower.png +0 -0
- package/lib/components/follower-visitor/img/follower-visitor-visitor.png +0 -0
- package/lib/components/follower-visitor/index.css +35 -0
- package/lib/components/follower-visitor/index.js +152 -0
- package/lib/components/follower-visitor/request-api.js +14 -0
- package/lib/components/form/form-fields/radios/index.css +25 -0
- package/lib/components/form/form-fields/radios/index.js +53 -0
- package/lib/components/form/index.js +5 -2
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/image/canceled.svg +13 -0
- package/lib/components/help-card/image/helpzx.svg +8 -0
- package/lib/components/help-card/image/kefu.svg +18 -0
- package/lib/components/help-card/image/kefu1.svg +8 -0
- package/lib/components/help-card/image/okr-shequ.svg +14 -0
- package/lib/components/help-card/image/question.svg +20 -0
- package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
- package/lib/components/help-card/index.css +219 -0
- package/lib/components/help-card/index.js +282 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/invite-people/index.css +9 -0
- package/lib/components/invite-people/index.js +28 -0
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +18 -0
- package/lib/components/menus/components/drag-resize/index.js +77 -0
- package/lib/components/menus/components/flip-menu-card/back-icon.svg +25 -0
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +28 -0
- package/lib/components/menus/components/flip-menu-card/index.css +89 -0
- package/lib/components/menus/components/flip-menu-card/index.js +193 -0
- package/lib/components/menus/components/flip-menu-card/precls.js +8 -0
- package/lib/components/menus/components/menu-card/index.css +29 -0
- package/lib/components/menus/components/menu-card/index.js +53 -0
- package/lib/components/menus/components/menu-close-btn/index.css +42 -0
- package/lib/components/menus/components/menu-close-btn/index.js +40 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/PF-shezhi.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/ZBmuban.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/bumen.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/kaohe.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/uniEA10.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/untitled.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/arrow.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/caidan-xiashu.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/ditu.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/guanzhu.svg +14 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr-gongsi.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr.svg +19 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/rw-zx.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/user-concern-add.svg +29 -0
- package/lib/components/menus/components/menu-tree/images/yibiao.svg +14 -0
- package/lib/components/menus/components/menu-tree/index.css +33 -0
- package/lib/components/menus/components/menu-tree/index.js +66 -0
- package/lib/components/menus/components/menu-tree/precls.js +8 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.css +17 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +41 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.css +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +73 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/group-name-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/index.css +360 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +91 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +40 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +36 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +86 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +111 -0
- package/lib/components/menus/components/search-colleague/index.css +53 -0
- package/lib/components/menus/components/search-colleague/index.js +88 -0
- package/lib/components/menus/context.js +14 -0
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +109 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.css +0 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.js +89 -0
- package/lib/components/menus/export-modules/depart-menus/helper.js +54 -0
- package/lib/components/menus/export-modules/depart-menus/index.css +0 -0
- package/lib/components/menus/export-modules/depart-menus/index.js +99 -0
- package/lib/components/menus/export-modules/okr-menus/datas.js +189 -0
- package/lib/components/menus/export-modules/okr-menus/index.css +33 -0
- package/lib/components/menus/export-modules/okr-menus/index.js +166 -0
- package/lib/components/menus/export-modules/subordinate-menus/helper.js +25 -0
- package/lib/components/menus/export-modules/subordinate-menus/index.js +108 -0
- package/lib/components/menus/index.css +20 -0
- package/lib/components/menus/index.js +51 -0
- package/lib/components/menus/precls.js +8 -0
- package/lib/components/menus/request-apis.js +97 -0
- package/lib/components/menus/types.js +5 -0
- package/lib/components/menus/utils.js +33 -0
- package/lib/components/nav-top/components/menu/index.css +90 -0
- package/lib/components/nav-top/components/menu/index.js +115 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.css +30 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.js +36 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.css +114 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.js +152 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +159 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.js +120 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +132 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.js +100 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +31 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.css +129 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.js +98 -0
- package/lib/components/nav-top/components/user-message/constant.js +39 -0
- package/lib/components/nav-top/components/user-message/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/components/user-message/images/bell.svg +18 -0
- package/lib/components/nav-top/components/user-message/images/empty-img.svg +130 -0
- package/lib/components/nav-top/components/user-message/images/user-photo.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +77 -0
- package/lib/components/nav-top/components/user-message/index.js +180 -0
- package/lib/components/nav-top/components/user-message/msg/index.css +122 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +102 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +61 -0
- package/lib/components/{button/admin-button/drop-down-arrow.js → nav-top/components/user-own-menu/index.js} +29 -54
- package/lib/components/nav-top/components/version/index.css +22 -0
- package/lib/components/{button/export-button → nav-top/components/version}/index.js +31 -40
- package/lib/components/nav-top/constant.js +42 -0
- package/lib/components/nav-top/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/images/bell.svg +18 -0
- package/lib/components/nav-top/images/empty-img.svg +130 -0
- package/lib/components/nav-top/images/exit.svg +21 -0
- package/lib/components/nav-top/images/home.png +0 -0
- package/lib/components/nav-top/images/manage.png +0 -0
- package/lib/components/nav-top/images/manage.svg +21 -0
- package/lib/components/nav-top/images/open.svg +21 -0
- package/lib/components/nav-top/images/own-home.svg +19 -0
- package/lib/components/nav-top/images/qiye-o.svg +25 -0
- package/lib/components/nav-top/images/set.svg +19 -0
- package/lib/components/nav-top/images/user-photo.png +0 -0
- package/lib/components/nav-top/images/version.png +0 -0
- package/lib/components/nav-top/index.css +89 -0
- package/lib/components/nav-top/index.js +137 -0
- package/lib/components/nav-top/interface.js +5 -0
- package/lib/components/nav-top/mock.js +36 -0
- package/lib/components/nav-top/utils.js +77 -0
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +1 -2
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +0 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +196 -0
- package/lib/components/photo-card/components/card/index.js +106 -0
- package/lib/components/photo-card/data.js +19 -0
- package/lib/components/photo-card/images/user-add.svg +19 -0
- package/lib/components/photo-card/images/user-photo.png +0 -0
- package/lib/components/photo-card/images/user-role.svg +38 -0
- package/lib/components/photo-card/index.css +29 -0
- package/lib/components/photo-card/index.js +51 -0
- package/lib/components/photo-card/types/image.d.js +1 -0
- package/lib/components/photo-card/types/react-app-env.d.js +2 -0
- package/lib/components/point-demo/drop-down-box/index.css +98 -0
- package/lib/components/point-demo/drop-down-box/index.js +159 -0
- package/lib/components/point-demo/image/demo-bcg.png +0 -0
- package/lib/components/point-demo/image/down.svg +14 -0
- package/lib/components/point-demo/image/icon-canceled.svg +7 -0
- package/lib/components/point-demo/image/logo.svg +64 -0
- package/lib/components/point-demo/index.css +348 -0
- package/lib/components/point-demo/index.js +657 -0
- package/lib/components/point-demo/input/index.css +74 -0
- package/lib/components/point-demo/input/index.js +176 -0
- package/lib/components/point-demo/point-demo.js +93 -0
- package/lib/components/point-demo/popup/index.css +7 -0
- package/lib/components/point-demo/popup/index.js +113 -0
- package/lib/components/point-demo/popup/placement.js +44 -0
- package/lib/components/point-demo/popup/rc-trigger.css +127 -0
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +10 -4
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +4 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components/user-selector/layout/index.js +4 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/constant.js +45 -0
- package/lib/components/version-change-modal/images/header-b.png +0 -0
- package/lib/components/version-change-modal/images/header-g.png +0 -0
- package/lib/components/version-change-modal/images/header-y.png +0 -0
- package/lib/components/version-change-modal/images/okr.png +0 -0
- package/lib/components/version-change-modal/images/okre.png +0 -0
- package/lib/components/version-change-modal/images/performance.png +0 -0
- package/lib/components/version-change-modal/images/performancePlus.png +0 -0
- package/lib/components/version-change-modal/images/project.png +0 -0
- package/lib/components/version-change-modal/images/title.png +0 -0
- package/lib/components/version-change-modal/index.css +150 -0
- package/lib/components/version-change-modal/index.js +175 -0
- package/lib/components/version-change-modal/interface.js +5 -0
- package/lib/components/version-change-modal/request-api.js +41 -0
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/radio/style/index.css +3 -3
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/index.js +56 -6
- package/lib/pages/aha2021/index.css +42 -0
- package/lib/pages/aha2021/index.js +62 -0
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/okr-map/hooks/useStorage.js +2 -2
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +12 -9
- package/lib/pages/personal-info/components/base-info/index.css +36 -0
- package/lib/pages/personal-info/components/base-info/index.js +179 -0
- package/lib/pages/personal-info/index.css +3 -0
- package/lib/pages/personal-info/index.js +27 -0
- package/lib/pages/personal-info/request-api.js +32 -0
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +16 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +3 -4
- package/package.json +2 -1
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/export-button/index.css +0 -51
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
.titaui-menus-tree__group-name-node {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
text-align: left;
|
|
5
|
+
height: 40px;
|
|
6
|
+
line-height: 40px;
|
|
7
|
+
border-radius: 12px;
|
|
8
|
+
padding: 0 12px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-menus-tree__group-name-node-title {
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
color: #89919f;
|
|
16
|
+
line-height: 18px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-menus-tree__menu-item-node {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
text-align: left;
|
|
23
|
+
height: 40px;
|
|
24
|
+
line-height: 40px;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
padding: 0 8px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-menus-tree__menu-item-node:hover .titaui-menus-tree__menu-item-node-title {
|
|
31
|
+
color: #2879ff;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.titaui-menus-tree__menu-item-node-indent {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
width: 16px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.titaui-menus-tree__menu-item-node-title {
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
color: #3f4755;
|
|
42
|
+
line-height: 22px;
|
|
43
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.titaui-menus-tree__menu-item-node-icon {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
width: 18px;
|
|
50
|
+
height: 18px;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
background-size: contain;
|
|
53
|
+
margin-right: 6px;
|
|
54
|
+
vertical-align: middle;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.titaui-menus-tree__menu-item-node-icon.okr {
|
|
58
|
+
background-image: url("../images/okr-menu/okr.svg");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.titaui-menus-tree__menu-item-node-icon.kaohe {
|
|
62
|
+
background-image: url("../images/appraisal-menu/kaohe.svg");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.titaui-menus-tree__menu-item-node-icon.uniEA10 {
|
|
66
|
+
background-image: url("../images/appraisal-menu/uniEA10.svg");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.titaui-menus-tree__menu-item-node-icon.ZBmuban {
|
|
70
|
+
background-image: url("../images/appraisal-menu/ZBmuban.svg");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-menus-tree__menu-item-node-icon.untitled {
|
|
74
|
+
background-image: url("../images/appraisal-menu/untitled.svg");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.titaui-menus-tree__menu-item-node-icon.PF-shezhi {
|
|
78
|
+
background-image: url("../images/appraisal-menu/PF-shezhi.svg");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.titaui-menus-tree__menu-item-node-icon.bumen {
|
|
82
|
+
background-image: url("../images/appraisal-menu/bumen.svg");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.titaui-menus-tree__menu-item-node-icon.caidan-xiashu {
|
|
86
|
+
background-image: url("../images/caidan-xiashu.svg");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.titaui-menus-tree__menu-item-node-icon.guanzhu {
|
|
90
|
+
background-image: url("../images/okr-menu/guanzhu.svg");
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.titaui-menus-tree__menu-item-node-icon.okr-gongsi-m {
|
|
94
|
+
background-image: url("../images/okr-menu/okr-gongsi.svg");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.titaui-menus-tree__menu-item-node-icon.ditu {
|
|
98
|
+
background-image: url("../images/okr-menu/ditu.svg");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.titaui-menus-tree__menu-item-node-icon.yibiao {
|
|
102
|
+
background-image: url("../images/yibiao.svg");
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.titaui-menus-tree__menu-item-node-icon.rw-zx {
|
|
106
|
+
background-image: url("../images/okr-menu/rw-zx.svg");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.titaui-menus-tree__menu-node {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
text-align: left;
|
|
113
|
+
height: 40px;
|
|
114
|
+
line-height: 40px;
|
|
115
|
+
border-radius: 12px;
|
|
116
|
+
padding: 0 8px;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.titaui-menus-tree__menu-node-title {
|
|
121
|
+
font-size: 14px;
|
|
122
|
+
color: #3f4755;
|
|
123
|
+
line-height: 22px;
|
|
124
|
+
font-family: Resource-Han-Rounded-CN-Medium, Resource-Han-Rounded-CN;
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.titaui-menus-tree__menu-node-icon {
|
|
129
|
+
display: inline-block;
|
|
130
|
+
width: 18px;
|
|
131
|
+
height: 18px;
|
|
132
|
+
background-repeat: no-repeat;
|
|
133
|
+
background-size: contain;
|
|
134
|
+
margin-right: 6px;
|
|
135
|
+
vertical-align: middle;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.titaui-menus-tree__menu-node-icon.okr {
|
|
139
|
+
background-image: url("../images/okr-menu/okr.svg");
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.titaui-menus-tree__menu-node-icon.kaohe {
|
|
143
|
+
background-image: url("../images/appraisal-menu/kaohe.svg");
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.titaui-menus-tree__menu-node-icon.uniEA10 {
|
|
147
|
+
background-image: url("../images/appraisal-menu/uniEA10.svg");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.titaui-menus-tree__menu-node-icon.ZBmuban {
|
|
151
|
+
background-image: url("../images/appraisal-menu/ZBmuban.svg");
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.titaui-menus-tree__menu-node-icon.untitled {
|
|
155
|
+
background-image: url("../images/appraisal-menu/untitled.svg");
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.titaui-menus-tree__menu-node-icon.PF-shezhi {
|
|
159
|
+
background-image: url("../images/appraisal-menu/PF-shezhi.svg");
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.titaui-menus-tree__menu-node-icon.bumen {
|
|
163
|
+
background-image: url("../images/appraisal-menu/bumen.svg");
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.titaui-menus-tree__menu-node-icon.caidan-xiashu {
|
|
167
|
+
background-image: url("../images/caidan-xiashu.svg");
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.titaui-menus-tree__menu-node-icon.guanzhu {
|
|
171
|
+
background-image: url("../images/okr-menu/guanzhu.svg");
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.titaui-menus-tree__menu-node-icon.okr-gongsi-m {
|
|
175
|
+
background-image: url("../images/okr-menu/okr-gongsi.svg");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.titaui-menus-tree__menu-node-icon.ditu {
|
|
179
|
+
background-image: url("../images/okr-menu/ditu.svg");
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.titaui-menus-tree__menu-node-icon.yibiao {
|
|
183
|
+
background-image: url("../images/yibiao.svg");
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.titaui-menus-tree__menu-node-icon.rw-zx {
|
|
187
|
+
background-image: url("../images/okr-menu/rw-zx.svg");
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.titaui-menus-tree__company-all-node {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
text-align: left;
|
|
194
|
+
height: 40px;
|
|
195
|
+
line-height: 40px;
|
|
196
|
+
border-radius: 12px;
|
|
197
|
+
padding: 0 8px;
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.titaui-menus-tree__company-all-node-title {
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
color: #3f4755;
|
|
204
|
+
line-height: 22px;
|
|
205
|
+
font-family: Resource-Han-Rounded-CN-Medium, Resource-Han-Rounded-CN;
|
|
206
|
+
font-weight: 500;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.titaui-menus-tree__company-all-node-icon {
|
|
210
|
+
display: inline-block;
|
|
211
|
+
width: 18px;
|
|
212
|
+
height: 18px;
|
|
213
|
+
background-repeat: no-repeat;
|
|
214
|
+
background-size: contain;
|
|
215
|
+
margin-right: 6px;
|
|
216
|
+
vertical-align: middle;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.titaui-menus-tree__company-all-node-icon.okr {
|
|
220
|
+
background-image: url("../images/okr-menu/okr.svg");
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.titaui-menus-tree__company-all-node-icon.kaohe {
|
|
224
|
+
background-image: url("../images/appraisal-menu/kaohe.svg");
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.titaui-menus-tree__company-all-node-icon.uniEA10 {
|
|
228
|
+
background-image: url("../images/appraisal-menu/uniEA10.svg");
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.titaui-menus-tree__company-all-node-icon.ZBmuban {
|
|
232
|
+
background-image: url("../images/appraisal-menu/ZBmuban.svg");
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.titaui-menus-tree__company-all-node-icon.untitled {
|
|
236
|
+
background-image: url("../images/appraisal-menu/untitled.svg");
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.titaui-menus-tree__company-all-node-icon.PF-shezhi {
|
|
240
|
+
background-image: url("../images/appraisal-menu/PF-shezhi.svg");
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.titaui-menus-tree__company-all-node-icon.bumen {
|
|
244
|
+
background-image: url("../images/appraisal-menu/bumen.svg");
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.titaui-menus-tree__company-all-node-icon.caidan-xiashu {
|
|
248
|
+
background-image: url("../images/caidan-xiashu.svg");
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.titaui-menus-tree__company-all-node-icon.guanzhu {
|
|
252
|
+
background-image: url("../images/okr-menu/guanzhu.svg");
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.titaui-menus-tree__company-all-node-icon.okr-gongsi-m {
|
|
256
|
+
background-image: url("../images/okr-menu/okr-gongsi.svg");
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.titaui-menus-tree__company-all-node-icon.ditu {
|
|
260
|
+
background-image: url("../images/okr-menu/ditu.svg");
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.titaui-menus-tree__company-all-node-icon.yibiao {
|
|
264
|
+
background-image: url("../images/yibiao.svg");
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.titaui-menus-tree__company-all-node-icon.rw-zx {
|
|
268
|
+
background-image: url("../images/okr-menu/rw-zx.svg");
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.titaui-menus-tree__user-concern-node {
|
|
272
|
+
position: relative;
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
text-align: left;
|
|
276
|
+
height: 40px;
|
|
277
|
+
line-height: 40px;
|
|
278
|
+
border-radius: 12px;
|
|
279
|
+
padding: 0 8px;
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.titaui-menus-tree__user-concern-node-title {
|
|
284
|
+
font-size: 14px;
|
|
285
|
+
color: #3f4755;
|
|
286
|
+
line-height: 22px;
|
|
287
|
+
font-family: Resource-Han-Rounded-CN-Medium, Resource-Han-Rounded-CN;
|
|
288
|
+
font-weight: 500;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.titaui-menus-tree__user-concern-node-icon {
|
|
292
|
+
display: inline-block;
|
|
293
|
+
width: 18px;
|
|
294
|
+
height: 18px;
|
|
295
|
+
background-repeat: no-repeat;
|
|
296
|
+
background-size: contain;
|
|
297
|
+
margin-right: 6px;
|
|
298
|
+
vertical-align: middle;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.titaui-menus-tree__user-concern-node-icon.okr {
|
|
302
|
+
background-image: url("../images/okr-menu/okr.svg");
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.titaui-menus-tree__user-concern-node-icon.kaohe {
|
|
306
|
+
background-image: url("../images/appraisal-menu/kaohe.svg");
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.titaui-menus-tree__user-concern-node-icon.uniEA10 {
|
|
310
|
+
background-image: url("../images/appraisal-menu/uniEA10.svg");
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.titaui-menus-tree__user-concern-node-icon.ZBmuban {
|
|
314
|
+
background-image: url("../images/appraisal-menu/ZBmuban.svg");
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.titaui-menus-tree__user-concern-node-icon.untitled {
|
|
318
|
+
background-image: url("../images/appraisal-menu/untitled.svg");
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.titaui-menus-tree__user-concern-node-icon.PF-shezhi {
|
|
322
|
+
background-image: url("../images/appraisal-menu/PF-shezhi.svg");
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.titaui-menus-tree__user-concern-node-icon.bumen {
|
|
326
|
+
background-image: url("../images/appraisal-menu/bumen.svg");
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.titaui-menus-tree__user-concern-node-icon.caidan-xiashu {
|
|
330
|
+
background-image: url("../images/caidan-xiashu.svg");
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.titaui-menus-tree__user-concern-node-icon.guanzhu {
|
|
334
|
+
background-image: url("../images/okr-menu/guanzhu.svg");
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.titaui-menus-tree__user-concern-node-icon.okr-gongsi-m {
|
|
338
|
+
background-image: url("../images/okr-menu/okr-gongsi.svg");
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.titaui-menus-tree__user-concern-node-icon.ditu {
|
|
342
|
+
background-image: url("../images/okr-menu/ditu.svg");
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.titaui-menus-tree__user-concern-node-icon.yibiao {
|
|
346
|
+
background-image: url("../images/yibiao.svg");
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.titaui-menus-tree__user-concern-node-icon.rw-zx {
|
|
350
|
+
background-image: url("../images/okr-menu/rw-zx.svg");
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.titaui-menus-tree__user-concern-node-add {
|
|
354
|
+
position: absolute;
|
|
355
|
+
right: 8px;
|
|
356
|
+
display: inline-block;
|
|
357
|
+
height: 14px;
|
|
358
|
+
width: 14px;
|
|
359
|
+
background: url(../images/user-concern-add.svg) transparent no-repeat 50% 50%;
|
|
360
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _menuItemNode = _interopRequireDefault(require("./menu-item-node"));
|
|
11
|
+
|
|
12
|
+
var _menuNode = _interopRequireDefault(require("./menu-node"));
|
|
13
|
+
|
|
14
|
+
var _groupNameNode = _interopRequireDefault(require("./group-name-node"));
|
|
15
|
+
|
|
16
|
+
var _userConcernNode = _interopRequireDefault(require("./user-concern-node"));
|
|
17
|
+
|
|
18
|
+
var _componyNode = _interopRequireDefault(require("./compony-node"));
|
|
19
|
+
|
|
20
|
+
var _departNode = _interopRequireDefault(require("./depart-node"));
|
|
21
|
+
|
|
22
|
+
var _userNode = _interopRequireDefault(require("./user-node"));
|
|
23
|
+
|
|
24
|
+
var _companyAllNode = _interopRequireDefault(require("./company-all-node"));
|
|
25
|
+
|
|
26
|
+
require("./index.css");
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
var _default = function _default(node, level, _ref) {
|
|
33
|
+
var onExpand = _ref.onExpand,
|
|
34
|
+
renderSwitcher = _ref.renderSwitcher;
|
|
35
|
+
|
|
36
|
+
switch (node.nodeType) {
|
|
37
|
+
case 'company-all':
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement(_companyAllNode["default"], node);
|
|
39
|
+
|
|
40
|
+
case 'compony-node':
|
|
41
|
+
return /*#__PURE__*/_react["default"].createElement(_componyNode["default"], _extends({}, node, {
|
|
42
|
+
level: level,
|
|
43
|
+
onExpand: onExpand,
|
|
44
|
+
renderSwitcher: renderSwitcher
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
case 'user':
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement(_userNode["default"], _extends({}, node, {
|
|
49
|
+
level: level,
|
|
50
|
+
onExpand: onExpand,
|
|
51
|
+
renderSwitcher: renderSwitcher
|
|
52
|
+
}));
|
|
53
|
+
|
|
54
|
+
case 'user-concern':
|
|
55
|
+
return /*#__PURE__*/_react["default"].createElement(_userConcernNode["default"], _extends({}, node, {
|
|
56
|
+
level: level,
|
|
57
|
+
onExpand: onExpand,
|
|
58
|
+
renderSwitcher: renderSwitcher
|
|
59
|
+
}));
|
|
60
|
+
|
|
61
|
+
case "group-name":
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement(_groupNameNode["default"], _extends({}, node, {
|
|
63
|
+
level: level
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
case "depart-node":
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement(_departNode["default"], _extends({}, node, {
|
|
68
|
+
level: level,
|
|
69
|
+
onExpand: onExpand
|
|
70
|
+
}));
|
|
71
|
+
|
|
72
|
+
case "menu":
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement(_menuNode["default"], _extends({}, node, {
|
|
74
|
+
level: level,
|
|
75
|
+
onExpand: onExpand,
|
|
76
|
+
renderSwitcher: renderSwitcher
|
|
77
|
+
}));
|
|
78
|
+
|
|
79
|
+
case "menu-item":
|
|
80
|
+
return /*#__PURE__*/_react["default"].createElement(_menuItemNode["default"], _extends({}, node, {
|
|
81
|
+
level: level,
|
|
82
|
+
onExpand: onExpand,
|
|
83
|
+
renderSwitcher: renderSwitcher
|
|
84
|
+
}));
|
|
85
|
+
|
|
86
|
+
default:
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = function _default(props) {
|
|
19
|
+
var data = props.data,
|
|
20
|
+
level = props.level;
|
|
21
|
+
|
|
22
|
+
var onNodeClickHandler = function onNodeClickHandler() {
|
|
23
|
+
if (data.href) {
|
|
24
|
+
window.location.href = data.href;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-item-node")),
|
|
30
|
+
onClick: onNodeClickHandler
|
|
31
|
+
}, level > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
32
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-item-node-indent"))
|
|
33
|
+
}), data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-item-node-icon"), data.icon)
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
36
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-item-node-title"), 'noselect')
|
|
37
|
+
}, props.title));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = function _default(props) {
|
|
19
|
+
var onExpand = props.onExpand,
|
|
20
|
+
data = props.data;
|
|
21
|
+
|
|
22
|
+
var onExpandHander = function onExpandHander(e) {
|
|
23
|
+
onExpand(e);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
27
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-node")),
|
|
28
|
+
onClick: onExpandHander
|
|
29
|
+
}, data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
30
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-node-icon"), data.icon)
|
|
31
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
32
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-node-title"), 'noselect')
|
|
33
|
+
}, props.title));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _userSelector = require("../../../../user-selector");
|
|
15
|
+
|
|
16
|
+
var _requestApis = require("../../../request-apis");
|
|
17
|
+
|
|
18
|
+
var _popDownNotification = require("../../../../pop-down-notification");
|
|
19
|
+
|
|
20
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
var _default = function _default(props) {
|
|
31
|
+
var onExpand = props.onExpand,
|
|
32
|
+
title = props.title,
|
|
33
|
+
data = props.data;
|
|
34
|
+
var userRef = (0, _react.useRef)();
|
|
35
|
+
|
|
36
|
+
var onExpandHander = function onExpandHander(e) {
|
|
37
|
+
onExpand(e);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var onAddConcernHandler = function onAddConcernHandler(e) {
|
|
41
|
+
e.stopPropagation(); // @ts-ignore
|
|
42
|
+
|
|
43
|
+
userRef.current && userRef.current.open();
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var onUserSelectHandler = function onUserSelectHandler(users, _, e) {
|
|
47
|
+
(0, _requestApis.addFollower)(users[0].data.userId).then(function (res) {
|
|
48
|
+
if (res.Message) {
|
|
49
|
+
_popDownNotification.Toast.Error(res.Message, {});
|
|
50
|
+
|
|
51
|
+
onExpand(e);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
debugger;
|
|
56
|
+
})["catch"](function (err) {
|
|
57
|
+
return console.log(err);
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
63
|
+
onClick: onExpandHander
|
|
64
|
+
}, data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-icon"), data.icon)
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), 'noselect')
|
|
68
|
+
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), 'noselect'),
|
|
70
|
+
onClick: onAddConcernHandler
|
|
71
|
+
}), /*#__PURE__*/_react["default"].createElement(_userSelector.FieldPersonSelector, {
|
|
72
|
+
ref: userRef,
|
|
73
|
+
multiple: false,
|
|
74
|
+
position: "bottomLeft",
|
|
75
|
+
onSelect: onUserSelectHandler,
|
|
76
|
+
disabledDepartSelect: true,
|
|
77
|
+
showSearchInput: true,
|
|
78
|
+
trigger: /*#__PURE__*/_react["default"].createElement("span", null),
|
|
79
|
+
panes: {
|
|
80
|
+
'depart': false,
|
|
81
|
+
'group': false
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.titaui-menus-tree__user-node {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
height: 40px;
|
|
5
|
+
line-height: 40px;
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-menus-tree__user-node:hover .titaui-menus-tree__user-node-username {
|
|
12
|
+
color: #2879ff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-menus-tree__user-node-avatar {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
width: 24px;
|
|
19
|
+
height: 24px;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
color: white;
|
|
23
|
+
margin-right: 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.titaui-menus-tree__user-node-avatar-slice {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
width: 18px;
|
|
29
|
+
text-indent: 6px;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-menus-tree__user-node-username {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
color: #3f4755;
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-menus-tree__user-node-sub {
|
|
42
|
+
position: absolute;
|
|
43
|
+
width: 24px;
|
|
44
|
+
height: 24px;
|
|
45
|
+
color: #2879ff;
|
|
46
|
+
right: 0;
|
|
47
|
+
top: 8px;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-items: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.titaui-menus-tree__user-node-sub:hover {
|
|
55
|
+
color: #5C8EFF;
|
|
56
|
+
}
|