@titaui/pc 1.6.8 → 1.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +38 -0
- package/lib/components/button/icon-btn/index.js +62 -0
- package/lib/components/button/index.css +3 -0
- package/lib/components/button/index.js +16 -9
- package/lib/components/button/rect-btn/index.css +82 -0
- package/lib/components/button/rect-btn/index.js +62 -0
- package/lib/components/button/text-btn/index.css +0 -0
- package/lib/components/button/text-btn/index.js +15 -0
- package/lib/components/button/types.js +5 -0
- package/lib/components/change-okr/index.js +1 -1
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/condition-render/index.js +20 -0
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/drawer/index.css +3 -1
- package/lib/components/drawer/index.js +2 -1
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -5
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/follower-visitor/img/follower-visitor-follower.png +0 -0
- package/lib/components/follower-visitor/img/follower-visitor-visitor.png +0 -0
- package/lib/components/follower-visitor/index.css +35 -0
- package/lib/components/follower-visitor/index.js +152 -0
- package/lib/components/follower-visitor/request-api.js +14 -0
- package/lib/components/form/form-fields/radios/index.css +25 -0
- package/lib/components/form/form-fields/radios/index.js +53 -0
- package/lib/components/form/index.js +5 -2
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/image/canceled.svg +13 -0
- package/lib/components/help-card/image/helpzx.svg +8 -0
- package/lib/components/help-card/image/kefu.svg +18 -0
- package/lib/components/help-card/image/kefu1.svg +8 -0
- package/lib/components/help-card/image/okr-shequ.svg +14 -0
- package/lib/components/help-card/image/question.svg +20 -0
- package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
- package/lib/components/help-card/index.css +219 -0
- package/lib/components/help-card/index.js +282 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/invite-people/index.css +9 -0
- package/lib/components/invite-people/index.js +28 -0
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +18 -0
- package/lib/components/menus/components/drag-resize/index.js +77 -0
- package/lib/components/menus/components/flip-menu-card/back-icon.svg +25 -0
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +28 -0
- package/lib/components/menus/components/flip-menu-card/index.css +89 -0
- package/lib/components/menus/components/flip-menu-card/index.js +193 -0
- package/lib/components/menus/components/flip-menu-card/precls.js +8 -0
- package/lib/components/menus/components/menu-card/index.css +29 -0
- package/lib/components/menus/components/menu-card/index.js +53 -0
- package/lib/components/menus/components/menu-close-btn/index.css +42 -0
- package/lib/components/menus/components/menu-close-btn/index.js +40 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/PF-shezhi.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/ZBmuban.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/bumen.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/kaohe.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/uniEA10.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/untitled.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/arrow.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/caidan-xiashu.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/ditu.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/guanzhu.svg +14 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr-gongsi.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr.svg +19 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/rw-zx.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/user-concern-add.svg +29 -0
- package/lib/components/menus/components/menu-tree/images/yibiao.svg +14 -0
- package/lib/components/menus/components/menu-tree/index.css +33 -0
- package/lib/components/menus/components/menu-tree/index.js +66 -0
- package/lib/components/menus/components/menu-tree/precls.js +8 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.css +17 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +41 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.css +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +73 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/group-name-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/index.css +360 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +91 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +40 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +36 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +86 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +111 -0
- package/lib/components/menus/components/search-colleague/index.css +53 -0
- package/lib/components/menus/components/search-colleague/index.js +88 -0
- package/lib/components/menus/context.js +14 -0
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +109 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.css +0 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.js +89 -0
- package/lib/components/menus/export-modules/depart-menus/helper.js +54 -0
- package/lib/components/menus/export-modules/depart-menus/index.css +0 -0
- package/lib/components/menus/export-modules/depart-menus/index.js +99 -0
- package/lib/components/menus/export-modules/okr-menus/datas.js +189 -0
- package/lib/components/menus/export-modules/okr-menus/index.css +33 -0
- package/lib/components/menus/export-modules/okr-menus/index.js +166 -0
- package/lib/components/menus/export-modules/subordinate-menus/helper.js +25 -0
- package/lib/components/menus/export-modules/subordinate-menus/index.js +108 -0
- package/lib/components/menus/index.css +20 -0
- package/lib/components/menus/index.js +51 -0
- package/lib/components/menus/precls.js +8 -0
- package/lib/components/menus/request-apis.js +97 -0
- package/lib/components/menus/types.js +5 -0
- package/lib/components/menus/utils.js +33 -0
- package/lib/components/nav-top/components/menu/index.css +90 -0
- package/lib/components/nav-top/components/menu/index.js +115 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.css +30 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.js +36 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.css +114 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.js +152 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +159 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.js +120 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +132 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.js +100 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +31 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.css +129 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.js +98 -0
- package/lib/components/nav-top/components/user-message/constant.js +39 -0
- package/lib/components/nav-top/components/user-message/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/components/user-message/images/bell.svg +18 -0
- package/lib/components/nav-top/components/user-message/images/empty-img.svg +130 -0
- package/lib/components/nav-top/components/user-message/images/user-photo.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +77 -0
- package/lib/components/nav-top/components/user-message/index.js +180 -0
- package/lib/components/nav-top/components/user-message/msg/index.css +122 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +102 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +61 -0
- package/lib/components/{button/admin-button/drop-down-arrow.js → nav-top/components/user-own-menu/index.js} +29 -54
- package/lib/components/nav-top/components/version/index.css +22 -0
- package/lib/components/{button/export-button → nav-top/components/version}/index.js +31 -40
- package/lib/components/nav-top/constant.js +42 -0
- package/lib/components/nav-top/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/images/bell.svg +18 -0
- package/lib/components/nav-top/images/empty-img.svg +130 -0
- package/lib/components/nav-top/images/exit.svg +21 -0
- package/lib/components/nav-top/images/home.png +0 -0
- package/lib/components/nav-top/images/manage.png +0 -0
- package/lib/components/nav-top/images/manage.svg +21 -0
- package/lib/components/nav-top/images/open.svg +21 -0
- package/lib/components/nav-top/images/own-home.svg +19 -0
- package/lib/components/nav-top/images/qiye-o.svg +25 -0
- package/lib/components/nav-top/images/set.svg +19 -0
- package/lib/components/nav-top/images/user-photo.png +0 -0
- package/lib/components/nav-top/images/version.png +0 -0
- package/lib/components/nav-top/index.css +89 -0
- package/lib/components/nav-top/index.js +137 -0
- package/lib/components/nav-top/interface.js +5 -0
- package/lib/components/nav-top/mock.js +36 -0
- package/lib/components/nav-top/utils.js +77 -0
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +1 -2
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +0 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +196 -0
- package/lib/components/photo-card/components/card/index.js +106 -0
- package/lib/components/photo-card/data.js +19 -0
- package/lib/components/photo-card/images/user-add.svg +19 -0
- package/lib/components/photo-card/images/user-photo.png +0 -0
- package/lib/components/photo-card/images/user-role.svg +38 -0
- package/lib/components/photo-card/index.css +29 -0
- package/lib/components/photo-card/index.js +51 -0
- package/lib/components/photo-card/types/image.d.js +1 -0
- package/lib/components/photo-card/types/react-app-env.d.js +2 -0
- package/lib/components/point-demo/drop-down-box/index.css +98 -0
- package/lib/components/point-demo/drop-down-box/index.js +159 -0
- package/lib/components/point-demo/image/demo-bcg.png +0 -0
- package/lib/components/point-demo/image/down.svg +14 -0
- package/lib/components/point-demo/image/icon-canceled.svg +7 -0
- package/lib/components/point-demo/image/logo.svg +64 -0
- package/lib/components/point-demo/index.css +348 -0
- package/lib/components/point-demo/index.js +657 -0
- package/lib/components/point-demo/input/index.css +74 -0
- package/lib/components/point-demo/input/index.js +176 -0
- package/lib/components/point-demo/point-demo.js +93 -0
- package/lib/components/point-demo/popup/index.css +7 -0
- package/lib/components/point-demo/popup/index.js +113 -0
- package/lib/components/point-demo/popup/placement.js +44 -0
- package/lib/components/point-demo/popup/rc-trigger.css +127 -0
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +10 -4
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +4 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components/user-selector/layout/index.js +4 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/constant.js +45 -0
- package/lib/components/version-change-modal/images/header-b.png +0 -0
- package/lib/components/version-change-modal/images/header-g.png +0 -0
- package/lib/components/version-change-modal/images/header-y.png +0 -0
- package/lib/components/version-change-modal/images/okr.png +0 -0
- package/lib/components/version-change-modal/images/okre.png +0 -0
- package/lib/components/version-change-modal/images/performance.png +0 -0
- package/lib/components/version-change-modal/images/performancePlus.png +0 -0
- package/lib/components/version-change-modal/images/project.png +0 -0
- package/lib/components/version-change-modal/images/title.png +0 -0
- package/lib/components/version-change-modal/index.css +150 -0
- package/lib/components/version-change-modal/index.js +175 -0
- package/lib/components/version-change-modal/interface.js +5 -0
- package/lib/components/version-change-modal/request-api.js +41 -0
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/radio/style/index.css +3 -3
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/index.js +56 -6
- package/lib/pages/aha2021/index.css +42 -0
- package/lib/pages/aha2021/index.js +62 -0
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/okr-map/hooks/useStorage.js +2 -2
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +12 -9
- package/lib/pages/personal-info/components/base-info/index.css +36 -0
- package/lib/pages/personal-info/components/base-info/index.js +179 -0
- package/lib/pages/personal-info/index.css +3 -0
- package/lib/pages/personal-info/index.js +27 -0
- package/lib/pages/personal-info/request-api.js +32 -0
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +16 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +3 -4
- package/package.json +2 -1
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/export-button/index.css +0 -51
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.titaui-user-message-msg {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 420px;
|
|
5
|
+
height: 500px;
|
|
6
|
+
background: #ffffff;
|
|
7
|
+
box-shadow: 0px 4px 24px 0px rgba(127, 145, 180, 0.2);
|
|
8
|
+
border-radius: 24px;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav {
|
|
13
|
+
margin-left: 20px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
width: 380px;
|
|
16
|
+
height: 58px;
|
|
17
|
+
background: #ffffff;
|
|
18
|
+
border-radius: 24px 24px 0px 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab {
|
|
22
|
+
margin: 20px 36px 15px 0;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
color: #3f4755;
|
|
27
|
+
line-height: 22px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab #rc-tabs-0-tab-todos {
|
|
31
|
+
margin-left: 5px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab #rc-tabs-0-tab-replys {
|
|
35
|
+
width: 56px;
|
|
36
|
+
height: 22px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab #rc-tabs-0-tab-replys .titaui-user-message__tabs-total {
|
|
40
|
+
left: 50px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab-active {
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
color: #2879ff;
|
|
48
|
+
line-height: 22px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.titaui-user-message-msg__tabs-todos {
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.titaui-user-message-msg__tabs-informs {
|
|
56
|
+
position: relative;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-user-message-msg__tabs-replys {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-user-message-msg__tabs-replys-total {
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 48px;
|
|
66
|
+
top: -6px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
background: #f05e5e;
|
|
69
|
+
box-shadow: 0px 2px 4px 0px #f05e5e, 0px 0px 2px 1px #f05e5e;
|
|
70
|
+
border-radius: 8px;
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
font-family: ArialMT;
|
|
73
|
+
color: #ffffff;
|
|
74
|
+
line-height: 18px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
padding: 0 5px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.titaui-user-message-msg__tabs-reminds {
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.titaui-user-message-msg__tabs-total {
|
|
84
|
+
position: absolute;
|
|
85
|
+
left: 22px;
|
|
86
|
+
top: -6px;
|
|
87
|
+
height: 16px;
|
|
88
|
+
background: #f05e5e;
|
|
89
|
+
box-shadow: 0px 2px 4px 0px #f05e5e, 0px 0px 2px 1px #f05e5e;
|
|
90
|
+
border-radius: 8px;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
font-family: ArialMT;
|
|
93
|
+
color: #ffffff;
|
|
94
|
+
line-height: 18px;
|
|
95
|
+
text-align: center;
|
|
96
|
+
padding: 0 5px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.titaui-user-message-msg
|
|
100
|
+
.titaui-user-message-msg__tabs
|
|
101
|
+
.titaui-tabs
|
|
102
|
+
.rc-tabs-tab::after {
|
|
103
|
+
width: 20px;
|
|
104
|
+
height: 3px;
|
|
105
|
+
background: linear-gradient(270deg, #4e90ff 0%, #2879ff 100%);
|
|
106
|
+
border-radius: 2px;
|
|
107
|
+
bottom: -15px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.titaui-user-message-msg
|
|
111
|
+
.titaui-user-message-msg__tabs
|
|
112
|
+
.titaui-tabs
|
|
113
|
+
.rc-tabs-tab-active::after {
|
|
114
|
+
left: calc(50% - 10px);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.titaui-user-message-msg
|
|
118
|
+
.titaui-user-message-msg__tabs
|
|
119
|
+
.titaui-tabs
|
|
120
|
+
.rc-tabs-tab #rc-tabs-0-tab-replys .titaui-user-message-msg__tabs-total {
|
|
121
|
+
left: 48px;
|
|
122
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _tabs = _interopRequireWildcard(require("../../../../tabs"));
|
|
15
|
+
|
|
16
|
+
var _bsGlobal = require("../../../../../utils/bs-global");
|
|
17
|
+
|
|
18
|
+
var _reply = _interopRequireDefault(require("../components/reply"));
|
|
19
|
+
|
|
20
|
+
var _todos = _interopRequireDefault(require("../components/todos"));
|
|
21
|
+
|
|
22
|
+
var _inform = _interopRequireDefault(require("../components/inform"));
|
|
23
|
+
|
|
24
|
+
var _remind = _interopRequireDefault(require("../components/remind"));
|
|
25
|
+
|
|
26
|
+
var _tabTitle = _interopRequireDefault(require("../components/tab-title"));
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
var prefixCls = "titaui-user-message-msg";
|
|
37
|
+
var userInfo = (0, _bsGlobal.getUserInfo)();
|
|
38
|
+
|
|
39
|
+
var UserMessage = function UserMessage(props) {
|
|
40
|
+
var todos = props.todos,
|
|
41
|
+
reminds = props.reminds,
|
|
42
|
+
informs = props.informs,
|
|
43
|
+
replys = props.replys,
|
|
44
|
+
deleteRemindsAll = props.deleteRemindsAll,
|
|
45
|
+
deleteReminds = props.deleteReminds,
|
|
46
|
+
onItemClick = props.onItemClick;
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
+
className: (0, _classnames["default"])("".concat(prefixCls))
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs"))
|
|
51
|
+
}, /*#__PURE__*/_react["default"].createElement(_tabs["default"], {
|
|
52
|
+
defaultActiveKey: "informs",
|
|
53
|
+
animated: {
|
|
54
|
+
inkBar: true,
|
|
55
|
+
tabPane: false
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
58
|
+
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
59
|
+
tab: todos,
|
|
60
|
+
title: "\u5F85\u529E"
|
|
61
|
+
}),
|
|
62
|
+
key: "todos"
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement(_todos["default"], {
|
|
64
|
+
todos: todos,
|
|
65
|
+
userInfo: userInfo,
|
|
66
|
+
onItemClick: onItemClick
|
|
67
|
+
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
68
|
+
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
69
|
+
tab: informs,
|
|
70
|
+
title: "\u901A\u77E5"
|
|
71
|
+
}),
|
|
72
|
+
key: "informs"
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement(_inform["default"], {
|
|
74
|
+
informs: informs,
|
|
75
|
+
userInfo: userInfo,
|
|
76
|
+
onItemClick: onItemClick
|
|
77
|
+
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
78
|
+
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
79
|
+
tab: replys,
|
|
80
|
+
title: "@\u4E0E\u56DE\u590D"
|
|
81
|
+
}),
|
|
82
|
+
key: "replys"
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(_reply["default"], {
|
|
84
|
+
replys: replys,
|
|
85
|
+
userInfo: userInfo,
|
|
86
|
+
onItemClick: onItemClick
|
|
87
|
+
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
88
|
+
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
89
|
+
tab: reminds,
|
|
90
|
+
title: "\u63D0\u9192"
|
|
91
|
+
}),
|
|
92
|
+
key: "reminds"
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement(_remind["default"], {
|
|
94
|
+
reminds: reminds,
|
|
95
|
+
deleteReminds: deleteReminds,
|
|
96
|
+
deleteRemindsAll: deleteRemindsAll,
|
|
97
|
+
onItemClick: onItemClick
|
|
98
|
+
})))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var _default = UserMessage;
|
|
102
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.titaui-nav-top-user-own-menu {
|
|
2
|
+
display: flex;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
box-shadow: 0px 4px 24px 0px rgba(127, 145, 180, 0.2);
|
|
6
|
+
border-radius: 24px;
|
|
7
|
+
padding: 16px 12px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-nav-top-user-own-menu__card-items {
|
|
11
|
+
margin-bottom: 5px;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-nav-top-user-own-menu__card-items:last-of-type::after {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-nav-top-user-own-menu__card-items::after {
|
|
20
|
+
position: absolute;
|
|
21
|
+
bottom: -2.5px;
|
|
22
|
+
left: 8px;
|
|
23
|
+
display: inline-block;
|
|
24
|
+
content: "";
|
|
25
|
+
width: 100px;
|
|
26
|
+
height: 1px;
|
|
27
|
+
background: linear-gradient(297deg, #ffffff 0%, #e9ecf0 46%, #ffffff 100%);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-nav-top-user-own-menu__card-items:last-of-type {
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.titaui-nav-top-user-own-menu__card-item {
|
|
35
|
+
display: flex;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
padding: 5px 8px;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-nav-top-user-own-menu__card-item:hover {
|
|
42
|
+
background: #f7f8fa;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-nav-top-user-own-menu__card-item-img {
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
margin: 3px 8px 3px 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.titaui-nav-top-user-own-menu__card-item-title {
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
color: #3f4755;
|
|
55
|
+
line-height: 22px;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-nav-top-user-own-menu__card-item-title:hover {
|
|
60
|
+
color: #2879ff;
|
|
61
|
+
}
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _utils = require("../../utils");
|
|
15
|
+
|
|
14
16
|
require("./index.css");
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -31,63 +33,36 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
31
33
|
|
|
32
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
35
|
|
|
34
|
-
var preCls = "
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
content = _ref$content === void 0 ? [] : _ref$content,
|
|
42
|
-
_ref$isHasArrow = _ref.isHasArrow,
|
|
43
|
-
isHasArrow = _ref$isHasArrow === void 0 ? false : _ref$isHasArrow,
|
|
44
|
-
style = _ref.style,
|
|
45
|
-
contentStyle = _ref.contentStyle,
|
|
46
|
-
extraClass = _ref.extraClass;
|
|
47
|
-
|
|
48
|
-
var _useState = (0, _react.useState)(false),
|
|
49
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
50
|
-
visible = _useState2[0],
|
|
51
|
-
setVisible = _useState2[1];
|
|
52
|
-
|
|
53
|
-
var wrapperRef = (0, _react.useRef)(document.createElement("div"));
|
|
54
|
-
|
|
55
|
-
var clickEvent = function clickEvent(e) {
|
|
56
|
-
if (!e.target.className.includes("admin-button-drop-wrapper-item")) {
|
|
57
|
-
setVisible(false);
|
|
58
|
-
window.removeEventListener("click", clickEvent, true);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
(0, _react.useEffect)(function () {
|
|
63
|
-
if (visible) {
|
|
64
|
-
window.addEventListener("click", clickEvent, true);
|
|
65
|
-
} else {
|
|
66
|
-
window.removeEventListener("click", clickEvent, true);
|
|
67
|
-
}
|
|
68
|
-
}, [visible]);
|
|
36
|
+
var preCls = "titaui-nav-top-user-own-menu";
|
|
37
|
+
|
|
38
|
+
var User = function User() {
|
|
39
|
+
var _useState = (0, _react.useState)((0, _utils.getOwnSet)()),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
41
|
+
ownSet = _useState2[0];
|
|
42
|
+
|
|
69
43
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
className: (0, _classnames["default"])("".concat(preCls, "-drop ").concat(preCls, "-btn ").concat(extraClass)),
|
|
75
|
-
style: style
|
|
76
|
-
}, children, isHasArrow && /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
-
className: "tu-icon-sort-down"
|
|
78
|
-
})), visible && /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
-
ref: wrapperRef,
|
|
80
|
-
style: contentStyle,
|
|
81
|
-
className: (0, _classnames["default"])("".concat(preCls, "-drop-wrapper"))
|
|
82
|
-
}, content.map(function (item, key) {
|
|
44
|
+
className: (0, _classnames["default"])("".concat(preCls))
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(preCls, "__card"))
|
|
47
|
+
}, ownSet.map(function (items, index) {
|
|
83
48
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
49
|
+
className: (0, _classnames["default"])("".concat(preCls, "__card-items")),
|
|
50
|
+
key: index
|
|
51
|
+
}, items.map(function (item) {
|
|
52
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
53
|
+
className: (0, _classnames["default"])("".concat(preCls, "__card-item")),
|
|
54
|
+
key: item.id
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
56
|
+
src: item.url,
|
|
57
|
+
className: (0, _classnames["default"])("".concat(preCls, "__card-item-img"))
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("a", {
|
|
59
|
+
href: item.objUrl
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: (0, _classnames["default"])("".concat(preCls, "__card-item-title"))
|
|
62
|
+
}, item.title)));
|
|
63
|
+
}));
|
|
90
64
|
})));
|
|
91
65
|
};
|
|
92
66
|
|
|
67
|
+
var _default = User;
|
|
93
68
|
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.titaui-nav-top-version__version-info {
|
|
2
|
+
width: 120px;
|
|
3
|
+
height: 24px;
|
|
4
|
+
background: url("../../images/version.png") no-repeat;
|
|
5
|
+
background-size: 120px 24px;
|
|
6
|
+
margin-right: 20px;
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
color: #875502;
|
|
10
|
+
line-height: 18px;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-nav-top-version__version-info-name {
|
|
17
|
+
margin-left: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titaui-nav-top-version__version-info-countdown {
|
|
21
|
+
margin-left: 16px;
|
|
22
|
+
}
|
|
@@ -9,8 +9,16 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
13
|
+
|
|
14
|
+
var _versionChangeModal = _interopRequireDefault(require("../../../version-change-modal"));
|
|
15
|
+
|
|
16
|
+
var _constant = require("../../constant");
|
|
17
|
+
|
|
12
18
|
require("./index.css");
|
|
13
19
|
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
14
22
|
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); }
|
|
15
23
|
|
|
16
24
|
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; }
|
|
@@ -27,55 +35,38 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
27
35
|
|
|
28
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
37
|
|
|
30
|
-
var
|
|
31
|
-
var popup = _ref.popup,
|
|
32
|
-
_ref$width = _ref.width,
|
|
33
|
-
width = _ref$width === void 0 ? 90 : _ref$width,
|
|
34
|
-
_ref$height = _ref.height,
|
|
35
|
-
height = _ref$height === void 0 ? 32 : _ref$height,
|
|
36
|
-
_onClick = _ref.onClick;
|
|
38
|
+
var prefix = "titaui-nav-top-version";
|
|
37
39
|
|
|
40
|
+
var Version = function Version() {
|
|
38
41
|
var _useState = (0, _react.useState)(false),
|
|
39
42
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
visible = _useState2[0],
|
|
44
|
+
setVisible = _useState2[1];
|
|
45
|
+
|
|
46
|
+
var versionInfo = (0, _bsGlobal.getBSGlobal)("tenantAuthentication");
|
|
42
47
|
|
|
43
|
-
var
|
|
48
|
+
var handleVisibleChange = function handleVisibleChange(value) {
|
|
49
|
+
setVisible(value);
|
|
50
|
+
};
|
|
44
51
|
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
setIsVisible(false);
|
|
48
|
-
window.removeEventListener("click", clickEvent, true);
|
|
49
|
-
}
|
|
52
|
+
var handleShowVersionSelector = function handleShowVersionSelector() {
|
|
53
|
+
setVisible(true);
|
|
50
54
|
};
|
|
51
55
|
|
|
52
|
-
(0, _react.useEffect)(function () {
|
|
53
|
-
if (isVisible) {
|
|
54
|
-
window.addEventListener("click", clickEvent, true);
|
|
55
|
-
} else {
|
|
56
|
-
window.removeEventListener("click", clickEvent, true);
|
|
57
|
-
}
|
|
58
|
-
}, [isVisible]);
|
|
59
56
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
-
className:
|
|
57
|
+
className: prefix
|
|
61
58
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
-
className: "
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
73
|
-
src: require("../images/daoru.svg")
|
|
74
|
-
}), " \u5BFC\u51FA"), popup && isVisible ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
-
className: "export-label",
|
|
76
|
-
ref: wrapperRef
|
|
77
|
-
}, popup) : null);
|
|
59
|
+
className: "".concat(prefix, "__version-info"),
|
|
60
|
+
onClick: handleShowVersionSelector
|
|
61
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
62
|
+
className: "".concat(prefix, "__version-info-name")
|
|
63
|
+
}, _constant.versionTextMap[versionInfo.MenuVersion]), /*#__PURE__*/_react["default"].createElement("span", {
|
|
64
|
+
className: "".concat(prefix, "__version-info-countdown")
|
|
65
|
+
}, "\u5269\u4F59", versionInfo.Day, "\u5929")), /*#__PURE__*/_react["default"].createElement(_versionChangeModal["default"], {
|
|
66
|
+
isVisible: visible,
|
|
67
|
+
onVisibleChange: handleVisibleChange
|
|
68
|
+
}));
|
|
78
69
|
};
|
|
79
70
|
|
|
80
|
-
var _default =
|
|
71
|
+
var _default = Version;
|
|
81
72
|
exports["default"] = _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.versionTextMap = exports.path = exports.popupAlignPhoto = exports.userInfoPath = exports.tm = exports.apiServer = exports.userId = void 0;
|
|
7
|
+
|
|
8
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
9
|
+
|
|
10
|
+
var _constant = require("../version-change-modal/constant");
|
|
11
|
+
|
|
12
|
+
var _versionTextMap;
|
|
13
|
+
|
|
14
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
|
|
16
|
+
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
17
|
+
exports.userId = userId;
|
|
18
|
+
var apiServer = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
19
|
+
exports.apiServer = apiServer;
|
|
20
|
+
var tm = (0, _bsGlobal.getBSGlobal)("tm");
|
|
21
|
+
exports.tm = tm;
|
|
22
|
+
var userInfoPath = "planDaily/userAll?toUserId=".concat(userId, "&date=2021/10/13&reportType=26");
|
|
23
|
+
exports.userInfoPath = userInfoPath;
|
|
24
|
+
var popupAlignPhoto = {
|
|
25
|
+
offset: [4, 3],
|
|
26
|
+
overflow: {
|
|
27
|
+
adjustX: true,
|
|
28
|
+
adjustY: true
|
|
29
|
+
},
|
|
30
|
+
targetOffset: [0, 0]
|
|
31
|
+
}; //待办提醒任务
|
|
32
|
+
|
|
33
|
+
exports.popupAlignPhoto = popupAlignPhoto;
|
|
34
|
+
var path = {
|
|
35
|
+
todoPath: "todo/Get?app_type=-1&app_id=-1&page_num=1&page_size=50&status=1&pageNum=1",
|
|
36
|
+
remindPath: "remind/get",
|
|
37
|
+
informPath: "messages/Get?page_size=20&page_num=1&status=2&app_type=-1&app_id=-1",
|
|
38
|
+
replyPath: "comment/messages?page_num=1&page_size=20&status=2"
|
|
39
|
+
};
|
|
40
|
+
exports.path = path;
|
|
41
|
+
var versionTextMap = (_versionTextMap = {}, _defineProperty(_versionTextMap, _constant.Versions.Standard, "项目版"), _defineProperty(_versionTextMap, _constant.Versions.WeixinAssess, "绩效版"), _defineProperty(_versionTextMap, _constant.Versions.Professional, "OKR版"), _defineProperty(_versionTextMap, _constant.Versions.Flagship, "旗舰版"), _versionTextMap);
|
|
42
|
+
exports.versionTextMap = versionTextMap;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>app-tixing</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<filter id="filter-1">
|
|
6
|
+
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 0.964706 0 0 0 0 0.741176 0 0 0 0 0.086275 0 0 0 1.000000 0"></feColorMatrix>
|
|
7
|
+
</filter>
|
|
8
|
+
</defs>
|
|
9
|
+
<g id="整体框架" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10
|
+
<g id="消息-提醒" transform="translate(-598.000000, -123.000000)">
|
|
11
|
+
<g id="编组-4备份" transform="translate(578.000000, 42.000000)">
|
|
12
|
+
<g id="编组-3" transform="translate(0.000000, 68.000000)">
|
|
13
|
+
<g id="app-tixing" transform="translate(20.000000, 13.000000)">
|
|
14
|
+
<circle id="椭圆形" fill-opacity="0.2" fill="#F6BD16" cx="16" cy="16" r="16"></circle>
|
|
15
|
+
<g id="app-tixing" transform="translate(6.000000, 6.000000)" filter="url(#filter-1)">
|
|
16
|
+
<g>
|
|
17
|
+
<path d="M10,4.25 C11.6566811,4.25 13.1567183,4.92179403 14.2429288,6.00740452 C15.3286277,7.09310336 16,8.59310921 16,10.25 C16,11.9066719 15.3285393,13.4067183 14.2430591,14.4927986 C13.1567183,15.5785393 11.6566719,16.25 10,16.25 C8.34310921,16.25 6.84310336,15.5786277 5.75753473,14.4930591 C4.67179403,13.4067183 4,11.9066811 4,10.25 C4,8.5931 4.67170568,7.09310336 5.75740452,6.00740452 C6.84310336,4.92170568 8.3431,4.25 10,4.25 Z" id="员" stroke="#141C28" stroke-width="1.33333333"></path>
|
|
18
|
+
<path d="M5.53655495,3.23702961 C4.43502016,3.23702961 3.33348537,4.01646392 3.33348537,5.24911447 M16.6812187,5.26823842 C16.6812187,4.24307204 15.5921387,3.25 14.5030587,3.23702961" id="形状" stroke="#141C28" stroke-width="1.33333333" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
19
|
+
<rect id="矩形" fill="#141C28" x="9.33333333" y="6.91666667" width="1.33333333" height="4.66666667" rx="0.666666667"></rect>
|
|
20
|
+
<rect id="矩形" fill="#141C28" transform="translate(5.858608, 16.058058) rotate(-315.000000) translate(-5.858608, -16.058058) " x="5.19194174" y="14.3497249" width="1.33333333" height="3.41666667" rx="0.666666667"></rect>
|
|
21
|
+
<rect id="矩形" fill="#141C28" transform="translate(14.111929, 16.028595) scale(-1, 1) rotate(-315.000000) translate(-14.111929, -16.028595) " x="13.4452621" y="14.3619288" width="1.33333333" height="3.33333333" rx="0.666666667"></rect>
|
|
22
|
+
<rect id="矩形" fill="#141C28" transform="translate(11.238034, 11.666667) rotate(-330.000000) translate(-11.238034, -11.666667) " x="9.23803387" y="11" width="4" height="1.33333333" rx="0.666666667"></rect>
|
|
23
|
+
</g>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="20px" height="20px" viewBox="0 0 20 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
|
+
<filter id="filter-1">
|
|
6
|
+
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
|
|
7
|
+
</filter>
|
|
8
|
+
</defs>
|
|
9
|
+
<g id="整体框架" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10
|
+
<g id="消息-提醒" transform="translate(-973.000000, -17.000000)">
|
|
11
|
+
<g id="bell" transform="translate(973.000000, 17.000000)" filter="url(#filter-1)">
|
|
12
|
+
<g>
|
|
13
|
+
<path d="M10.0134137,3.33333333 C10.2596762,3.33333333 10.4882019,3.40947271 10.67644,3.53984587 C10.8704247,3.67419907 11.0219839,3.86564749 11.1062357,4.09010883 C12.500322,4.8105417 13.3405282,5.43573057 13.9317732,6.25272971 C14.5075396,7.04834 14.846747,8.02624604 14.846747,9.08333333 L14.846747,9.08333333 L14.846747,12.891045 L15.8081933,14.4046034 L11.9979898,14.9171476 C11.9263157,15.4924975 11.6099219,15.9913803 11.156905,16.3078121 C10.8328747,16.534147 10.4385967,16.6666667 10.0134137,16.6666667 C9.58823067,16.6666667 9.19395274,16.534147 8.8699224,16.3078121 C8.41690551,15.9913803 8.10051172,15.4924975 8.02883757,14.9171476 L8.02883757,14.9171476 L4.5,14.9166667 L5.18008038,12.891045 L5.18008038,9.08333333 C5.18008038,8.02620525 5.51931376,7.04826289 6.09518007,6.25271046 C6.68643877,5.43589363 7.52666233,4.8109336 8.50479979,4.48990505 C9.00530961,3.86567916 9.15667087,3.67423861 9.35047606,3.53990042 C9.53865336,3.40946327 9.76716819,3.33333333 10.0134137,3.33333333 Z" stroke="#141C28" stroke-width="1.33333333"></path>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|