@titaui/pc 1.12.14 → 1.12.17-beta.1
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/attachments-preview/index.css +11 -0
- package/lib/components/attachments-preview/index.js +112 -0
- package/lib/components/auto-save/img/failed.svg +17 -0
- package/lib/components/auto-save/img/success.svg +16 -0
- package/lib/components/auto-save/index.css +39 -0
- package/lib/components/auto-save/index.js +78 -0
- package/lib/components/auto-save/interface.js +5 -0
- package/lib/components/color-date-picker/index.css +72 -0
- package/lib/components/color-date-picker/index.js +129 -0
- package/lib/components/color-date-picker/interface.js +14 -0
- package/lib/components/communication/index.js +6 -0
- package/lib/components/dialog-confirm/index.css +1 -0
- package/lib/components/dialog-confirm/index.js +5 -3
- package/lib/components/dialog-upload/img/doc.svg +1 -0
- package/lib/components/dialog-upload/img/other.svg +1 -0
- package/lib/components/dialog-upload/img/pdf.svg +1 -0
- package/lib/components/dialog-upload/img/ppt.svg +1 -0
- package/lib/components/dialog-upload/img/radio.svg +1 -0
- package/lib/components/dialog-upload/img/video.svg +1 -0
- package/lib/components/dialog-upload/img/xls.svg +1 -0
- package/lib/components/dialog-upload/index.css +77 -0
- package/lib/components/dialog-upload/index.js +332 -0
- package/lib/components/dialog-upload/type.js +35 -0
- package/lib/components/dialog-upload/uploaded-preview.css +77 -0
- package/lib/components/dialog-upload/uploaded-preview.js +132 -0
- package/lib/components/dialog-upload/util.js +131 -0
- package/lib/components/drawer/index.css +14 -5
- package/lib/components/drawer/index.js +5 -2
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/api.js +27 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +119 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +14 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +75 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +195 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +143 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.js +1 -5
- package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +171 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +152 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +10 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +10 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +8 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +26 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +8 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +26 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +197 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +222 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +20 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +134 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +60 -0
- package/lib/components/dynamic/dynamic-item/components/progress/index.css +25 -0
- package/lib/components/dynamic/dynamic-item/components/progress/index.js +71 -0
- package/lib/components/dynamic/dynamic-item/components/progress/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +35 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +55 -0
- package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +166 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +359 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +49 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +24 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +52 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +50 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +65 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +201 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +170 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +5 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +68 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +43 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +87 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +184 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +267 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +30 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/index.css +1 -0
- package/lib/components/dynamic/dynamic-item/index.js +27 -6
- package/lib/components/dynamic/dynamic-list/index.js +22 -5
- package/lib/components/form/form-fields/date/index.js +8 -7
- package/lib/components/help-card/image/liaojie1.svg +50 -0
- package/lib/components/help-card/index.css +4 -4
- package/lib/components/import-modal/helper.js +225 -0
- package/lib/components/import-modal/image/loading.gif +0 -0
- package/lib/components/import-modal/import-okr-modal/index.css +18 -0
- package/lib/components/import-modal/import-okr-modal/index.js +137 -0
- package/lib/components/import-modal/import-task-modal/index.css +18 -0
- package/lib/components/import-modal/import-task-modal/index.js +243 -0
- package/lib/components/import-modal/import-task-modal/search-form.js +141 -0
- package/lib/components/import-modal/index.css +30 -0
- package/lib/components/import-modal/index.js +20 -0
- package/lib/components/import-modal/radio.js +62 -0
- package/lib/components/import-modal/request-api.js +204 -0
- package/lib/components/import-modal/search/category-select.js +74 -0
- package/lib/components/import-modal/search/okr-classify-select.js +74 -0
- package/lib/components/import-modal/search/okr-status-select.js +74 -0
- package/lib/components/import-modal/search/okr-type-select.js +87 -0
- package/lib/components/import-modal/search/principal.js +135 -0
- package/lib/components/import-modal/search/relation.js +80 -0
- package/lib/components/import-modal/search/search-dropdown/index.css +50 -0
- package/lib/components/import-modal/search/search-dropdown/index.js +32 -0
- package/lib/components/import-modal/search/task-relation.js +80 -0
- package/lib/components/import-modal/search/task-status-select.js +87 -0
- package/lib/components/import-modal/search/work-relation.js +83 -0
- package/lib/components/import-modal/search/work-status-select.js +74 -0
- package/lib/components/import-modal/tree/okr-tree/index.css +61 -0
- package/lib/components/import-modal/tree/okr-tree/index.js +269 -0
- package/lib/components/import-modal/tree/okr-tree/search-form.js +169 -0
- package/lib/components/import-modal/tree/task-work-tree/index.css +124 -0
- package/lib/components/import-modal/tree/task-work-tree/index.js +190 -0
- package/lib/components/import-modal/tree-node/index.css +0 -0
- package/lib/components/import-modal/tree-node/index.js +51 -0
- package/lib/components/import-modal/tree-node/kr-node/index.css +65 -0
- package/lib/components/import-modal/tree-node/kr-node/index.js +112 -0
- package/lib/components/import-modal/tree-node/milestone-node/index.css +61 -0
- package/lib/components/import-modal/tree-node/milestone-node/index.js +118 -0
- package/lib/components/import-modal/tree-node/o-node/index.css +53 -0
- package/lib/components/import-modal/tree-node/o-node/index.js +142 -0
- package/lib/components/import-modal/tree-node/work-node/index.css +51 -0
- package/lib/components/import-modal/tree-node/work-node/index.js +108 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +14 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +15 -0
- package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +15 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.css +120 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +22 -2
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +78 -0
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +78 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.js +32 -14
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +148 -47
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/okr-menus/index.js +6 -6
- package/lib/components/menus/export-modules/okr-menus/menus.js +64 -61
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +2 -2
- package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +56 -0
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +32 -0
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +231 -0
- package/lib/components/menus/export-modules/summary-menus/index.css +9 -0
- package/lib/components/menus/export-modules/summary-menus/index.js +136 -0
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +76 -0
- package/lib/components/menus/export-modules/summary-menus/menus.js +189 -0
- package/lib/components/menus/export-modules/summary-menus/request-api.js +17 -0
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/helper.js +28 -0
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.css +14 -0
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +201 -0
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +242 -0
- package/lib/components/menus/i18n.js +8 -0
- package/lib/components/menus/index.js +6 -0
- package/lib/components/menus/request-apis.js +8 -2
- package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/yuyue.png +0 -0
- package/lib/components/nav-top/components/app-center/index.css +170 -0
- package/lib/components/nav-top/components/app-center/index.js +211 -0
- package/lib/components/nav-top/components/app-center/interface.js +19 -0
- package/lib/components/nav-top/components/menu/index.js +13 -13
- package/lib/components/nav-top/components/user-message/images/bell-1.svg +13 -0
- package/lib/components/nav-top/components/user-message/index.js +2 -2
- package/lib/components/nav-top/images/app-center.png +0 -0
- package/lib/components/nav-top/images/home.svg +16 -0
- package/lib/components/nav-top/index.css +61 -8
- package/lib/components/nav-top/index.js +74 -53
- package/lib/components/nav-top/utils.js +464 -1
- package/lib/components/new-confidence/constant.js +53 -0
- package/lib/components/new-confidence/img/1.svg +40 -0
- package/lib/components/new-confidence/img/10.svg +33 -0
- package/lib/components/new-confidence/img/2.svg +40 -0
- package/lib/components/new-confidence/img/3.svg +40 -0
- package/lib/components/new-confidence/img/4.svg +40 -0
- package/lib/components/new-confidence/img/5.svg +40 -0
- package/lib/components/new-confidence/img/6.svg +40 -0
- package/lib/components/new-confidence/img/7.svg +40 -0
- package/lib/components/new-confidence/img/8.svg +40 -0
- package/lib/components/new-confidence/img/9.svg +40 -0
- package/lib/components/new-confidence/index.css +62 -0
- package/lib/components/new-confidence/index.js +115 -0
- package/lib/components/new-confidence/interface.js +5 -0
- package/lib/components/okr-detail/components/header/o-avatar.js +12 -6
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +82 -34
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/order-have-award/img/award.png +0 -0
- package/lib/components/order-have-award/index.css +5 -0
- package/lib/components/order-have-award/index.js +83 -0
- package/lib/components/order-have-award/interface.js +19 -0
- package/lib/components/period-selector/components/button/style.js +6 -6
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/cross.svg +17 -0
- package/lib/components/picker/components/panels/date-panel/date-body.js +31 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.css +5 -0
- package/lib/components/picker/components/panels/month-panel/index.js +34 -4
- package/lib/components/picker/components/panels/month-panel/month-body.js +4 -5
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.css +42 -0
- package/lib/components/picker/components/panels/week-panel/index.js +49 -0
- package/lib/components/picker/components/panels/week-panel/utils.js +124 -0
- package/lib/components/picker/components/panels/week-panel/week-body.js +71 -0
- package/lib/components/picker/components/panels/week-panel/week-head.js +80 -0
- package/lib/components/picker/components/panels/year-panel/index.css +5 -0
- package/lib/components/picker/components/panels/year-panel/index.js +34 -3
- package/lib/components/picker/components/panels/year-panel/year-body.js +10 -3
- package/lib/components/picker/components/picker-trigger/index.css +6 -1
- package/lib/components/picker/components/picker-trigger/index.js +16 -11
- package/lib/components/picker/context.js +17 -2
- package/lib/components/picker/index.css +29 -1
- package/lib/components/picker/index.js +3 -0
- package/lib/components/picker/picker-panels.js +98 -61
- package/lib/components/picker/picker.js +44 -30
- package/lib/components/picker/range-picker/components/picker-trigger/index.css +97 -0
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +109 -0
- package/lib/components/picker/range-picker/components/placeholder/index.js +91 -0
- package/lib/components/picker/range-picker/components/select-input/index.js +72 -0
- package/lib/components/picker/range-picker/components/shortcuts/index.js +45 -0
- package/lib/components/picker/range-picker/index.css +158 -0
- package/lib/components/picker/range-picker/index.js +263 -0
- package/lib/components/picker/utils.js +168 -11
- package/lib/components/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +117 -0
- package/lib/components/promise-confirm/interface.js +5 -0
- package/lib/components/rate/index.css +111 -0
- package/lib/components/rate/index.js +52 -0
- package/lib/components/regulation-setting-item/index.css +33 -0
- package/lib/components/regulation-setting-item/index.js +37 -0
- package/lib/components/rich-editor/schemas/list.js +0 -1
- package/lib/components/rich-editor-at/components/index.css +66 -0
- package/lib/components/rich-editor-at/components/index.js +189 -0
- package/lib/components/rich-editor-at/index.css +40 -0
- package/lib/components/rich-editor-at/index.js +113 -0
- package/lib/components/rich-editor-upload/index.css +11 -0
- package/lib/components/rich-editor-upload/index.js +87 -0
- package/lib/components/search-input/index.js +5 -0
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/select-tags/index.js +7 -1
- package/lib/components/task-relation-modal/helper.js +7 -62
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/request-api.js +14 -11
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +26 -7
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +16 -16
- package/lib/components/textarea/index.js +7 -5
- package/lib/components/tooltip/tooltip.js +10 -5
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +4 -4
- package/lib/components/user-selector/request-apis.js +52 -22
- package/lib/components/user-selector/searched-panel/index.js +7 -1
- package/lib/components/write-summary-modal/index.css +79 -0
- package/lib/components/write-summary-modal/index.js +167 -0
- package/lib/components/write-summary-modal/interface.js +19 -0
- package/lib/components/write-summary-modal/request-api.js +18 -0
- package/lib/components/write-summary-modal/utils.js +31 -0
- package/lib/index.js +56 -0
- package/lib/pages/aha2021/index.css +7 -0
- package/lib/pages/aha2021/index.js +17 -11
- package/lib/pages/aha2021/new-menu-switcher/index.css +44 -0
- package/lib/pages/aha2021/new-menu-switcher/index.js +85 -0
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/lib/pages/okr-map/level2-search/user.js +1 -0
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +14 -2
- package/lib/utils/helpers.js +56 -11
- package/lib/utils/planDataJson.js +1 -11115
- package/package.json +2 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
.app-center {
|
|
4
|
+
padding: 32px 120px 28px;
|
|
5
|
+
position: relative;
|
|
6
|
+
box-shadow: 0 8px 24px 0 rgb 127 145 180/20%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.app-center__title {
|
|
10
|
+
font-size: 24px;
|
|
11
|
+
color: #141c28;
|
|
12
|
+
line-height: 38px;
|
|
13
|
+
margin-bottom: 32px;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.app-center__app-list {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.app-center__app-item {
|
|
24
|
+
flex: 1;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
min-width: 260px;
|
|
27
|
+
min-height: 56px;
|
|
28
|
+
margin: 4px 0;
|
|
29
|
+
padding: 12px 16px;
|
|
30
|
+
border-radius: 16px;
|
|
31
|
+
position: relative;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.app-center__app-item-icon {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 16px;
|
|
38
|
+
top: 12px;
|
|
39
|
+
width: 32px;
|
|
40
|
+
height: 32px;
|
|
41
|
+
margin-right: 12px;
|
|
42
|
+
background-size: contain;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.app-center__app-item-icon--chart {
|
|
46
|
+
background-image: url(./images/chart.svg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.app-center__app-item-icon--document {
|
|
50
|
+
background-image: url("./images/file.svg");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.app-center__app-item-icon--interview {
|
|
54
|
+
background-image: url("./images/interview.svg");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.app-center__app-item-icon--learning {
|
|
58
|
+
background-image: url("./images/learning.svg");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.app-center__app-item-icon--okr {
|
|
62
|
+
background-image: url("./images/okr.svg");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.app-center__app-item-icon--performance {
|
|
66
|
+
background-image: url("./images/performance.svg");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.app-center__app-item-icon--project {
|
|
70
|
+
background-image: url("./images/project.svg");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.app-center__app-item-icon--summary {
|
|
74
|
+
background-image: url("./images/summary.svg");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.app-center__app-item-icon--plan {
|
|
78
|
+
background-image: url("./images/plan.svg");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.app-center__app-item-desc {
|
|
82
|
+
margin-top: 3px;
|
|
83
|
+
margin-left: 44px;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.app-center__app-item-name {
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
color: #141c28;
|
|
91
|
+
line-height: 26px;
|
|
92
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.app-center__app-item-sub-title {
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
98
|
+
color: #89919f;
|
|
99
|
+
line-height: 22px;
|
|
100
|
+
margin-top: 4px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.app-center__app-item-placeholder {
|
|
104
|
+
flex: 1;
|
|
105
|
+
height: 0;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
min-width: 260px;
|
|
108
|
+
padding: 0 16px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.app-center__app-item--okr:hover {
|
|
112
|
+
background-color: rgba(40, 121, 255, 0.1);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.app-center__app-item--performance:hover {
|
|
116
|
+
background-color: rgba(255, 178, 0, 0.1);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.app-center__app-item--plan:hover {
|
|
120
|
+
background-color: rgba(90, 216, 166, 0.1);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.app-center__app-item--work:hover {
|
|
124
|
+
background-color: rgba(98, 77, 255, 0.1);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.app-center__app-item--report:hover {
|
|
128
|
+
background-color: rgba(63, 73, 255, 0.1);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.app-center__app-item--learning:hover {
|
|
132
|
+
background-color: rgba(240, 94, 94, 0.1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.app-center__app-item--interview:hover {
|
|
136
|
+
background-color: rgba(240, 94, 94, 0.1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.app-center__app-item--daily:hover {
|
|
140
|
+
background-color: rgba(255, 168, 28, 0.1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.app-center__app-item--document:hover {
|
|
144
|
+
background-color: rgba(90, 216, 166, 0.1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.app-center__drawer {
|
|
148
|
+
transform: translateY(54px);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.app-center__drawer .drawer-content-wrapper,
|
|
152
|
+
.app-center__drawer .drawer-content {
|
|
153
|
+
border-radius: 24px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.app-center__drawer .drawer-mask {
|
|
157
|
+
border-radius: 24px 24px 0 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.app-center__app-right-img {
|
|
161
|
+
position: absolute;
|
|
162
|
+
right: 0;
|
|
163
|
+
bottom: 22px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.app-center__app-right-img__img {
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
width: 120px;
|
|
169
|
+
height: 144px;
|
|
170
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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 _drawer = _interopRequireDefault(require("../../../drawer"));
|
|
15
|
+
|
|
16
|
+
var _bookDemo = _interopRequireDefault(require("../../../book-demo"));
|
|
17
|
+
|
|
18
|
+
var _errorBoundary = _interopRequireDefault(require("../../../error-boundary"));
|
|
19
|
+
|
|
20
|
+
var _utils = require("../../utils");
|
|
21
|
+
|
|
22
|
+
var _errorLevel = _interopRequireDefault(require("../../../../utils/error-level"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
var _interface = require("./interface");
|
|
27
|
+
|
|
28
|
+
var _yuyue = _interopRequireDefault(require("./images/yuyue.png"));
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
37
|
+
|
|
38
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
|
+
|
|
40
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
41
|
+
|
|
42
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
43
|
+
|
|
44
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
|
+
|
|
46
|
+
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."); }
|
|
47
|
+
|
|
48
|
+
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); }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
54
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
|
+
|
|
56
|
+
var precls = 'app-center';
|
|
57
|
+
|
|
58
|
+
var AppCenter = function AppCenter(props) {
|
|
59
|
+
var _props$appCenterVisib = props.appCenterVisible,
|
|
60
|
+
appCenterVisible = _props$appCenterVisib === void 0 ? false : _props$appCenterVisib,
|
|
61
|
+
closeAppCenter = props.closeAppCenter,
|
|
62
|
+
setMenu = props.setMenu;
|
|
63
|
+
|
|
64
|
+
var _useState = (0, _react.useState)(function () {
|
|
65
|
+
var menus = (0, _utils.getMenus)();
|
|
66
|
+
return menus.filter(function (menu) {
|
|
67
|
+
return menu.code !== 'dynamic';
|
|
68
|
+
});
|
|
69
|
+
}),
|
|
70
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
71
|
+
apps = _useState2[0];
|
|
72
|
+
|
|
73
|
+
var _useState3 = (0, _react.useState)(false),
|
|
74
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
75
|
+
init = _useState4[0],
|
|
76
|
+
setInit = _useState4[1];
|
|
77
|
+
|
|
78
|
+
var _useState5 = (0, _react.useState)(function () {
|
|
79
|
+
var _window$BSGlobal, _window$BSGlobal$tena;
|
|
80
|
+
|
|
81
|
+
return ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Version) === 1;
|
|
82
|
+
}),
|
|
83
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
84
|
+
isTrial = _useState6[0];
|
|
85
|
+
|
|
86
|
+
var _useState7 = (0, _react.useState)(function () {
|
|
87
|
+
var hash = window.location.hash.split('?')[0] || '';
|
|
88
|
+
|
|
89
|
+
if (hash) {
|
|
90
|
+
var activeApp = apps.find(function (app) {
|
|
91
|
+
return hash.includes(app.key);
|
|
92
|
+
});
|
|
93
|
+
return (activeApp === null || activeApp === void 0 ? void 0 : activeApp.id) || apps[0].id;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return apps[0].id;
|
|
97
|
+
}),
|
|
98
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
99
|
+
currentAppId = _useState8[0],
|
|
100
|
+
setCurrentAppId = _useState8[1];
|
|
101
|
+
|
|
102
|
+
var bookDemoRef = (0, _react.useRef)();
|
|
103
|
+
(0, _react.useEffect)(function () {
|
|
104
|
+
setInit(true);
|
|
105
|
+
}, []);
|
|
106
|
+
(0, _react.useEffect)(function () {
|
|
107
|
+
var _apps$find;
|
|
108
|
+
|
|
109
|
+
var menus = ((_apps$find = apps.find(function (app) {
|
|
110
|
+
return app.id === currentAppId;
|
|
111
|
+
})) === null || _apps$find === void 0 ? void 0 : _apps$find.children) || [];
|
|
112
|
+
var navigations = (0, _utils.getMenus)();
|
|
113
|
+
var dynamic = navigations.filter(function (item) {
|
|
114
|
+
return item.code === 'dynamic';
|
|
115
|
+
});
|
|
116
|
+
setMenu([].concat(_toConsumableArray(dynamic), _toConsumableArray(menus)));
|
|
117
|
+
|
|
118
|
+
if (init) {
|
|
119
|
+
window.location.href = menus === null || menus === void 0 ? void 0 : menus[0].href;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
closeAppCenter();
|
|
123
|
+
}, [currentAppId]);
|
|
124
|
+
|
|
125
|
+
var onAppSelectHandler = function onAppSelectHandler(app) {
|
|
126
|
+
if (app.type === 'newPage') {
|
|
127
|
+
window.location.href = "".concat(window.BSGlobal.apiPath, "/").concat(app.href);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
setCurrentAppId(app.id);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
var getBookDemoVersion = function getBookDemoVersion() {
|
|
135
|
+
var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
|
|
136
|
+
|
|
137
|
+
if (menuVersion === _interface.ETrialVersion.OKR) {
|
|
138
|
+
return _bookDemo["default"].DemoType.TryOKR;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (menuVersion === _interface.ETrialVersion.Performance) {
|
|
142
|
+
return _bookDemo["default"].DemoType.TryPerformance;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return _bookDemo["default"].DemoType.UniversalBookDemo;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var handlePoint = function handlePoint() {
|
|
149
|
+
if (bookDemoRef.current) {
|
|
150
|
+
bookDemoRef.current.show();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (window.titaTracker) {
|
|
154
|
+
window.titaTracker('action').record({
|
|
155
|
+
actionName: '申请演示',
|
|
156
|
+
actionGroup: '试用版-申请演示',
|
|
157
|
+
productName: '系统内-申请演示'
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
return /*#__PURE__*/_react["default"].createElement(_drawer["default"], {
|
|
163
|
+
className: "".concat(precls, "__drawer"),
|
|
164
|
+
placement: "top",
|
|
165
|
+
onClose: closeAppCenter,
|
|
166
|
+
visible: appCenterVisible,
|
|
167
|
+
width: "100%",
|
|
168
|
+
autoClosable: true
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: precls
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
172
|
+
className: "".concat(precls, "__app-list")
|
|
173
|
+
}, apps.length > 0 && apps.map(function (app) {
|
|
174
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: "".concat(precls, "__app-item ").concat(precls, "__app-item--").concat(app.code),
|
|
176
|
+
onClick: function onClick() {
|
|
177
|
+
return onAppSelectHandler(app);
|
|
178
|
+
}
|
|
179
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
|
+
className: (0, _classnames["default"])("".concat(precls, "__app-item-icon"), "".concat(precls, "__app-item-icon--").concat(app.iconName))
|
|
181
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
182
|
+
className: "".concat(precls, "__app-item-desc")
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
184
|
+
className: "".concat(precls, "__app-item-name")
|
|
185
|
+
}, app.title), isTrial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
186
|
+
className: "".concat(precls, "__app-item-sub-title")
|
|
187
|
+
}, app.subTitle)));
|
|
188
|
+
}), new Array(20).fill(1).map(function () {
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: "".concat(precls, "__app-item-placeholder")
|
|
191
|
+
});
|
|
192
|
+
}))), isTrial && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
193
|
+
className: "".concat(precls, "__app-right-img"),
|
|
194
|
+
onClick: handlePoint
|
|
195
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
196
|
+
className: "".concat(precls, "__app-right-img__img"),
|
|
197
|
+
src: _yuyue["default"],
|
|
198
|
+
alt: "\u9884\u7EA6\u6709\u5956"
|
|
199
|
+
})), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
200
|
+
errorLevel: _errorLevel["default"].P0,
|
|
201
|
+
errorTag: "\u7533\u8BF7\u9884\u7EA6\u6F14\u793A\u5F02\u5E38"
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement(_bookDemo["default"].BookDemoPC, {
|
|
203
|
+
visible: false,
|
|
204
|
+
ref: bookDemoRef,
|
|
205
|
+
type: getBookDemoVersion(),
|
|
206
|
+
source: 20220601
|
|
207
|
+
}))));
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
var _default = AppCenter;
|
|
211
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.ETrialVersion = void 0;
|
|
7
|
+
var ETrialVersion;
|
|
8
|
+
exports.ETrialVersion = ETrialVersion;
|
|
9
|
+
|
|
10
|
+
(function (ETrialVersion) {
|
|
11
|
+
ETrialVersion[ETrialVersion["OKR"] = 9] = "OKR";
|
|
12
|
+
ETrialVersion[ETrialVersion["Performance"] = 8] = "Performance";
|
|
13
|
+
ETrialVersion[ETrialVersion["Pro"] = 6] = "Pro";
|
|
14
|
+
})(ETrialVersion || (exports.ETrialVersion = ETrialVersion = {}));
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
ETrialVersion: ETrialVersion
|
|
18
|
+
};
|
|
19
|
+
exports["default"] = _default;
|
|
@@ -45,7 +45,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
45
45
|
|
|
46
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
|
|
48
|
-
var prefix =
|
|
48
|
+
var prefix = 'titaui-nav-top-menu';
|
|
49
49
|
var popupAlign = {
|
|
50
50
|
offset: [0, 5],
|
|
51
51
|
overflow: {
|
|
@@ -62,7 +62,7 @@ var NewFeatureGuidePopupAlign = {
|
|
|
62
62
|
},
|
|
63
63
|
targetOffset: [0, 0]
|
|
64
64
|
};
|
|
65
|
-
var NEWMENUS =
|
|
65
|
+
var NEWMENUS = '#/interview';
|
|
66
66
|
|
|
67
67
|
var Menu = function Menu(_ref) {
|
|
68
68
|
var menus = _ref.menus,
|
|
@@ -83,7 +83,7 @@ var Menu = function Menu(_ref) {
|
|
|
83
83
|
feedNum = _useGlobalValue2[0];
|
|
84
84
|
|
|
85
85
|
var containerRef = (0, _react.useRef)();
|
|
86
|
-
var apiPath = (0, _bsGlobal.getBSGlobal)(
|
|
86
|
+
var apiPath = (0, _bsGlobal.getBSGlobal)('apiPath');
|
|
87
87
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
88
88
|
|
|
89
89
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
@@ -92,10 +92,10 @@ var Menu = function Menu(_ref) {
|
|
|
92
92
|
|
|
93
93
|
var handleTracker = function handleTracker(menu) {
|
|
94
94
|
if (window.titaTracker) {
|
|
95
|
-
window.titaTracker(
|
|
95
|
+
window.titaTracker('action').record({
|
|
96
96
|
actionName: "\u5BFC\u822A\u83DC\u5355__".concat(menu.title),
|
|
97
|
-
actionGroup:
|
|
98
|
-
productName:
|
|
97
|
+
actionGroup: '导航菜单',
|
|
98
|
+
productName: '导航菜单'
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
};
|
|
@@ -133,7 +133,7 @@ var Menu = function Menu(_ref) {
|
|
|
133
133
|
var renderRawItem = function renderRawItem(menu) {
|
|
134
134
|
var href = menu.href;
|
|
135
135
|
|
|
136
|
-
if (menu.title ===
|
|
136
|
+
if (menu.title === 'Learning') {
|
|
137
137
|
href = "".concat(apiPath, "/").concat(userId, "/eLearningHome#/");
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -145,7 +145,7 @@ var Menu = function Menu(_ref) {
|
|
|
145
145
|
popupVisible: !isKnow,
|
|
146
146
|
popup: menu.href === NEWMENUS ? popup : null,
|
|
147
147
|
mask: false,
|
|
148
|
-
action: [
|
|
148
|
+
action: ['focus'],
|
|
149
149
|
popupAlign: NewFeatureGuidePopupAlign,
|
|
150
150
|
zIndex: 1000
|
|
151
151
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
@@ -155,9 +155,9 @@ var Menu = function Menu(_ref) {
|
|
|
155
155
|
onClick: function onClick() {
|
|
156
156
|
return handleTracker(menu);
|
|
157
157
|
}
|
|
158
|
-
}, menu.title, menu.href ===
|
|
159
|
-
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href ===
|
|
160
|
-
}, feedNum > 100 ?
|
|
158
|
+
}, menu.title, menu.href === '#dynamic' && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
+
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === '#dynamic'))
|
|
160
|
+
}, feedNum > 100 ? '99+' : feedNum), menu.href === NEWMENUS && /*#__PURE__*/_react["default"].createElement("img", {
|
|
161
161
|
src: _new["default"],
|
|
162
162
|
alt: "",
|
|
163
163
|
className: "".concat(prefix, "__tips-new")
|
|
@@ -175,7 +175,7 @@ var Menu = function Menu(_ref) {
|
|
|
175
175
|
}, items.map(function (menu) {
|
|
176
176
|
var href = menu.href;
|
|
177
177
|
|
|
178
|
-
if (menu.title ===
|
|
178
|
+
if (menu.title === 'Learning') {
|
|
179
179
|
href = "".concat(apiPath, "/").concat(userId, "/eLearningHome#/");
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -196,7 +196,7 @@ var Menu = function Menu(_ref) {
|
|
|
196
196
|
popupPlacement: "bottomLeft",
|
|
197
197
|
popupAlign: popupAlign
|
|
198
198
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
199
|
-
className: (0, _classnames["default"])(
|
|
199
|
+
className: (0, _classnames["default"])('tu-icon-diot', "".concat(prefix, "__more-icon"), _defineProperty({}, "".concat(prefix, "__more-icon--active"), isActiveHideMeun))
|
|
200
200
|
}));
|
|
201
201
|
};
|
|
202
202
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-967.000000, -16.000000)" stroke="#FFFFFF" stroke-width="1.6">
|
|
6
|
+
<g id="消息" transform="translate(964.000000, 10.000000)">
|
|
7
|
+
<g id="bell" transform="translate(3.000000, 6.000000)">
|
|
8
|
+
<path d="M11.0147551,3.73333333 C11.2716347,3.73333333 11.5100213,3.81274976 11.7063493,3.94879059 C11.9087141,4.0890144 12.0668261,4.28879775 12.1546337,4.5230515 C13.7164592,5.35127212 14.628956,6.03022217 15.271064,6.91744287 C15.8964201,7.78151685 16.2647551,8.84360493 16.2647551,9.99166667 L16.2647551,9.99166667 L16.2647551,14.1995335 L17.2351572,15.7271908 L13.1381228,16.3419612 C13.0764552,16.9803581 12.7329879,17.5356623 12.2344854,17.8838935 C11.8888575,18.1253335 11.4682834,18.2666667 11.0147551,18.2666667 C10.5612267,18.2666667 10.1406527,18.1253335 9.79502475,17.8838935 C9.29652228,17.5356623 8.95305493,16.9803581 8.89138739,16.3419612 L8.89138739,16.3419612 L5.13199196,16.3416667 L5.76475508,14.1995335 L5.76475508,9.99166667 C5.76475508,8.84366279 6.13305178,7.78162343 6.75832153,6.91759709 C7.40033245,6.03043703 8.31267653,5.35153921 9.37484426,5.00264003 C9.9622003,4.2892328 10.1205014,4.08920232 10.3230866,3.94883346 C10.5194668,3.81276391 10.7578617,3.73333333 11.0147551,3.73333333 Z"></path>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
@@ -25,7 +25,7 @@ var _redPack = _interopRequireDefault(require("./components/red-pack"));
|
|
|
25
25
|
|
|
26
26
|
var _request = require("../../request.apis");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _bell = _interopRequireDefault(require("./images/bell-1.svg"));
|
|
29
29
|
|
|
30
30
|
var _useGlobalValue = _interopRequireDefault(require("../../useGlobalValue"));
|
|
31
31
|
|
|
@@ -231,7 +231,7 @@ function UserMessage() {
|
|
|
231
231
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
232
|
className: (0, _classnames["default"])("".concat(prefixCls, "__msg-total"))
|
|
233
233
|
}, infosNum > 100 ? '99+' : infosNum)), /*#__PURE__*/_react["default"].createElement("img", {
|
|
234
|
-
src:
|
|
234
|
+
src: _bell["default"],
|
|
235
235
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData)),
|
|
236
236
|
alt: ""
|
|
237
237
|
}))), /*#__PURE__*/_react["default"].createElement(_redPack["default"], {
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-835.000000, -16.000000)">
|
|
6
|
+
<g id="个人首页" transform="translate(832.000000, 13.000000)">
|
|
7
|
+
<g id="home" transform="translate(3.000000, 3.000000)">
|
|
8
|
+
<g id="首页" transform="translate(3.025000, 2.383333)">
|
|
9
|
+
<path d="M7.975,1.31064196 C8.2909739,1.31064196 8.60694781,1.41143718 8.87195063,1.61302763 L8.87195063,1.61302763 L14.332463,5.766897 C14.8849137,6.18715208 15.2092593,6.84141097 15.2092593,7.53554073 L15.2092593,7.53554073 L15.2092593,13.7203704 C15.2092593,14.3340201 14.9605286,14.8895756 14.5583854,15.2917188 C14.1562423,15.6938619 13.6006868,15.9425926 12.987037,15.9425926 L12.987037,15.9425926 L2.96296296,15.9425926 C2.34931324,15.9425926 1.79375769,15.6938619 1.39161456,15.2917188 C0.989471435,14.8895756 0.740740741,14.3340201 0.740740741,13.7203704 L0.740740741,13.7203704 L0.740740741,7.53554073 C0.740740741,6.84141097 1.06508631,6.18715208 1.61753702,5.766897 L1.61753702,5.766897 L7.07804937,1.61302763 C7.34305219,1.41143718 7.6590261,1.31064196 7.975,1.31064196 Z" id="矩形" stroke="#FFFFFF" stroke-width="1.48148148"></path>
|
|
10
|
+
<path d="M5.40833333,11.3666667 L10.5416667,11.3666667 C10.9466755,11.3666667 11.275,11.6949912 11.275,12.1 C11.275,12.5050088 10.9466755,12.8333333 10.5416667,12.8333333 L5.40833333,12.8333333 C5.00332452,12.8333333 4.675,12.5050088 4.675,12.1 C4.675,11.6949912 5.00332452,11.3666667 5.40833333,11.3666667 Z" id="矩形" fill="#FFFFFF"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -10,22 +10,26 @@
|
|
|
10
10
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.titaui-nav-top--position {
|
|
14
|
+
position: relative;
|
|
15
|
+
z-index: 1201;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
.titaui-nav-top__left {
|
|
14
19
|
display: inline-flex;
|
|
15
20
|
justify-content: space-between;
|
|
16
21
|
align-items: center;
|
|
17
|
-
|
|
22
|
+
width: 120px;
|
|
18
23
|
height: 54px;
|
|
19
24
|
border-radius: 0px 0px 0px 24px;
|
|
20
|
-
|
|
21
|
-
padding: 0 10px 0 20px;
|
|
25
|
+
padding: 0 20px;
|
|
22
26
|
cursor: default;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
.titaui-nav-top__left-home {
|
|
26
30
|
display: inline-flex;
|
|
27
31
|
border-radius: 4px;
|
|
28
|
-
|
|
32
|
+
margin-right: 24px;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
.titaui-nav-top__left-home--active {
|
|
@@ -33,8 +37,8 @@
|
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
.titaui-nav-top__left-home-img {
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
40
|
+
width: 24px;
|
|
41
|
+
height: 24px;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.titaui-nav-top__left-home--hover:hover {
|
|
@@ -50,6 +54,55 @@
|
|
|
50
54
|
cursor: pointer;
|
|
51
55
|
}
|
|
52
56
|
|
|
57
|
+
.titaui-nav-top__left-dynamic, .titaui-nav-top__left-app-center {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
width: 24px;
|
|
60
|
+
height: 24px;
|
|
61
|
+
background: url("./images/app-center.png") no-repeat;
|
|
62
|
+
background-size: contain;
|
|
63
|
+
color: #ffffff;
|
|
64
|
+
padding: 2px;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
transition: transform 0.3s;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.titaui-nav-top__left-dynamic:hover, .titaui-nav-top__left-app-center:hover {
|
|
71
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.titaui-nav-top__left-dynamic--active, .titaui-nav-top__left-app-center--active {
|
|
75
|
+
transform: rotate(-90deg);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.titaui-nav-top__left-dynamic {
|
|
79
|
+
position: relative;
|
|
80
|
+
margin-right: -6px;
|
|
81
|
+
margin-left: 20px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.titaui-nav-top__left-dynamic-feed-num {
|
|
85
|
+
position: absolute;
|
|
86
|
+
right: -6px;
|
|
87
|
+
top: -2px;
|
|
88
|
+
background: #fe5042;
|
|
89
|
+
border-radius: 18px;
|
|
90
|
+
height: 16px;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
color: #ffffff;
|
|
93
|
+
line-height: 18px;
|
|
94
|
+
padding: 0 4px;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
min-width: 8px;
|
|
99
|
+
font-weight: 400;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.titaui-nav-top__left-app-center {
|
|
103
|
+
margin-right: 12px;
|
|
104
|
+
}
|
|
105
|
+
|
|
53
106
|
.titaui-nav-top__line {
|
|
54
107
|
width: 1px;
|
|
55
108
|
min-width: 1px;
|
|
@@ -68,8 +121,8 @@
|
|
|
68
121
|
|
|
69
122
|
.titaui-nav-top__msg {
|
|
70
123
|
margin-right: 24px;
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
124
|
+
width: 24px;
|
|
125
|
+
height: 24px;
|
|
73
126
|
cursor: pointer;
|
|
74
127
|
display: inline-flex;
|
|
75
128
|
}
|