@titaui/pc 1.6.12 → 1.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/rect-btn/index.css +21 -0
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +1 -2
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +7 -4
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +2 -2
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/index.css +17 -17
- package/lib/components/help-card/index.js +35 -31
- package/lib/components/help-card/request-api.js +2 -2
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -3
- package/lib/components/menus/components/flip-menu-card/index.js +42 -30
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +5 -4
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
- package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -19
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +41 -4
- package/lib/components/nav-top/components/user-message/index.js +89 -100
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
- package/lib/components/nav-top/components/user-message/utils.js +31 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
- package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +14 -13
- package/lib/components/nav-top/request.apis.js +50 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +189 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +54 -0
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +83 -100
- package/lib/components/photo-card/components/card/index.js +119 -63
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +15 -14
- package/lib/components/photo-card/index.js +59 -15
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -3
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +18 -4
- package/lib/pages/aha2021/index.css +25 -1
- package/lib/pages/aha2021/index.js +10 -4
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- package/lib/pages/new-okr-list/header/depart-title.js +59 -0
- package/lib/pages/new-okr-list/header/filter.js +95 -0
- package/lib/pages/new-okr-list/header/index.css +118 -0
- package/lib/pages/new-okr-list/header/index.js +133 -0
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +26 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +208 -0
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +47 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +158 -0
- package/lib/pages/new-okr-list/theme.css +7 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +3 -2
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -1,43 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/tooltip-text"));
|
|
14
|
+
var _rcVirtualList = _interopRequireDefault(require("rc-virtual-list"));
|
|
15
15
|
|
|
16
16
|
var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/components/condition-render"));
|
|
17
17
|
|
|
18
18
|
var _request = require("../../../../../../utils/request");
|
|
19
19
|
|
|
20
|
+
var _request2 = require("../../../../request.apis");
|
|
21
|
+
|
|
20
22
|
var _empty = _interopRequireDefault(require("../empty"));
|
|
21
23
|
|
|
22
|
-
var
|
|
24
|
+
var _remindItem = _interopRequireDefault(require("./remind-item"));
|
|
23
25
|
|
|
24
|
-
require("
|
|
26
|
+
var _loading = _interopRequireDefault(require("../../images/loading.gif"));
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
require("./index.css");
|
|
27
29
|
|
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
+
|
|
38
|
+
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."); }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
+
|
|
30
48
|
var preCls = "titaui-user-message-msg-remind";
|
|
31
49
|
|
|
32
50
|
var Remind = function Remind(props) {
|
|
33
|
-
var
|
|
34
|
-
deleteReminds = props.deleteReminds,
|
|
35
|
-
deleteRemindsAll = props.deleteRemindsAll,
|
|
36
|
-
onItemClick = props.onItemClick;
|
|
51
|
+
var onItemClick = props.onItemClick;
|
|
37
52
|
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
var _useState = (0, _react.useState)([]),
|
|
54
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
+
reminds = _useState2[0],
|
|
56
|
+
setReminds = _useState2[1];
|
|
57
|
+
|
|
58
|
+
var _useState3 = (0, _react.useState)(true),
|
|
59
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
+
isLoading = _useState4[0],
|
|
61
|
+
setIsLoading = _useState4[1];
|
|
41
62
|
|
|
42
63
|
var deleteTask = function deleteTask(remind) {
|
|
43
64
|
var remindpath = "remind/close?remindId=".concat(remind.id);
|
|
@@ -46,7 +67,10 @@ var Remind = function Remind(props) {
|
|
|
46
67
|
};
|
|
47
68
|
|
|
48
69
|
var handleDelete = function handleDelete(id) {
|
|
49
|
-
|
|
70
|
+
var deletereminds = reminds.filter(function (remind) {
|
|
71
|
+
return remind.id !== id;
|
|
72
|
+
});
|
|
73
|
+
setReminds(deletereminds);
|
|
50
74
|
};
|
|
51
75
|
|
|
52
76
|
var deleteAll = function deleteAll(reminds) {
|
|
@@ -56,63 +80,46 @@ var Remind = function Remind(props) {
|
|
|
56
80
|
};
|
|
57
81
|
|
|
58
82
|
var handleDeleteAll = function handleDeleteAll() {
|
|
59
|
-
|
|
83
|
+
setReminds([]);
|
|
60
84
|
};
|
|
61
85
|
|
|
86
|
+
(0, _react.useEffect)(function () {
|
|
87
|
+
(0, _request2.getReminds)().then(function (res) {
|
|
88
|
+
if (res.Data.length) {
|
|
89
|
+
setReminds(res.Data);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
setIsLoading(false);
|
|
93
|
+
});
|
|
94
|
+
}, []);
|
|
62
95
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
96
|
+
condition: isLoading
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
98
|
+
src: _loading["default"],
|
|
99
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
100
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
63
101
|
condition: reminds.length !== 0
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactPerfectScrollbar["default"], {
|
|
65
|
-
options: {
|
|
66
|
-
suppressScrollX: true
|
|
67
|
-
}
|
|
68
102
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
69
103
|
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u4EFB\u52A1"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-name-status"))
|
|
83
|
-
}, remind.content)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
85
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
86
|
-
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
87
|
-
text: remind.objName,
|
|
88
|
-
isPercent: true,
|
|
89
|
-
mouseEnterDelay: 0.8
|
|
90
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-handle"))
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-handle-ignore")),
|
|
94
|
-
onClick: function onClick() {
|
|
95
|
-
return deleteTask(remind);
|
|
96
|
-
}
|
|
97
|
-
}, "\u5FFD\u7565"), /*#__PURE__*/_react["default"].createElement("a", {
|
|
98
|
-
target: "_blank",
|
|
99
|
-
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/taskinfo?Id=").concat(remind.objId),
|
|
100
|
-
onClick: handleRemindClick
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-handle-deal")),
|
|
103
|
-
onClick: function onClick() {
|
|
104
|
-
return deleteTask(remind);
|
|
105
|
-
}
|
|
106
|
-
}, "\u53BB\u5904\u7406"))));
|
|
107
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
105
|
+
data: reminds,
|
|
106
|
+
height: 386,
|
|
107
|
+
itemKey: "id"
|
|
108
|
+
}, function (item) {
|
|
109
|
+
return /*#__PURE__*/_react["default"].createElement(_remindItem["default"], {
|
|
110
|
+
item: item,
|
|
111
|
+
onItemClick: onItemClick,
|
|
112
|
+
deleteTask: deleteTask
|
|
113
|
+
});
|
|
114
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
115
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
109
116
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
117
|
className: (0, _classnames["default"])("".concat(preCls, "__footer-all")),
|
|
111
118
|
onClick: function onClick() {
|
|
112
119
|
return deleteAll(reminds);
|
|
113
120
|
}
|
|
114
|
-
}, "\u5168\u90E8\u5FFD\u7565")))
|
|
115
|
-
condition: reminds.length === 0
|
|
121
|
+
}, "\u5168\u90E8\u5FFD\u7565"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
122
|
+
condition: isLoading === false && reminds.length === 0
|
|
116
123
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
117
124
|
};
|
|
118
125
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/tooltip-text"));
|
|
13
|
+
|
|
14
|
+
var _appTixing = _interopRequireDefault(require("../../images/app-tixing.svg"));
|
|
15
|
+
|
|
16
|
+
var _constant = require("../../constant");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var preCls = "titaui-user-message-msg-remind";
|
|
23
|
+
|
|
24
|
+
var Remind = function Remind(props) {
|
|
25
|
+
var item = props.item,
|
|
26
|
+
onItemClick = props.onItemClick,
|
|
27
|
+
deleteTask = props.deleteTask;
|
|
28
|
+
|
|
29
|
+
var handleRemindClick = function handleRemindClick() {
|
|
30
|
+
onItemClick && onItemClick(false);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var deleteOneTask = function deleteOneTask() {
|
|
34
|
+
deleteTask(item);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
38
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item")),
|
|
39
|
+
key: item.id
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
41
|
+
src: _appTixing["default"],
|
|
42
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-photo"))
|
|
43
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right"))
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-name"))
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u4EFB\u52A1"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
48
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-name-status"))
|
|
49
|
+
}, item.content)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
51
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
52
|
+
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
53
|
+
text: item.objName,
|
|
54
|
+
isPercent: true,
|
|
55
|
+
mouseEnterDelay: 0.8
|
|
56
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-handle"))
|
|
58
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-handle-ignore")),
|
|
60
|
+
onClick: deleteOneTask
|
|
61
|
+
}, "\u5FFD\u7565"), /*#__PURE__*/_react["default"].createElement("a", {
|
|
62
|
+
target: "_blank",
|
|
63
|
+
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/taskinfo?Id=").concat(item.objId),
|
|
64
|
+
onClick: handleRemindClick
|
|
65
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-handle-deal"))
|
|
67
|
+
}, "\u53BB\u5904\u7406"))));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var _default = Remind;
|
|
71
|
+
exports["default"] = _default;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
.titaui-user-message-msg-reply__loading {
|
|
2
|
+
width: 80px;
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
margin: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
.titaui-user-message-msg-reply__items {
|
|
2
12
|
width: 420px;
|
|
3
|
-
margin-top: 8px;
|
|
4
13
|
}
|
|
5
14
|
|
|
6
15
|
.titaui-user-message-msg-reply__item {
|
|
@@ -11,7 +20,15 @@
|
|
|
11
20
|
border-radius: 12px;
|
|
12
21
|
margin-bottom: 4px;
|
|
13
22
|
margin-left: 12px;
|
|
14
|
-
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.titaui-user-message-msg-reply__item:first-of-type {
|
|
27
|
+
margin-top: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-user-message-msg-reply__item:last-of-type {
|
|
31
|
+
margin-bottom: 0;
|
|
15
32
|
}
|
|
16
33
|
|
|
17
34
|
.titaui-user-message-msg-reply__item-symbol {
|
|
@@ -113,6 +130,10 @@
|
|
|
113
130
|
position: absolute;
|
|
114
131
|
bottom: 0;
|
|
115
132
|
left: 0;
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
padding-right: 24px;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
116
137
|
width: 420px;
|
|
117
138
|
height: 50px;
|
|
118
139
|
background: #ffffff;
|
|
@@ -120,13 +141,14 @@
|
|
|
120
141
|
}
|
|
121
142
|
|
|
122
143
|
.titaui-user-message-msg-reply__footer-all {
|
|
123
|
-
|
|
124
|
-
margin: 16px 24px 16px 348px;
|
|
125
|
-
width: 48px;
|
|
126
|
-
height: 18px;
|
|
144
|
+
margin-left: auto;
|
|
127
145
|
font-size: 12px;
|
|
128
146
|
font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
|
|
129
147
|
font-weight: 400;
|
|
130
148
|
color: #2879ff;
|
|
131
149
|
line-height: 18px;
|
|
132
150
|
}
|
|
151
|
+
|
|
152
|
+
.titaui-user-message-msg-reply__footer-all:hover {
|
|
153
|
+
color: #2879ff;
|
|
154
|
+
}
|
|
@@ -1,98 +1,153 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _default2 = _interopRequireDefault(require("../../../../../../components/avatar/default"));
|
|
14
|
+
var _rcVirtualList = _interopRequireDefault(require("rc-virtual-list"));
|
|
15
15
|
|
|
16
16
|
var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/components/condition-render"));
|
|
17
17
|
|
|
18
|
-
var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/tooltip-text"));
|
|
19
|
-
|
|
20
18
|
var _empty = _interopRequireDefault(require("../empty"));
|
|
21
19
|
|
|
22
|
-
require("./
|
|
20
|
+
var _replyItem = _interopRequireDefault(require("./reply-item"));
|
|
21
|
+
|
|
22
|
+
var _request = require("../../../../request.apis");
|
|
23
23
|
|
|
24
24
|
var _constant = require("../../constant");
|
|
25
25
|
|
|
26
|
+
var _loading = _interopRequireDefault(require("../../images/loading.gif"));
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
26
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
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
|
+
|
|
28
56
|
var preCls = "titaui-user-message-msg-reply";
|
|
29
57
|
|
|
30
58
|
var Reply = function Reply(props) {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
59
|
+
var onItemClick = props.onItemClick;
|
|
60
|
+
|
|
61
|
+
var _useState = (0, _react.useState)([]),
|
|
62
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
63
|
+
replys = _useState2[0],
|
|
64
|
+
setReplys = _useState2[1];
|
|
65
|
+
|
|
66
|
+
var _useState3 = (0, _react.useState)(0),
|
|
67
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
68
|
+
replysData = _useState4[0],
|
|
69
|
+
setReplysData = _useState4[1];
|
|
70
|
+
|
|
71
|
+
var _useState5 = (0, _react.useState)(true),
|
|
72
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
73
|
+
isLoading = _useState6[0],
|
|
74
|
+
setIsLoading = _useState6[1];
|
|
75
|
+
|
|
76
|
+
var _useState7 = (0, _react.useState)(2),
|
|
77
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
78
|
+
pageNum = _useState8[0],
|
|
79
|
+
setPageNum = _useState8[1];
|
|
80
|
+
|
|
81
|
+
var _useState9 = (0, _react.useState)(false),
|
|
82
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
83
|
+
isRequest = _useState10[0],
|
|
84
|
+
setIsRequest = _useState10[1];
|
|
85
|
+
|
|
86
|
+
var onScrollBottom = function onScrollBottom(e) {
|
|
87
|
+
var _e$target = e.target,
|
|
88
|
+
offsetHeight = _e$target.offsetHeight,
|
|
89
|
+
scrollTop = _e$target.scrollTop,
|
|
90
|
+
scrollHeight = _e$target.scrollHeight;
|
|
91
|
+
|
|
92
|
+
if (offsetHeight + scrollTop >= scrollHeight - 100) {
|
|
93
|
+
if (!isRequest) {
|
|
94
|
+
setIsRequest(true);
|
|
95
|
+
|
|
96
|
+
if (pageNum <= Math.ceil(replysData / 10)) {
|
|
97
|
+
(0, _request.getReplys)(pageNum).then(function (res) {
|
|
98
|
+
if (res.Code === 1) {
|
|
99
|
+
setReplys([].concat(_toConsumableArray(replys), _toConsumableArray(res.Data.todos)));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
setIsRequest(false);
|
|
103
|
+
setPageNum(pageNum + 1);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
37
108
|
};
|
|
38
109
|
|
|
110
|
+
(0, _react.useEffect)(function () {
|
|
111
|
+
(0, _request.getReplys)(1).then(function (res) {
|
|
112
|
+
if (res.Code === 1) {
|
|
113
|
+
if (res.Data.total || res.Data.messages && res.Data.messages.length) {
|
|
114
|
+
setReplys(res.Data.messages);
|
|
115
|
+
setReplysData(res.Data.total);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
setIsLoading(false);
|
|
120
|
+
});
|
|
121
|
+
}, []);
|
|
39
122
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
40
|
-
condition:
|
|
41
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
123
|
+
condition: isLoading
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
125
|
+
src: _loading["default"],
|
|
126
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
127
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
128
|
+
condition: replys.length !== 0
|
|
45
129
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
46
130
|
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
}, "\u201C"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right"))
|
|
62
|
-
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
63
|
-
target: "_blank",
|
|
64
|
-
href: "".concat(_constant.apiServer, "/").concat(_constant.userId, "/ITalentHome#more/shareinfo?id=").concat(reply.feed.feedId),
|
|
65
|
-
onClick: handleReplyClick
|
|
66
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header"))
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-name"))
|
|
70
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
71
|
-
overlayClassName: "".concat(preCls, "__item-right-header-name-tooltip"),
|
|
72
|
-
text: reply.user.name,
|
|
73
|
-
maxWidth: 100,
|
|
74
|
-
mouseEnterDelay: 0.8
|
|
75
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-status"))
|
|
77
|
-
}, reply.content.trim().substr(0, 1) === "@" ? "@我" : "回复我")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
80
|
-
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
81
|
-
text: (0, _constant.htmlToText)(reply.content),
|
|
82
|
-
isPercent: true,
|
|
83
|
-
mouseEnterDelay: 0.8
|
|
84
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
-
className: (0, _classnames["default"])("".concat(preCls, "__item-right-time"))
|
|
86
|
-
}, reply.createDate))));
|
|
87
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
132
|
+
data: replys,
|
|
133
|
+
height: 386,
|
|
134
|
+
itemKey: "feedId",
|
|
135
|
+
onScroll: function onScroll(e) {
|
|
136
|
+
return onScrollBottom(e);
|
|
137
|
+
}
|
|
138
|
+
}, function (item) {
|
|
139
|
+
return /*#__PURE__*/_react["default"].createElement(_replyItem["default"], {
|
|
140
|
+
item: item,
|
|
141
|
+
onItemClick: onItemClick
|
|
142
|
+
});
|
|
143
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
144
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
89
145
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
90
146
|
target: "_blank",
|
|
91
|
-
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
147
|
+
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=1&isRead=1&autoApply=true"),
|
|
93
148
|
className: (0, _classnames["default"])("".concat(preCls, "__footer-all"))
|
|
94
|
-
}, "\u67E5\u770B\u5168\u90E8")))
|
|
95
|
-
condition: replys.
|
|
149
|
+
}, "\u67E5\u770B\u5168\u90E8"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
150
|
+
condition: isLoading === false && replys.length === 0
|
|
96
151
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
97
152
|
};
|
|
98
153
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _default2 = _interopRequireDefault(require("../../../../../../components/avatar/default"));
|
|
13
|
+
|
|
14
|
+
var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/tooltip-text"));
|
|
15
|
+
|
|
16
|
+
var _constant = require("../../constant");
|
|
17
|
+
|
|
18
|
+
var _utils = require("../../utils");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var preCls = "titaui-user-message-msg-reply";
|
|
25
|
+
|
|
26
|
+
var Reply = function Reply(props) {
|
|
27
|
+
var item = props.item,
|
|
28
|
+
onItemClick = props.onItemClick;
|
|
29
|
+
|
|
30
|
+
var handleReplyClick = function handleReplyClick() {
|
|
31
|
+
onItemClick && onItemClick(false);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
35
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item"))
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-photo"))
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
39
|
+
userId: item.feed.user.userId,
|
|
40
|
+
name: item.feed.user.name,
|
|
41
|
+
color: item.feed.user.avatar.color,
|
|
42
|
+
src: item.feed.user.avatar.big
|
|
43
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
44
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-symbol"))
|
|
45
|
+
}, "\u201C"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right"))
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
48
|
+
target: "_blank",
|
|
49
|
+
href: "".concat(_constant.apiServer, "/").concat(_constant.userId, "/ITalentHome#more/shareinfo?id=").concat(item.feed.feedId),
|
|
50
|
+
onClick: handleReplyClick
|
|
51
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header"))
|
|
53
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
54
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-name"))
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
56
|
+
overlayClassName: "".concat(preCls, "__item-right-header-name-tooltip"),
|
|
57
|
+
text: item.user.name,
|
|
58
|
+
maxWidth: 100,
|
|
59
|
+
mouseEnterDelay: 0.8
|
|
60
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-status"))
|
|
62
|
+
}, item.content.trim().substr(0, 1) === "@" ? "@我" : "回复我")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
65
|
+
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
66
|
+
text: (0, _utils.deleteText)((0, _utils.htmlToText)(item.content)),
|
|
67
|
+
isPercent: true,
|
|
68
|
+
mouseEnterDelay: 0.8
|
|
69
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item-right-time"))
|
|
71
|
+
}, item.createDate))));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var _default = Reply;
|
|
75
|
+
exports["default"] = _default;
|
|
@@ -16,15 +16,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
16
16
|
var prefixCls = "titaui-user-message-msg";
|
|
17
17
|
|
|
18
18
|
var TabTitle = function TabTitle(props) {
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var title = props.title,
|
|
20
|
+
tab = props.tab,
|
|
21
|
+
data = props.data;
|
|
21
22
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
23
|
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs-").concat(tab))
|
|
23
24
|
}, title, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
24
|
-
condition:
|
|
25
|
+
condition: data !== 0
|
|
25
26
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
26
27
|
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs-total"))
|
|
27
|
-
},
|
|
28
|
+
}, data >= 100 ? "99+" : data))));
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
var _default = TabTitle;
|