@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,196 @@
|
|
|
1
|
+
.okrtitauser-card {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 278px;
|
|
4
|
+
height: 359px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
background: #ffffff;
|
|
7
|
+
box-shadow: 0px 4px 24px 0px rgba(127, 145, 180, 0.15);
|
|
8
|
+
border-radius: 24px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.okrtitauser-card__header {
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 278px;
|
|
15
|
+
height: 190px;
|
|
16
|
+
background: linear-gradient(180deg, rgba(20, 28, 40, 0) 0%, #141c28 100%);
|
|
17
|
+
background-size: 278px 190px;
|
|
18
|
+
border-radius: 24px 24px 0 0;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.okrtitauser-card__header-mask {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 278px;
|
|
28
|
+
height: 190px;
|
|
29
|
+
background-size: 278px 190px;
|
|
30
|
+
border-radius: 24px 24px 0 0;
|
|
31
|
+
content: "";
|
|
32
|
+
filter: blur(6px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.okrtitauser-card__header-mask ::before {
|
|
36
|
+
position: absolute;
|
|
37
|
+
border-radius: 24px 24px 0 0;
|
|
38
|
+
top: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
background: #141c28;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.okrtitauser-card__header-imgbox {
|
|
44
|
+
position: absolute;
|
|
45
|
+
border-radius: 35px;
|
|
46
|
+
width: 68px;
|
|
47
|
+
height: 68px;
|
|
48
|
+
top: 28px;
|
|
49
|
+
left: 105px;
|
|
50
|
+
border: 2px solid #fff;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.okrtitauser-card__header-imgbox-img {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
border-radius: 35px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.okrtitauser-card__header-name {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 110px;
|
|
63
|
+
left: 109px;
|
|
64
|
+
height: 28px;
|
|
65
|
+
font-size: 20px;
|
|
66
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
color: #ffffff;
|
|
69
|
+
line-height: 28px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.okrtitauser-card__header-depart {
|
|
73
|
+
display: block;
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 140px;
|
|
76
|
+
left: 72px;
|
|
77
|
+
height: 22px;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
color: #ffffff;
|
|
82
|
+
line-height: 22px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.okrtitauser-card__header-circle {
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 173px;
|
|
88
|
+
left: -12px;
|
|
89
|
+
width: 300px;
|
|
90
|
+
height: 26px;
|
|
91
|
+
background-color: #fff;
|
|
92
|
+
border-radius: 50% / 100% 100% 0 0;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.okrtitauser-card__role {
|
|
97
|
+
position: absolute;
|
|
98
|
+
left: 94px;
|
|
99
|
+
top: 194px;
|
|
100
|
+
width: 89px;
|
|
101
|
+
height: 20px;
|
|
102
|
+
background-image: url(../../images/user-role.svg);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.okrtitauser-card__attention {
|
|
106
|
+
position: absolute;
|
|
107
|
+
left: 24px;
|
|
108
|
+
top: 234px;
|
|
109
|
+
width: 110px;
|
|
110
|
+
height: 45px;
|
|
111
|
+
text-align: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.okrtitauser-card__attention-count {
|
|
115
|
+
margin-left: 44px;
|
|
116
|
+
width: 22px;
|
|
117
|
+
height: 26px;
|
|
118
|
+
font-size: 18px;
|
|
119
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
120
|
+
font-weight: 500;
|
|
121
|
+
color: #3f4755;
|
|
122
|
+
line-height: 26px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.okrtitauser-card__attention-title {
|
|
126
|
+
width: 36px;
|
|
127
|
+
height: 18px;
|
|
128
|
+
margin-left: 37px;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
color: #3f4755;
|
|
133
|
+
line-height: 18px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.okrtitauser-card__visit {
|
|
137
|
+
position: absolute;
|
|
138
|
+
right: 24px;
|
|
139
|
+
top: 234px;
|
|
140
|
+
width: 110px;
|
|
141
|
+
height: 45px;
|
|
142
|
+
text-align: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.okrtitauser-card__visit-count {
|
|
146
|
+
margin-left: 45px;
|
|
147
|
+
width: 19px;
|
|
148
|
+
height: 26px;
|
|
149
|
+
font-size: 18px;
|
|
150
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
151
|
+
font-weight: 500;
|
|
152
|
+
color: #3f4755;
|
|
153
|
+
line-height: 26px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.okrtitauser-card__visit-title {
|
|
157
|
+
width: 36px;
|
|
158
|
+
height: 18px;
|
|
159
|
+
margin-left: 37px;
|
|
160
|
+
font-size: 12px;
|
|
161
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
color: #3f4755;
|
|
164
|
+
line-height: 18px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.okrtitauser-card__attention-btn {
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 299px;
|
|
170
|
+
right: 24px;
|
|
171
|
+
width: 230px;
|
|
172
|
+
height: 36px;
|
|
173
|
+
background: #f0f4fa;
|
|
174
|
+
border-radius: 20px;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.okrtitauser-card__attention-btn-img {
|
|
179
|
+
width: 16px;
|
|
180
|
+
height: 16px;
|
|
181
|
+
background-image: url(../../images/user-add.svg);
|
|
182
|
+
margin: 10px 125px 10px 89px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.okrtitauser-card__attention-btn-title {
|
|
186
|
+
position: absolute;
|
|
187
|
+
top: 8px;
|
|
188
|
+
right: 95px;
|
|
189
|
+
width: 28px;
|
|
190
|
+
height: 20px;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
193
|
+
font-weight: 400;
|
|
194
|
+
color: #f05e5e;
|
|
195
|
+
line-height: 20px;
|
|
196
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 _data = require("../../data");
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
|
|
26
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
|
|
28
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
29
|
+
|
|
30
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
|
+
|
|
32
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
|
+
|
|
34
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
|
|
36
|
+
var preCls = "okrtitauser-card";
|
|
37
|
+
|
|
38
|
+
var Card = function Card() {
|
|
39
|
+
//背景图片
|
|
40
|
+
var backGroundstyle = {
|
|
41
|
+
backgroundImage: "url(".concat(_data.data.photo, ")")
|
|
42
|
+
}; //获得关注量初始数据
|
|
43
|
+
|
|
44
|
+
var _useState = (0, _react.useState)(_data.data.attention_count),
|
|
45
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
+
count = _useState2[0],
|
|
47
|
+
changeCount = _useState2[1]; //处理关注量的值+1的回调
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
var handleAttentionCount = function handleAttentionCount(count) {
|
|
51
|
+
count = count + 1;
|
|
52
|
+
changeCount(count);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
/*#__PURE__*/
|
|
57
|
+
// 用户卡片展示
|
|
58
|
+
_react["default"].createElement("div", {
|
|
59
|
+
className: (0, _classnames["default"])(preCls)
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header")),
|
|
62
|
+
style: backGroundstyle
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-mask")),
|
|
65
|
+
style: backGroundstyle
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-imgbox"))
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
69
|
+
src: _data.data.photo,
|
|
70
|
+
alt: "",
|
|
71
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-imgbox-img"))
|
|
72
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-name"))
|
|
74
|
+
}, _data.data.username), /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-depart"))
|
|
76
|
+
}, _data.data.department), /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-circle"))
|
|
78
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: (0, _classnames["default"])("".concat(preCls, "__role"))
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention"))
|
|
82
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-count"))
|
|
84
|
+
}, count), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-title"))
|
|
86
|
+
}, "\u5173\u6CE8\u91CF")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: (0, _classnames["default"])("".concat(preCls, "__visit"))
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: (0, _classnames["default"])("".concat(preCls, "__visit-count"))
|
|
90
|
+
}, _data.data.visit_count), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
className: (0, _classnames["default"])("".concat(preCls, "__visit-title"))
|
|
92
|
+
}, "\u8BBF\u95EE\u91CF")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn")),
|
|
94
|
+
onClick: function onClick() {
|
|
95
|
+
return handleAttentionCount(count);
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-img"))
|
|
99
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: (0, _classnames["default"])("".concat(preCls, "__attention-btn-title"))
|
|
101
|
+
}, "\u5173\u6CE8")))
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
var _default = Card;
|
|
106
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.data = void 0;
|
|
7
|
+
|
|
8
|
+
var _userPhoto = _interopRequireDefault(require("./images/user-photo.png"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var data = {
|
|
13
|
+
"username": "尔康康",
|
|
14
|
+
"department": "研发部-产品设计部门",
|
|
15
|
+
"attention_count": 66,
|
|
16
|
+
"visit_count": 12,
|
|
17
|
+
"photo": _userPhoto["default"]
|
|
18
|
+
};
|
|
19
|
+
exports.data = data;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<filter id="filter-1">
|
|
6
|
+
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 0.941176 0 0 0 0 0.368627 0 0 0 0 0.368627 0 0 0 1.000000 0"></feColorMatrix>
|
|
7
|
+
</filter>
|
|
8
|
+
</defs>
|
|
9
|
+
<g id="主页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10
|
+
<g id="OKR-其他交互" transform="translate(-271.000000, -1962.000000)">
|
|
11
|
+
<g id="add1" transform="translate(96.000000, 1653.000000)" filter="url(#filter-1)">
|
|
12
|
+
<g transform="translate(175.000000, 309.000000)">
|
|
13
|
+
<rect id="矩形" fill="#141C28" transform="translate(8.000000, 8.000000) rotate(-360.000000) translate(-8.000000, -8.000000) " x="2" y="7.46666667" width="12" height="1.06666667" rx="0.533333333"></rect>
|
|
14
|
+
<path d="M2.53333333,7.46666667 L13.4666667,7.46666667 C13.7612185,7.46666667 14,7.70544813 14,8 C14,8.29455187 13.7612185,8.53333333 13.4666667,8.53333333 L2.53333333,8.53333333 C2.23878147,8.53333333 2,8.29455187 2,8 C2,7.70544813 2.23878147,7.46666667 2.53333333,7.46666667 Z" id="矩形" fill="#141C28" transform="translate(8.000000, 8.000000) scale(-1, 1) rotate(-270.000000) translate(-8.000000, -8.000000) "></path>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="89px" height="20px" viewBox="0 0 89 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>编组 7备份 2</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#9EC2FF" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#76A9FF" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient x1="50%" y1="-2.48949813e-15%" x2="50%" y2="100%" id="linearGradient-2">
|
|
10
|
+
<stop stop-color="#2879FF" offset="0%"></stop>
|
|
11
|
+
<stop stop-color="#0E69FE" offset="100%"></stop>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<radialGradient cx="50%" cy="50%" fx="50%" fy="50%" r="36.4793396%" id="radialGradient-3">
|
|
14
|
+
<stop stop-color="#2879FF" offset="0%"></stop>
|
|
15
|
+
<stop stop-color="#FFFFFF" offset="100%"></stop>
|
|
16
|
+
</radialGradient>
|
|
17
|
+
</defs>
|
|
18
|
+
<g id="主页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
19
|
+
<g id="OKR-其他交互" transform="translate(-190.000000, -1847.000000)">
|
|
20
|
+
<g id="风险预警" transform="translate(96.000000, 1653.000000)">
|
|
21
|
+
<g id="编组-7备份-2" transform="translate(94.000000, 194.000000)">
|
|
22
|
+
<rect id="矩形" fill="#2879FF" x="4" y="1" width="85" height="18" rx="9"></rect>
|
|
23
|
+
<g id="编组-25">
|
|
24
|
+
<polygon id="多边形" fill="url(#linearGradient-1)" points="10 0 18.660254 5 18.660254 15 10 20 1.33974596 15 1.33974596 5"></polygon>
|
|
25
|
+
<polygon id="多边形" fill="url(#linearGradient-2)" points="10 1.81818182 17.2168784 5.90909091 17.2168784 14.0909091 10 18.1818182 2.78312164 14.0909091 2.78312164 5.90909091"></polygon>
|
|
26
|
+
<g id="设置" transform="translate(5.500000, 5.500000)" fill-rule="nonzero">
|
|
27
|
+
<path d="M8.26875,4.5 C8.26875,3.99375 8.55,3.54375 9,3.375 C8.775,2.5875 8.325,1.85625 7.7625,1.29375 C7.36875,1.575 6.80625,1.63125 6.35625,1.40625 C5.90625,1.125 5.68125,0.675 5.7375,0.16875 C5.34375,0.05625 4.89375,0 4.5,0 C4.05,0 3.65625,0.05625 3.2625,0.16875 C3.31875,0.61875 3.09375,1.125 2.64375,1.40625 C2.19375,1.6875 1.63125,1.63125 1.2375,1.29375 C0.675,1.85625 0.225,2.5875 0,3.375 C0.45,3.54375 0.73125,3.99375 0.73125,4.5 C0.73125,5.00625 0.45,5.45625 0,5.625 C0.225,6.4125 0.675,7.14375 1.2375,7.70625 C1.63125,7.425 2.19375,7.36875 2.64375,7.59375 C3.09375,7.875 3.31875,8.325 3.2625,8.83125 C3.65625,8.94375 4.10625,9 4.5,9 C4.95,9 5.34375,8.94375 5.7375,8.83125 C5.68125,8.38125 5.90625,7.875 6.35625,7.59375 C6.80625,7.3125 7.36875,7.36875 7.7625,7.70625 C8.325,7.14375 8.775,6.4125 9,5.625 C8.55,5.45625 8.26875,5.00625 8.26875,4.5 L8.26875,4.5 Z M4.5,6.35625 C3.43125,6.35625 2.5875,5.5125 2.5875,4.5 C2.5875,3.4875 3.43125,2.64375 4.5,2.64375 C5.56875,2.64375 6.4125,3.4875 6.4125,4.5 C6.4125,5.5125 5.56875,6.35625 4.5,6.35625 Z" id="形状" fill="url(#radialGradient-3)"></path>
|
|
28
|
+
<path d="M4.5,5.625 C5.12132034,5.625 5.625,5.12132034 5.625,4.5 C5.625,3.87867966 5.12132034,3.375 4.5,3.375 C3.87867966,3.375 3.375,3.87867966 3.375,4.5 C3.375,5.12132034 3.87867966,5.625 4.5,5.625 Z" id="路径" fill="#FFFFFF"></path>
|
|
29
|
+
</g>
|
|
30
|
+
</g>
|
|
31
|
+
<text id="目标管理员" opacity="0.9" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal" line-spacing="18" fill="#FFFFFF">
|
|
32
|
+
<tspan x="23" y="14">目标管理员</tspan>
|
|
33
|
+
</text>
|
|
34
|
+
</g>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
</g>
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.okrtitausers {
|
|
2
|
+
margin: 200px 200px;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.okrtitausers__photo {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
position: absolute;
|
|
9
|
+
z-index: 2000;
|
|
10
|
+
width: 36px;
|
|
11
|
+
height: 36px;
|
|
12
|
+
vertical-align: top;
|
|
13
|
+
border: 2px solid #fff;
|
|
14
|
+
border-radius: 35px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.okrtitausers__card {
|
|
18
|
+
animation: show 0.5s forwards;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes show {
|
|
22
|
+
from {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
to {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 _popup = _interopRequireDefault(require("../popup"));
|
|
13
|
+
|
|
14
|
+
var _data = require("./data");
|
|
15
|
+
|
|
16
|
+
var _card = _interopRequireDefault(require("./components/card"));
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var prefixCls = "okrtitausers";
|
|
23
|
+
var popupAlign = {
|
|
24
|
+
offset: [40, 0],
|
|
25
|
+
overflow: {
|
|
26
|
+
adjustX: true,
|
|
27
|
+
adjustY: true
|
|
28
|
+
},
|
|
29
|
+
targetOffset: [0, 0]
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var PhotoCard = function PhotoCard() {
|
|
33
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
34
|
+
popupPlacement: "bottomLeft",
|
|
35
|
+
popup: /*#__PURE__*/_react["default"].createElement(_card["default"], null),
|
|
36
|
+
action: ['hover'],
|
|
37
|
+
mask: false,
|
|
38
|
+
popupClassName: "".concat(prefixCls, "__card"),
|
|
39
|
+
popupAlign: popupAlign,
|
|
40
|
+
popupVisible: true
|
|
41
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
+
className: (0, _classnames["default"])(prefixCls)
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
44
|
+
src: _data.data.photo,
|
|
45
|
+
alt: "",
|
|
46
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__photo"))
|
|
47
|
+
})));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var _default = PhotoCard;
|
|
51
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.base-info-drop-down__layer {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.base-info-drop-down__layer .base-info-drop-down__layer-container {
|
|
7
|
+
position: relative;
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
color: #3F4755;
|
|
11
|
+
line-height: 22px;
|
|
12
|
+
margin-bottom: 4px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.base-info-drop-down__layer .base-info-drop-down__layer-container .required {
|
|
16
|
+
color: #F05E5E;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
margin-left: 4px;
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.base-info-drop-down__layer .base-info-drop-down__layer-errmsg {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 66px;
|
|
25
|
+
left: 12px;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
color: #F05E5E;
|
|
29
|
+
line-height: 18px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.base-info-drop-down__layer .drop-down__layer-text {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
color: #BFC7D5;
|
|
35
|
+
line-height: 20px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
padding-left: 10px;
|
|
38
|
+
border-radius: 4px;
|
|
39
|
+
border: 1px solid #E9ECF0;
|
|
40
|
+
height: 36px;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
align-items: center;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.base-info-drop-down__layer .drop-down__layer-text:hover {
|
|
48
|
+
border: 1px solid #2879FF;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.base-info-drop-down__layer .drop-down__layer-text-suffixIcon {
|
|
53
|
+
width: 10px;
|
|
54
|
+
height: 10px;
|
|
55
|
+
margin-right: 12px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.base-info-drop-down__layer .drop-down__layer-text--focus {
|
|
59
|
+
border: 1px solid #2879FF;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.base-info-drop-down__layer .drop-down__layer-select-wrapper {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
background: #ffffff;
|
|
66
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
67
|
+
border: 1px solid #f0f2f5;
|
|
68
|
+
position: relative;
|
|
69
|
+
border-radius: 4px;
|
|
70
|
+
padding: 16px 0;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
width: 100%;
|
|
73
|
+
max-height: 196px;
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
margin-top: -4px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.base-info-drop-down__layer .drop-down__layer-select-wrapper .drop-down__layer-select-text {
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
color: #3f4755;
|
|
81
|
+
line-height: 22px;
|
|
82
|
+
height: 36px;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
padding-left: 10px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.base-info-drop-down__layer .drop-down__layer-select-wrapper .drop-down__layer-select-text:hover {
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
color: #2879FF;
|
|
92
|
+
background: #F7F8FA;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.base-info-drop-down__layer .drop-down__layer-select-wrapper .drop-down__layer-select-text--active {
|
|
96
|
+
color: #2879ff;
|
|
97
|
+
background: #F7F8FA;
|
|
98
|
+
}
|