@titaui/pc 1.6.12 → 1.6.16
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 +2 -0
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/rect-btn/index.css +21 -0
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -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/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +1 -2
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +7 -4
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +2 -2
- 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/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/form/index.js +1 -1
- 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/index.css +17 -17
- package/lib/components/help-card/index.js +35 -31
- package/lib/components/help-card/request-api.js +2 -2
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- 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 +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -3
- package/lib/components/menus/components/flip-menu-card/index.js +42 -30
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +5 -4
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
- package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -19
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +41 -4
- package/lib/components/nav-top/components/user-message/index.js +89 -100
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
- package/lib/components/nav-top/components/user-message/utils.js +31 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
- package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +14 -13
- package/lib/components/nav-top/request.apis.js +50 -0
- package/lib/components/nav-top/utils.js +10 -70
- 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/actions.js +2 -2
- 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 +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +189 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +54 -0
- 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 +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- 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/pagination/index.css +6 -12
- 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 +83 -100
- package/lib/components/photo-card/components/card/index.js +119 -63
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +15 -14
- package/lib/components/photo-card/index.js +59 -15
- 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/tree/index.js +1 -3
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- 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/index.js +1 -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/request-api.js +1 -1
- 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/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/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +18 -4
- package/lib/pages/aha2021/index.css +25 -1
- package/lib/pages/aha2021/index.js +10 -4
- 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/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- package/lib/pages/new-okr-list/header/depart-title.js +59 -0
- package/lib/pages/new-okr-list/header/filter.js +95 -0
- package/lib/pages/new-okr-list/header/index.css +118 -0
- package/lib/pages/new-okr-list/header/index.js +133 -0
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +26 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +208 -0
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +47 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +158 -0
- package/lib/pages/new-okr-list/theme.css +7 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- 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 +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- 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 +4 -3
- package/package.json +3 -2
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="88px" height="20px" viewBox="0 0 88 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>部门负责人</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
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="41.2046279%" id="linearGradient-3">
|
|
14
|
+
<stop stop-color="#1B71FF" offset="0%"></stop>
|
|
15
|
+
<stop stop-color="#FFFFFF" offset="100%"></stop>
|
|
16
|
+
</linearGradient>
|
|
17
|
+
</defs>
|
|
18
|
+
<g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
19
|
+
<g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3352.000000)" fill-rule="nonzero">
|
|
20
|
+
<g id="角色" transform="translate(1356.000000, 3208.000000)">
|
|
21
|
+
<g id="部门负责人" transform="translate(0.000000, 144.000000)">
|
|
22
|
+
<rect id="矩形" fill="#2879FF" x="3" y="1" width="85" height="18" rx="9"></rect>
|
|
23
|
+
<g id="编组-25">
|
|
24
|
+
<polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
|
|
25
|
+
<polygon id="多边形" fill="url(#linearGradient-2)" points="8.93333333 1.8 16.1502117 5.89090909 16.1502117 14.0727273 8.93333333 18.1636364 1.71645497 14.0727273 1.71645497 5.89090909"></polygon>
|
|
26
|
+
<g id="编组-29" transform="translate(5.000000, 5.000000)">
|
|
27
|
+
<path d="M3.88814818,9.78562699 C3.68141594,9.77439872 3.29833383,9.75788656 2.91657268,9.73212759 C2.56255197,9.70835008 2.20853126,9.67928868 1.85583152,9.6442829 C1.35452234,9.5960674 0.85651559,9.52209292 0.364453219,9.41377315 C0.352564463,9.4111312 0.341336194,9.40584731 0.329447439,9.40386585 C0.178196053,9.3774464 0.106863521,9.27837343 0.0711972551,9.13636886 C-0.00145624941,8.84641533 -0.0133450047,8.35424963 0.0124139651,8.05835172 C0.0262841796,7.89851401 0.0460987717,7.73933679 0.067894823,7.57949908 C0.107524007,7.29416895 0.266040744,7.09206011 0.507118282,6.9421297 C0.772633816,6.77766858 1.06655027,6.68982389 1.36178769,6.60528163 C1.58503209,6.54121445 1.81422088,6.49431991 2.02095312,6.3833582 C2.23429023,6.26777308 2.43904101,6.1402992 2.58698997,5.94215328 C2.67351369,5.82590767 2.96544868,5.2466611 2.91657268,5.09937263 C2.88949274,5.01615134 5.00418303,4.911134 4.97380066,5.09937263 C4.90180764,5.54321949 5.37556357,6.07755299 5.77449736,6.28494572 C6.02746365,6.41638252 6.30024453,6.49167797 6.57170444,6.57357828 C6.8312756,6.65085519 7.09216773,6.72416918 7.33456624,6.84768014 C7.47194741,6.9176917 7.60206324,7.0002525 7.70906203,7.11385616 C7.84710369,7.25916317 7.91381282,7.43815498 7.93957179,7.6316775 C7.96599124,7.82387904 7.99108973,8.01674107 7.99769459,8.21026359 C8.0069414,8.46058794 7.99108973,8.90784056 7.8999426,9.14561567 C7.86757877,9.23081841 7.80879548,9.28828073 7.72557419,9.323947 C7.53271216,9.4065078 7.32928235,9.44943941 7.12519205,9.4890686 C6.64964184,9.58021572 6.16946822,9.64031998 5.68731315,9.69117744 C5.14769576,9.74731878 4.60609691,9.77638018 3.88814818,9.78562699 Z M3.99184455,6.66142297 C3.92183299,6.66142297 3.85182143,6.660102 3.78180987,6.66274395 C3.76463723,6.66274395 3.74019923,6.66802784 3.73029193,6.67925611 C3.67216913,6.75521204 3.61404633,6.83116798 3.56318887,6.91306829 C3.5473372,6.93882726 3.54073234,6.9857218 3.55328158,7.01148077 C3.6252746,7.15876924 3.70519345,7.30077381 3.7804889,7.44674131 C3.79237766,7.46853736 3.80228495,7.49825925 3.79700106,7.52137627 C3.73557583,7.82255807 3.66160135,8.12109793 3.60942292,8.4236007 C3.54535574,8.79611503 3.54139282,8.94350683 3.72500804,9.19845458 C3.78973571,9.25855884 3.848519,9.31866311 3.91324667,9.37084153 C3.96146218,9.40981023 4.01694303,9.40518682 4.07044243,9.37480445 C4.17612026,9.31536067 4.26396495,9.23544182 4.33595797,9.14033178 C4.39474126,9.06305487 4.45154309,8.98247553 4.42842606,8.87283478 C4.3537911,8.52343747 4.28311905,7.97446995 4.20650263,7.62507264 C4.18999047,7.55043767 4.16357102,7.48042611 4.24547133,7.42692672 C4.25207619,7.42230331 4.25603911,7.4130565 4.26000203,7.40579115 C4.32208775,7.29416895 4.38615493,7.18386772 4.44295676,7.07026406 C4.45880844,7.03723974 4.46277136,6.98968472 4.45352455,6.95401845 C4.42116071,6.83645187 4.33595797,6.74992815 4.2467923,6.67661416 C4.21244701,6.64821325 4.14045399,6.66406492 4.08497313,6.66208346 C4.05459076,6.660102 4.02288741,6.66142297 3.99184455,6.66142297 Z" id="形状" fill="url(#linearGradient-3)"></path>
|
|
28
|
+
<path d="M4,5.16666667 C5.23711784,5.16666667 6.24,3.62199775 6.24,2.33333333 C6.24,1.04466891 5.23711784,1.77635684e-15 4,1.77635684e-15 C2.76288216,1.77635684e-15 1.76,1.04466891 1.76,2.33333333 C1.76,3.62199775 2.76288216,5.16666667 4,5.16666667 Z" id="路径" fill="#FFFFFF"></path>
|
|
29
|
+
</g>
|
|
30
|
+
</g>
|
|
31
|
+
<g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
|
|
32
|
+
<text id="部门负责人">
|
|
33
|
+
<tspan x="0" y="13">部门负责人</tspan>
|
|
34
|
+
</text>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
</g>
|
|
38
|
+
</g>
|
|
39
|
+
</g>
|
|
40
|
+
</svg>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="52px" height="20px" viewBox="0 0 52 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>超管</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#FFEEC7" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#FFD896" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
|
|
10
|
+
<stop stop-color="#FFCA3D" offset="0%"></stop>
|
|
11
|
+
<stop stop-color="#E2A916" offset="100%"></stop>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-3">
|
|
14
|
+
<stop stop-color="#FFFFFF" offset="0%"></stop>
|
|
15
|
+
<stop stop-color="#FFFFFF" offset="14.1298294%"></stop>
|
|
16
|
+
<stop stop-color="#F6BF31" offset="18.0222878%"></stop>
|
|
17
|
+
<stop stop-color="#FFFFFF" offset="30.3107042%"></stop>
|
|
18
|
+
<stop stop-color="#FFFFFF" offset="100%"></stop>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
</defs>
|
|
21
|
+
<g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
22
|
+
<g id="公司全部/隔级-交互规范" transform="translate(-1356.000000, -3244.000000)" fill-rule="nonzero">
|
|
23
|
+
<g id="角色" transform="translate(1356.000000, 3208.000000)">
|
|
24
|
+
<g id="超管" transform="translate(0.000000, 36.000000)">
|
|
25
|
+
<rect id="矩形" fill="#F2B20F" x="3" y="1" width="49" height="18" rx="9"></rect>
|
|
26
|
+
<g id="编组-25">
|
|
27
|
+
<polygon id="多边形" fill="url(#linearGradient-1)" points="9 0 17.660254 5 17.660254 15 9 20 0.33974596 15 0.33974596 5"></polygon>
|
|
28
|
+
<polygon id="多边形" fill="url(#linearGradient-2)" points="9 1.81818182 16.2168784 5.90909091 16.2168784 14.0909091 9 18.1818182 1.78312164 14.0909091 1.78312164 5.90909091"></polygon>
|
|
29
|
+
<path d="M10.1408182,6.81818182 L10.8181818,13.030303 L9,16.3636364 L7.18181818,13.030303 L7.85881818,6.81818182 L10.1408182,6.81818182 Z M10.2273686,4.54545455 C10.4482825,4.54545455 10.6273686,4.72454065 10.6273686,4.94545455 C10.6273686,4.99634232 10.6176586,5.04676271 10.5987593,5.09401082 L10.0909091,6.36363636 L7.90909091,6.36363636 L7.40124069,5.09401082 C7.31919533,4.88889741 7.41896169,4.65610923 7.6240751,4.57406387 C7.67132321,4.55516463 7.72174359,4.54545455 7.77263137,4.54545455 L10.2273686,4.54545455 Z" id="形状结合" fill="url(#linearGradient-3)"></path>
|
|
30
|
+
</g>
|
|
31
|
+
<g id="编组" opacity="0.8" transform="translate(22.000000, 1.000000)" fill="#FFFFFF" font-family="PingFangSC-Regular, PingFang SC" font-size="12" font-weight="normal">
|
|
32
|
+
<text id="超管">
|
|
33
|
+
<tspan x="0" y="13">超管</tspan>
|
|
34
|
+
</text>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
</g>
|
|
38
|
+
</g>
|
|
39
|
+
</g>
|
|
40
|
+
</svg>
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
.
|
|
2
|
-
margin: 200px 200px;
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.okrtitausers__photo {
|
|
7
|
-
display: inline-block;
|
|
8
|
-
position: absolute;
|
|
9
|
-
z-index: 2000;
|
|
1
|
+
.titaui-photo {
|
|
10
2
|
width: 36px;
|
|
11
3
|
height: 36px;
|
|
12
|
-
vertical-align: top;
|
|
13
|
-
border: 2px solid #fff;
|
|
14
4
|
border-radius: 35px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-photo__card {
|
|
9
|
+
animation: titaui-photo-card-show 0.5s forwards;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titaui-photo .titaui-pc-avator-container img {
|
|
13
|
+
width: 36px !important;
|
|
14
|
+
height: 36px !important;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
18
|
-
|
|
17
|
+
.titaui-photo .titaui-pc-avator-container .titaui-pc-avatar--text {
|
|
18
|
+
width: 36px !important;
|
|
19
|
+
height: 36px !important;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
@keyframes show {
|
|
22
|
+
@keyframes titaui-photo-card-show {
|
|
22
23
|
from {
|
|
23
24
|
opacity: 0;
|
|
24
25
|
}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
|
|
12
14
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
13
15
|
|
|
14
|
-
var
|
|
16
|
+
var _request = require("../../utils/request");
|
|
17
|
+
|
|
18
|
+
var _default2 = _interopRequireDefault(require("../../components/avatar/default"));
|
|
19
|
+
|
|
20
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
15
21
|
|
|
16
22
|
var _card = _interopRequireDefault(require("./components/card"));
|
|
17
23
|
|
|
@@ -19,31 +25,69 @@ require("./index.css");
|
|
|
19
25
|
|
|
20
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
27
|
|
|
22
|
-
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
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."); }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
44
|
+
var prefixCls = "titaui-photo";
|
|
23
45
|
var popupAlign = {
|
|
24
|
-
offset: [40,
|
|
46
|
+
offset: [-40, -36],
|
|
25
47
|
overflow: {
|
|
26
48
|
adjustX: true,
|
|
27
49
|
adjustY: true
|
|
28
50
|
},
|
|
29
51
|
targetOffset: [0, 0]
|
|
30
52
|
};
|
|
53
|
+
var userownInfo = (0, _bsGlobal.getUserInfo)();
|
|
54
|
+
|
|
55
|
+
var PhotoCard = function PhotoCard(props) {
|
|
56
|
+
var userId = props.userId;
|
|
57
|
+
|
|
58
|
+
var _useState = (0, _react.useState)(),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
userInfo = _useState2[0],
|
|
61
|
+
setUserInfo = _useState2[1];
|
|
62
|
+
|
|
63
|
+
(0, _react.useEffect)(function () {
|
|
64
|
+
(0, _request.rget)("v2")("user/GetById?toUserid=".concat(userId)).then(function (res) {
|
|
65
|
+
console.log(res);
|
|
66
|
+
console.log(1111);
|
|
31
67
|
|
|
32
|
-
|
|
68
|
+
if (res.Code === 1) {
|
|
69
|
+
setUserInfo(res.Data);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}, [userId]);
|
|
73
|
+
console.log(userInfo);
|
|
74
|
+
if (!userInfo) return null;
|
|
33
75
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
76
|
+
popup: /*#__PURE__*/_react["default"].createElement(_card["default"], {
|
|
77
|
+
userInfo: userInfo,
|
|
78
|
+
userownInfo: userownInfo
|
|
79
|
+
}),
|
|
80
|
+
action: ["click"],
|
|
37
81
|
mask: false,
|
|
38
82
|
popupClassName: "".concat(prefixCls, "__card"),
|
|
39
|
-
popupAlign: popupAlign
|
|
40
|
-
popupVisible: true
|
|
83
|
+
popupAlign: popupAlign
|
|
41
84
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
-
className: (0, _classnames["default"])(prefixCls)
|
|
43
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
85
|
+
className: (0, _classnames["default"])("".concat(prefixCls))
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
87
|
+
userId: userInfo.userId,
|
|
88
|
+
name: userInfo.name,
|
|
89
|
+
color: userInfo.avatar.color,
|
|
90
|
+
src: userInfo.avatar.big
|
|
47
91
|
})));
|
|
48
92
|
};
|
|
49
93
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.RenderError = RenderError;
|
|
6
7
|
exports.RenderSuccess = RenderSuccess;
|
|
7
8
|
exports.RenderWarning = RenderWarning;
|
|
8
|
-
exports.RenderError = RenderError;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PraiseRecordWrapper = exports.PraiseRecordMore = exports.PraiseRecordList = exports.PraiseRecordItems = exports.PraiseRecordHead = exports.PraiseRecordDetail = exports.PraiseRecordContent = exports.PraiseRecordContainer = exports.PraiseRecordClose = exports.PraiseContent = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.RadioGroup = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.TabPane = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.preCls = exports.lableTypeMap = exports.isOpenWorkManage = exports.isOpenOkrManage = exports.isOpenLabel = exports.formatDateStr = void 0;
|
|
7
7
|
|
|
8
8
|
var _bsGlobal = require("../../utils/bs-global");
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.updateLable = exports.relationWorks = exports.okrSearch = exports.getWorks = exports.getUserById = exports.getCategory = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "TitaLiquidBall", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _liquidBall["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "TitaPieChart", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _pie["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "TitaWordsCloud", {
|
|
@@ -3,40 +3,40 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "clone", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return _utils.
|
|
9
|
+
return _utils.clone;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "deepClone", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _utils.
|
|
15
|
+
return _utils.deepClone;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "getChart", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _getChart.getChart;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "hasPath", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return _utils.
|
|
27
|
+
return _utils.hasPath;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "isType", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return _utils.
|
|
33
|
+
return _utils.isType;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "setPath", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function get() {
|
|
39
|
-
return
|
|
39
|
+
return _utils.setPath;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setPath = exports.
|
|
6
|
+
exports.setPath = exports.isType = exports.hasPath = exports.getType = exports.deepClone = exports.clone = void 0;
|
|
7
7
|
|
|
8
8
|
/* eslint-disable no-restricted-syntax */
|
|
9
9
|
// 类型检测
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.TooltipText = exports.ErrorToolTip = void 0;
|
|
7
7
|
|
|
8
8
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports.switcherIconHandler = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,8 +11,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _rcTree = _interopRequireDefault(require("@titaui/rc-tree2"));
|
|
13
13
|
|
|
14
|
-
require("@titaui/rc-tree2/assets/index.css");
|
|
15
|
-
|
|
16
14
|
require("./index.css");
|
|
17
15
|
|
|
18
16
|
var _precls = _interopRequireDefault(require("./precls"));
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.tt-update-modal {
|
|
2
|
+
width: 610px;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
padding-top: 237px;
|
|
5
|
+
padding-bottom: 40px;
|
|
6
|
+
background-image: url(./img/background.png);
|
|
7
|
+
background-size: 610px 237px;
|
|
8
|
+
background-position: 0 0;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
border-radius: 40px;
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.tt-update-modal .tu-icon-canceled {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 20px;
|
|
17
|
+
right: 30px;
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
color: #141c28;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tt-update-modal__rocket {
|
|
24
|
+
position: absolute;
|
|
25
|
+
width: 200px;
|
|
26
|
+
height: 221px;
|
|
27
|
+
right: 113px;
|
|
28
|
+
top: -51px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tt-update-modal__update-list {
|
|
32
|
+
margin-bottom: 40px;
|
|
33
|
+
padding: 0 40px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tt-update-modal__update-item {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
color: #3F4755;
|
|
40
|
+
line-height: 24px;
|
|
41
|
+
position: relative;
|
|
42
|
+
padding-left: 18px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tt-update-modal__update-item::before {
|
|
46
|
+
content: '';
|
|
47
|
+
display: inline-block;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 10px;
|
|
50
|
+
left: 0;
|
|
51
|
+
width: 4px;
|
|
52
|
+
height: 4px;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background-color: #6F7886;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tt-update-modal__update-item:not(:last-child) {
|
|
58
|
+
margin-bottom: 12px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tt-update-modal__detail-btn {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
margin: 0 auto;
|
|
66
|
+
width: 160px;
|
|
67
|
+
height: 40px;
|
|
68
|
+
color: #FFF;
|
|
69
|
+
background: linear-gradient(180deg, #FFB565 0%, #FF9100 100%);
|
|
70
|
+
box-shadow: 0px 8px 8px 1px #FFEEE1, 0px 1px 12px 0px rgba(255, 255, 255, 0.5), 0px -2px 5px 0px rgba(242, 156, 51, 0.4);
|
|
71
|
+
border-radius: 29px;
|
|
72
|
+
font-size: 16px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.tt-update-modal__detail-btn:hover {
|
|
76
|
+
color: #FFF;
|
|
77
|
+
background: linear-gradient(180deg, #FF9E23 0%, #FF9E23 100%);
|
|
78
|
+
box-shadow: 0px 8px 8px 1px #FFEEE1, 0px -2px 5px 0px rgba(242, 156, 51, 0.4);
|
|
79
|
+
border-radius: 29px;
|
|
80
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 _titaUi = require("tita-ui");
|
|
13
|
+
|
|
14
|
+
var _helper = require("../period-selector/helper");
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
var _requestApi = require("./request-api");
|
|
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 = "tt-update-modal";
|
|
37
|
+
|
|
38
|
+
function UpdateModal(_ref) {
|
|
39
|
+
var _ref$updates = _ref.updates,
|
|
40
|
+
updates = _ref$updates === void 0 ? [] : _ref$updates,
|
|
41
|
+
detailLink = _ref.detailLink;
|
|
42
|
+
|
|
43
|
+
var _useState = (0, _react.useState)(function () {
|
|
44
|
+
var userGuides = (0, _helper.getBSGlobal)('userGuides');
|
|
45
|
+
return userGuides && userGuides.upgradeGuide && userGuides.upgradeGuide.value || false;
|
|
46
|
+
}),
|
|
47
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
48
|
+
visible = _useState2[0],
|
|
49
|
+
setVisible = _useState2[1];
|
|
50
|
+
|
|
51
|
+
var handleClose = (0, _react.useCallback)(function () {
|
|
52
|
+
(0, _requestApi.cancelGuide)((0, _helper.getBSGlobal)('userGuides').upgradeGuide.type);
|
|
53
|
+
(0, _helper.getBSGlobal)('userGuides').upgradeGuide.value = false;
|
|
54
|
+
setVisible(false);
|
|
55
|
+
}, []);
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
|
|
57
|
+
visible: visible,
|
|
58
|
+
customContent: true,
|
|
59
|
+
footer: null,
|
|
60
|
+
width: 610
|
|
61
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: preCls
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
64
|
+
className: preCls + "__rocket",
|
|
65
|
+
src: require("./img/rocket.png")
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("a", {
|
|
67
|
+
className: "tu-icon-canceled",
|
|
68
|
+
onClick: handleClose
|
|
69
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: preCls + "__update-list"
|
|
71
|
+
}, updates.map(function (upd) {
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: preCls + "__update-item"
|
|
74
|
+
}, upd);
|
|
75
|
+
})), /*#__PURE__*/_react["default"].createElement("a", {
|
|
76
|
+
href: detailLink,
|
|
77
|
+
target: "_blank",
|
|
78
|
+
className: preCls + "__detail-btn"
|
|
79
|
+
}, "\u4E86\u89E3\u66F4\u591A")));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var _default = UpdateModal;
|
|
83
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.cancelGuide = void 0;
|
|
7
|
+
|
|
8
|
+
var _request = require("../../utils/request");
|
|
9
|
+
|
|
10
|
+
var cancelGuide = function cancelGuide(_ref) {
|
|
11
|
+
var type = _ref.type;
|
|
12
|
+
return (0, _request.rpost)("v1")("user/cancelUserGuide?type=" + type, {
|
|
13
|
+
type: type
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.cancelGuide = cancelGuide;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.UploadStatus = exports.UploadProgress = exports.UploadFormContainer = exports.UploadForm = exports.PreviewOptionsWrapper = exports.PreviewMessageWrapper = exports.PreviewImageWrapper = exports.PreviewImageIcon = exports.PreviewFileTitle = exports.PreviewContent = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|