@titaui/pc 1.6.11 → 1.6.15
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/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -9
- package/lib/components/button/rect-btn/index.css +41 -8
- 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/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +2 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- 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 +1 -2
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +0 -1
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic.js +4 -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/util.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/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- 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 +286 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -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 -2
- package/lib/components/menus/components/flip-menu-card/index.js +17 -15
- 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/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/index.js +4 -3
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +50 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +8 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +65 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.css +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/loading-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +9 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +45 -18
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +102 -2
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -3
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +3 -2
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/inform/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +184 -22
- 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 +25 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +74 -21
- package/lib/components/nav-top/components/user-message/components/reply/index.css +27 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +129 -24
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +4 -8
- package/lib/components/nav-top/components/user-message/components/todos/index.css +25 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +147 -23
- package/lib/components/nav-top/components/user-message/constant.js +11 -1
- 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 +37 -0
- package/lib/components/nav-top/components/user-message/index.js +86 -72
- package/lib/components/nav-top/components/user-message/msg/index.js +17 -24
- package/lib/components/nav-top/components/user-message/utils.js +14 -0
- package/lib/components/nav-top/components/user-own-menu/index.js +3 -4
- package/lib/components/nav-top/components/user-own-menu/utils.js +77 -0
- package/lib/components/nav-top/constant.js +1 -1
- package/lib/components/nav-top/index.js +12 -12
- package/lib/components/nav-top/request.apis.js +52 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +163 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +42 -0
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/photo-card/components/card/index.css +78 -105
- package/lib/components/photo-card/components/card/index.js +133 -40
- 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 +12 -12
- package/lib/components/photo-card/index.js +17 -13
- 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/tree/index.js +0 -2
- 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/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +22 -2
- package/lib/pages/aha2021/index.css +16 -1
- package/lib/pages/aha2021/index.js +15 -5
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/{components/button/export-button/index.js → pages/new-okr-list/header/create-okr.js} +24 -44
- package/lib/pages/new-okr-list/header/depart-title.js +19 -0
- package/lib/pages/new-okr-list/header/filter.js +58 -0
- package/lib/pages/new-okr-list/header/index.css +31 -0
- package/lib/pages/new-okr-list/header/index.js +94 -0
- package/lib/pages/new-okr-list/header/user-title.js +19 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +127 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/{components/button/admin-button/drop-down-arrow.js → pages/new-okr-list/keyword-search/index.js} +54 -47
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +48 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +57 -0
- package/lib/pages/new-okr-list/theme.css +3 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/utils.js +11 -7
- package/lib/pages/personal-info/index.js +5 -3
- package/lib/utils/bs-global.js +16 -1
- 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
- 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,15 +1,17 @@
|
|
|
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
|
|
14
|
+
var _rcVirtualList = _interopRequireDefault(require("rc-virtual-list"));
|
|
13
15
|
|
|
14
16
|
var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/components/condition-render"));
|
|
15
17
|
|
|
@@ -19,26 +21,148 @@ var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/toolti
|
|
|
19
21
|
|
|
20
22
|
var _empty = _interopRequireDefault(require("../empty"));
|
|
21
23
|
|
|
24
|
+
var _request = require("../../../../request.apis");
|
|
25
|
+
|
|
26
|
+
var _loading = _interopRequireDefault(require("../../images/loading.gif"));
|
|
27
|
+
|
|
22
28
|
require("./index.css");
|
|
23
29
|
|
|
24
30
|
var _constant = require("../../constant");
|
|
25
31
|
|
|
26
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
33
|
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
39
|
+
|
|
40
|
+
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."); }
|
|
41
|
+
|
|
42
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
43
|
+
|
|
44
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
45
|
+
|
|
46
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
47
|
+
|
|
48
|
+
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."); }
|
|
49
|
+
|
|
50
|
+
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); }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
54
|
+
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; }
|
|
55
|
+
|
|
56
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
57
|
+
|
|
28
58
|
var preCls = "titaui-user-message-msg-todos";
|
|
29
59
|
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
60
|
+
var Todos = function Todos(props) {
|
|
61
|
+
var userInfo = props.userInfo,
|
|
62
|
+
onItemClick = props.onItemClick;
|
|
63
|
+
|
|
64
|
+
var _useState = (0, _react.useState)([]),
|
|
65
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
66
|
+
todos = _useState2[0],
|
|
67
|
+
setTodos = _useState2[1];
|
|
68
|
+
|
|
69
|
+
var _useState3 = (0, _react.useState)(0),
|
|
70
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
+
todosData = _useState4[0],
|
|
72
|
+
setTodosData = _useState4[1];
|
|
73
|
+
|
|
74
|
+
var _useState5 = (0, _react.useState)(true),
|
|
75
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
76
|
+
isLoading = _useState6[0],
|
|
77
|
+
setIsLoading = _useState6[1];
|
|
78
|
+
|
|
79
|
+
var _useState7 = (0, _react.useState)(1),
|
|
80
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
81
|
+
pageNum = _useState8[0],
|
|
82
|
+
setPageNum = _useState8[1];
|
|
83
|
+
|
|
84
|
+
var _useState9 = (0, _react.useState)(false),
|
|
85
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
86
|
+
isRequest = _useState10[0],
|
|
87
|
+
setIsRequest = _useState10[1];
|
|
88
|
+
|
|
89
|
+
var handleTodosClick = function handleTodosClick() {
|
|
90
|
+
onItemClick && onItemClick(false);
|
|
91
|
+
}; // const saveData = (data) => {
|
|
92
|
+
// setTodos(data.todos);
|
|
93
|
+
// setIsRequest(false);
|
|
94
|
+
// };
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
var onScrollBottom = function onScrollBottom(e) {
|
|
98
|
+
// setPageNum(pageNum + 1);
|
|
99
|
+
// const { offsetHeight, scrollTop, scrollHeight } = e.target;
|
|
100
|
+
// const url = `todo/Get?app_type=-1&app_id=-1&page_num=${pageNum}&page_size=20&status=1`;
|
|
101
|
+
// if (offsetHeight + scrollTop >= scrollHeight - 20) {
|
|
102
|
+
// if (!isRequest) {
|
|
103
|
+
// setIsRequest(true);
|
|
104
|
+
// if (pageNum <= Math.ceil(todosData / 20)) {
|
|
105
|
+
// handleScrollBottom(url, saveData);
|
|
106
|
+
// }
|
|
107
|
+
// }
|
|
108
|
+
// }
|
|
109
|
+
var _e$target = e.target,
|
|
110
|
+
offsetHeight = _e$target.offsetHeight,
|
|
111
|
+
scrollTop = _e$target.scrollTop,
|
|
112
|
+
scrollHeight = _e$target.scrollHeight;
|
|
113
|
+
|
|
114
|
+
if (offsetHeight + scrollTop >= scrollHeight - 20) {
|
|
115
|
+
setPageNum(pageNum + 1);
|
|
116
|
+
|
|
117
|
+
if (!isRequest) {
|
|
118
|
+
setIsRequest(true);
|
|
119
|
+
|
|
120
|
+
if (pageNum <= Math.ceil(todosData / 20)) {
|
|
121
|
+
(0, _request.getTodos)(pageNum).then(function (res) {
|
|
122
|
+
if (res.Code === 1) {
|
|
123
|
+
setTodos([].concat(_toConsumableArray(todos), _toConsumableArray(res.Data.todos)));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
setIsRequest(false);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
38
130
|
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
(0, _react.useEffect)(function () {
|
|
134
|
+
(0, _request.getTodos)(pageNum).then(function (res) {
|
|
135
|
+
if (res.Code === 1) {
|
|
136
|
+
if (res.Data.total || res.Data.todos && res.Data.todos.length) {
|
|
137
|
+
setTodos(res.Data.todos);
|
|
138
|
+
setTodosData(res.Data.total);
|
|
139
|
+
setIsLoading(false);
|
|
140
|
+
} else {
|
|
141
|
+
setIsLoading(false);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}, []);
|
|
146
|
+
console.log(todos);
|
|
147
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
148
|
+
condition: isLoading
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
150
|
+
src: _loading["default"],
|
|
151
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
152
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
153
|
+
condition: todos.length !== 0
|
|
39
154
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
40
155
|
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
41
|
-
},
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
157
|
+
data: todos,
|
|
158
|
+
height: 386,
|
|
159
|
+
itemKey: function itemKey(item) {
|
|
160
|
+
return item.objId;
|
|
161
|
+
},
|
|
162
|
+
onScroll: function onScroll(e) {
|
|
163
|
+
return onScrollBottom(e);
|
|
164
|
+
}
|
|
165
|
+
}, function (item, index) {
|
|
42
166
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
43
167
|
className: (0, _classnames["default"])("".concat(preCls, "__item")),
|
|
44
168
|
key: index
|
|
@@ -52,40 +176,40 @@ var Reply = function Reply(props) {
|
|
|
52
176
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
177
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right"))
|
|
54
178
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
55
|
-
href:
|
|
56
|
-
target: "_blank"
|
|
179
|
+
href: item.objUrl,
|
|
180
|
+
target: "_blank",
|
|
181
|
+
onClick: handleTodosClick
|
|
57
182
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
183
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header"))
|
|
59
184
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
60
185
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-name"))
|
|
61
186
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
62
187
|
overlayClassName: "".concat(preCls, "__item-right-header-name-tooltip"),
|
|
63
|
-
text:
|
|
188
|
+
text: userInfo.Name,
|
|
64
189
|
maxWidth: 100,
|
|
65
190
|
mouseEnterDelay: 0.8
|
|
66
191
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
192
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-header-status"))
|
|
68
|
-
},
|
|
193
|
+
}, item.subTitle)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
194
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
70
195
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
71
196
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
72
|
-
text: (0, _constant.htmlToText)(
|
|
197
|
+
text: (0, _constant.htmlToText)(item.content),
|
|
73
198
|
isPercent: true,
|
|
74
199
|
mouseEnterDelay: 0.8
|
|
75
200
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
201
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-time"))
|
|
77
|
-
},
|
|
78
|
-
}))
|
|
202
|
+
}, item.createDate))));
|
|
203
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
204
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
80
205
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
81
206
|
target: "_blank",
|
|
82
|
-
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=1&isRead=1&autoApply=true")
|
|
83
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
207
|
+
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=1&isRead=1&autoApply=true"),
|
|
84
208
|
className: (0, _classnames["default"])("".concat(preCls, "__footer-all"))
|
|
85
|
-
}, "\u67E5\u770B\u5168\u90E8")))
|
|
86
|
-
condition: todos.
|
|
209
|
+
}, "\u67E5\u770B\u5168\u90E8"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
210
|
+
condition: isLoading === false && todos.length === 0
|
|
87
211
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
88
212
|
};
|
|
89
213
|
|
|
90
|
-
var _default =
|
|
214
|
+
var _default = Todos;
|
|
91
215
|
exports["default"] = _default;
|
|
@@ -18,7 +18,7 @@ var popupAlign = {
|
|
|
18
18
|
|
|
19
19
|
exports.popupAlign = popupAlign;
|
|
20
20
|
var path = {
|
|
21
|
-
todoPath: "todo/Get?app_type=-1&app_id=-1&page_num=1&page_size=50&status=1
|
|
21
|
+
todoPath: "todo/Get?app_type=-1&app_id=-1&page_num=1&page_size=50&status=1",
|
|
22
22
|
remindPath: "remind/get",
|
|
23
23
|
informPath: "messages/Get?page_size=20&page_num=1&status=2&app_type=-1&app_id=-1",
|
|
24
24
|
replyPath: "comment/messages?page_num=1&page_size=20&status=2"
|
|
@@ -31,6 +31,16 @@ var htmlToText = function htmlToText(text) {
|
|
|
31
31
|
var div = document.createElement("div");
|
|
32
32
|
div.innerHTML = text;
|
|
33
33
|
text = div.innerText || div.textContent;
|
|
34
|
+
var last = text.trim().slice(-4);
|
|
35
|
+
|
|
36
|
+
if (last === "查看任务") {
|
|
37
|
+
text = text.trim().slice(0, -4);
|
|
38
|
+
} else if (last === "查看详情") {
|
|
39
|
+
text = text.trim().slice(0, -4);
|
|
40
|
+
} else {
|
|
41
|
+
text = text;
|
|
42
|
+
}
|
|
43
|
+
|
|
34
44
|
return text;
|
|
35
45
|
};
|
|
36
46
|
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
vertical-align: baseline;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.titaui-user-message-bell__msg img:hover {
|
|
13
|
+
transform-origin: 50% 0%;
|
|
14
|
+
animation: bell-shake 1s infinite ease;
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
.titaui-user-message-bell__msg-dot::after {
|
|
13
18
|
position: absolute;
|
|
14
19
|
content: "";
|
|
@@ -75,3 +80,35 @@
|
|
|
75
80
|
transform: scale(0, 0);
|
|
76
81
|
}
|
|
77
82
|
}
|
|
83
|
+
|
|
84
|
+
@keyframes bell-shake {
|
|
85
|
+
5%,
|
|
86
|
+
25%,
|
|
87
|
+
45% {
|
|
88
|
+
transform: rotate(8deg);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
0%,
|
|
92
|
+
10%,
|
|
93
|
+
30%,
|
|
94
|
+
50% {
|
|
95
|
+
transform: rotate(-8deg);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
15%,
|
|
99
|
+
35%,
|
|
100
|
+
55% {
|
|
101
|
+
transform: rotate(4deg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
20%,
|
|
105
|
+
40%,
|
|
106
|
+
60% {
|
|
107
|
+
transform: rotate(-4deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
65%,
|
|
111
|
+
100% {
|
|
112
|
+
transform: rotate(0deg);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -13,16 +13,20 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _popup = _interopRequireDefault(require("../../../popup"));
|
|
15
15
|
|
|
16
|
-
var _request = require("../../../../utils/request");
|
|
17
|
-
|
|
18
16
|
var _msg = _interopRequireDefault(require("./msg"));
|
|
19
17
|
|
|
20
18
|
var _bell = _interopRequireDefault(require("./images/bell.svg"));
|
|
21
19
|
|
|
22
|
-
require("
|
|
20
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
23
21
|
|
|
24
22
|
var _constant = require("./constant");
|
|
25
23
|
|
|
24
|
+
var _redPack = _interopRequireDefault(require("./components/red-pack"));
|
|
25
|
+
|
|
26
|
+
var _request = require("../../request.apis");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
26
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
31
|
|
|
28
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); }
|
|
@@ -46,101 +50,111 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
46
50
|
var prefixCls = "titaui-user-message-bell";
|
|
47
51
|
|
|
48
52
|
var UserMessage = function UserMessage() {
|
|
49
|
-
var _useState = (0, _react.useState)(
|
|
50
|
-
todos: [],
|
|
51
|
-
total: 0
|
|
52
|
-
}),
|
|
53
|
+
var _useState = (0, _react.useState)(0),
|
|
53
54
|
_useState2 = _slicedToArray(_useState, 2),
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
infosNum = _useState2[0],
|
|
56
|
+
setInfosNum = _useState2[1];
|
|
56
57
|
|
|
57
|
-
var _useState3 = (0, _react.useState)(
|
|
58
|
+
var _useState3 = (0, _react.useState)(0),
|
|
58
59
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
redPackNum = _useState4[0],
|
|
61
|
+
setRedPackNum = _useState4[1];
|
|
61
62
|
|
|
62
|
-
var _useState5 = (0, _react.useState)(
|
|
63
|
-
messags: [],
|
|
64
|
-
total: 0
|
|
65
|
-
}),
|
|
63
|
+
var _useState5 = (0, _react.useState)(false),
|
|
66
64
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
popupVisible = _useState6[0],
|
|
66
|
+
setPopupVisible = _useState6[1];
|
|
69
67
|
|
|
70
|
-
var _useState7 = (0, _react.useState)(
|
|
71
|
-
messages: [],
|
|
72
|
-
total: 0
|
|
73
|
-
}),
|
|
68
|
+
var _useState7 = (0, _react.useState)(0),
|
|
74
69
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
preData = _useState8[0],
|
|
71
|
+
setPreData = _useState8[1];
|
|
77
72
|
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
setAllData = _useState10[1]; //删除任务(提醒)
|
|
73
|
+
var handleShowInfos = function handleShowInfos() {
|
|
74
|
+
setPopupVisible(true);
|
|
75
|
+
};
|
|
82
76
|
|
|
77
|
+
var handleIntervalRequestMessageInfo = function handleIntervalRequestMessageInfo() {
|
|
78
|
+
(0, _request.getMessages)().then(function (res) {
|
|
79
|
+
if (res.Code === 1) {
|
|
80
|
+
var indicators = res.Data.indicators;
|
|
81
|
+
var total = 0;
|
|
82
|
+
indicators.map(function (item) {
|
|
83
|
+
switch (item.type) {
|
|
84
|
+
case "Tx":
|
|
85
|
+
total += item.value;
|
|
83
86
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return remind.id !== id;
|
|
87
|
-
});
|
|
88
|
-
setReminds(deletereminds);
|
|
89
|
-
};
|
|
87
|
+
case "feedAboutMeIndicator":
|
|
88
|
+
total += item.value;
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
};
|
|
90
|
+
case "todoIndicator":
|
|
91
|
+
total += item.value;
|
|
94
92
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
93
|
+
case "messageIndicator":
|
|
94
|
+
total += item.value;
|
|
95
|
+
|
|
96
|
+
default:
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
setPreData(infosNum);
|
|
101
|
+
setInfosNum(total); // 判断是企业勋章
|
|
102
|
+
|
|
103
|
+
var enterpriseMedalMsg = indicators.filter(function (item) {
|
|
104
|
+
return item.messageType === 1 && item.indicatorType === 1969002;
|
|
105
|
+
}); // @ts-ignore
|
|
106
|
+
|
|
107
|
+
enterpriseMedalMsg.length > 0 && window.util.upaasEnterpriseMedal(); // upaas 勋章
|
|
108
|
+
|
|
109
|
+
var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail"); // @ts-ignore
|
|
110
|
+
|
|
111
|
+
medalDetail && window.util.upaasMedal()(medalDetail); // 红包
|
|
112
|
+
|
|
113
|
+
var mRedPackIndicator = indicators.filter(function (item) {
|
|
114
|
+
return item.type === "mRedPackIndicator";
|
|
115
|
+
});
|
|
116
|
+
mRedPackIndicator.length > 0 && setRedPackNum(mRedPackIndicator.value); // 祝福,拆礼物
|
|
117
|
+
|
|
118
|
+
var blessIndicator = indicators.filter(function (item) {
|
|
119
|
+
return item.type === "mZhufu";
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
if (blessIndicator.length === 1) {
|
|
123
|
+
var userInfo = (0, _bsGlobal.getUserInfo)();
|
|
124
|
+
var options = {
|
|
125
|
+
needMask: true,
|
|
126
|
+
toUserId: userInfo.Id,
|
|
127
|
+
blessingTime: blessIndicator[0]["latestUpdateDate"]
|
|
128
|
+
}; // @ts-ignore
|
|
129
|
+
|
|
130
|
+
window.util.openGift(options);
|
|
114
131
|
}
|
|
115
132
|
}
|
|
116
133
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
setReminds(res.Data);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}, []);
|
|
134
|
+
};
|
|
135
|
+
|
|
123
136
|
(0, _react.useEffect)(function () {
|
|
124
|
-
|
|
125
|
-
|
|
137
|
+
setPreData(infosNum);
|
|
138
|
+
handleIntervalRequestMessageInfo();
|
|
139
|
+
setInterval(handleIntervalRequestMessageInfo, 15000);
|
|
140
|
+
}, []);
|
|
126
141
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
127
142
|
popup: /*#__PURE__*/_react["default"].createElement(_msg["default"], {
|
|
128
|
-
|
|
129
|
-
informs: informs,
|
|
130
|
-
replys: replys,
|
|
131
|
-
reminds: reminds,
|
|
132
|
-
deleteReminds: deleteReminds,
|
|
133
|
-
deleteRemindsAll: deleteRemindsAll
|
|
143
|
+
onItemClick: setPopupVisible
|
|
134
144
|
}),
|
|
145
|
+
popupVisible: popupVisible,
|
|
135
146
|
popupTransitionName: "tita-user-message-popup-right-top",
|
|
136
147
|
popupAlign: _constant.popupAlign,
|
|
137
148
|
mask: false,
|
|
138
149
|
destroyPopupOnHide: false
|
|
139
150
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
|
-
className: (0, _classnames["default"])("".concat(prefixCls, "__msg"), _defineProperty({}, "".concat(prefixCls, "__msg-dot"),
|
|
151
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__msg"), _defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum >= preData)),
|
|
152
|
+
onClick: handleShowInfos
|
|
141
153
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
142
154
|
src: _bell["default"]
|
|
143
|
-
})))
|
|
155
|
+
}))), /*#__PURE__*/_react["default"].createElement(_redPack["default"], {
|
|
156
|
+
redPackNum: redPackNum
|
|
157
|
+
}));
|
|
144
158
|
};
|
|
145
159
|
|
|
146
160
|
var _default = UserMessage;
|
|
@@ -37,59 +37,52 @@ var prefixCls = "titaui-user-message-msg";
|
|
|
37
37
|
var userInfo = (0, _bsGlobal.getUserInfo)();
|
|
38
38
|
|
|
39
39
|
var UserMessage = function UserMessage(props) {
|
|
40
|
-
var
|
|
41
|
-
reminds = props.reminds,
|
|
42
|
-
informs = props.informs,
|
|
43
|
-
replys = props.replys,
|
|
44
|
-
deleteRemindsAll = props.deleteRemindsAll,
|
|
45
|
-
deleteReminds = props.deleteReminds;
|
|
40
|
+
var onItemClick = props.onItemClick;
|
|
46
41
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
42
|
className: (0, _classnames["default"])("".concat(prefixCls))
|
|
48
43
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
44
|
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs"))
|
|
50
45
|
}, /*#__PURE__*/_react["default"].createElement(_tabs["default"], {
|
|
51
|
-
|
|
46
|
+
destroyInactiveTabPane: true,
|
|
47
|
+
defaultActiveKey: "todos",
|
|
52
48
|
animated: {
|
|
53
49
|
inkBar: true,
|
|
54
50
|
tabPane: false
|
|
55
51
|
}
|
|
56
52
|
}, /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
57
53
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
title: "\u5F85\u529E",
|
|
55
|
+
tab: "todos"
|
|
60
56
|
}),
|
|
61
57
|
key: "todos"
|
|
62
58
|
}, /*#__PURE__*/_react["default"].createElement(_todos["default"], {
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
userInfo: userInfo,
|
|
60
|
+
onItemClick: onItemClick
|
|
65
61
|
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
66
62
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
title: "\u901A\u77E5",
|
|
64
|
+
tab: "informs"
|
|
69
65
|
}),
|
|
70
66
|
key: "informs"
|
|
71
67
|
}, /*#__PURE__*/_react["default"].createElement(_inform["default"], {
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
userInfo: userInfo,
|
|
69
|
+
onItemClick: onItemClick
|
|
74
70
|
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
75
71
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
title: "@\u4E0E\u56DE\u590D",
|
|
73
|
+
tab: "replys"
|
|
78
74
|
}),
|
|
79
75
|
key: "replys"
|
|
80
76
|
}, /*#__PURE__*/_react["default"].createElement(_reply["default"], {
|
|
81
|
-
|
|
82
|
-
userInfo: userInfo
|
|
77
|
+
onItemClick: onItemClick
|
|
83
78
|
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
84
79
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
title: "\u63D0\u9192",
|
|
81
|
+
tab: "reminds"
|
|
87
82
|
}),
|
|
88
83
|
key: "reminds"
|
|
89
84
|
}, /*#__PURE__*/_react["default"].createElement(_remind["default"], {
|
|
90
|
-
|
|
91
|
-
deleteReminds: deleteReminds,
|
|
92
|
-
deleteRemindsAll: deleteRemindsAll
|
|
85
|
+
onItemClick: onItemClick
|
|
93
86
|
})))));
|
|
94
87
|
};
|
|
95
88
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.handleScrollBottom = void 0;
|
|
7
|
+
|
|
8
|
+
var _request = require("../../request.apis");
|
|
9
|
+
|
|
10
|
+
var handleScrollBottom = function handleScrollBottom(url, saveData) {
|
|
11
|
+
(0, _request.getData)(url, saveData);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.handleScrollBottom = handleScrollBottom;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _utils = require("
|
|
14
|
+
var _utils = require("./utils");
|
|
15
15
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
|
|
@@ -56,10 +56,9 @@ var User = function User() {
|
|
|
56
56
|
src: item.url,
|
|
57
57
|
className: (0, _classnames["default"])("".concat(preCls, "__card-item-img"))
|
|
58
58
|
}), /*#__PURE__*/_react["default"].createElement("a", {
|
|
59
|
-
href: item.objUrl
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
|
+
href: item.objUrl,
|
|
61
60
|
className: (0, _classnames["default"])("".concat(preCls, "__card-item-title"))
|
|
62
|
-
}, item.title))
|
|
61
|
+
}, item.title));
|
|
63
62
|
}));
|
|
64
63
|
})));
|
|
65
64
|
};
|