@titaui/pc 1.6.14 → 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/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/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +2 -1
- 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/index.css +13 -13
- 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/menus/components/flip-menu-card/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +6 -2
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +15 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +1 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +7 -3
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +43 -0
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -2
- package/lib/components/menus/export-modules/okr-menus/index.js +27 -3
- 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/user-message/components/inform/index.css +20 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +111 -13
- package/lib/components/nav-top/components/user-message/components/remind/index.css +17 -6
- package/lib/components/nav-top/components/user-message/components/remind/index.js +57 -11
- package/lib/components/nav-top/components/user-message/components/reply/index.css +19 -5
- package/lib/components/nav-top/components/user-message/components/reply/index.js +110 -12
- 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 +19 -5
- package/lib/components/nav-top/components/user-message/components/todos/index.js +99 -21
- 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/index.css +37 -0
- package/lib/components/nav-top/components/user-message/index.js +32 -7
- package/lib/components/nav-top/components/user-message/msg/index.js +14 -93
- 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/request.apis.js +29 -3
- package/lib/components/nav-top/utils.js +1 -72
- 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/tree/index.js +0 -2
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +10 -2
- package/lib/pages/aha2021/index.css +9 -1
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- 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/pages/new-okr-list/keyword-search/index.js +100 -0
- 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/package.json +2 -1
- 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
|
@@ -1,11 +1,13 @@
|
|
|
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
|
|
|
@@ -17,21 +19,58 @@ var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/co
|
|
|
17
19
|
|
|
18
20
|
var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/tooltip-text"));
|
|
19
21
|
|
|
22
|
+
var _request = require("../../../../request.apis");
|
|
23
|
+
|
|
20
24
|
var _empty = _interopRequireDefault(require("../empty"));
|
|
21
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-inform";
|
|
29
59
|
|
|
30
60
|
var Inform = function Inform(props) {
|
|
31
|
-
var
|
|
32
|
-
userInfo = props.userInfo,
|
|
61
|
+
var userInfo = props.userInfo,
|
|
33
62
|
onItemClick = props.onItemClick;
|
|
34
63
|
|
|
64
|
+
var _useState = (0, _react.useState)([]),
|
|
65
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
66
|
+
informs = _useState2[0],
|
|
67
|
+
setInforms = _useState2[1];
|
|
68
|
+
|
|
69
|
+
var _useState3 = (0, _react.useState)(true),
|
|
70
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
+
isLoading = _useState4[0],
|
|
72
|
+
setIsLoading = _useState4[1];
|
|
73
|
+
|
|
35
74
|
var handleItemClick = function handleItemClick(e, data) {
|
|
36
75
|
onItemClick && onItemClick(false);
|
|
37
76
|
var isMessageMerging = data.messageType == 13018 || data.messageType == 30362 || data.messageType == 131;
|
|
@@ -92,15 +131,75 @@ var Inform = function Inform(props) {
|
|
|
92
131
|
Talent.app.vent.trigger("openReactScreenPush", options);
|
|
93
132
|
};
|
|
94
133
|
|
|
134
|
+
var _useState5 = (0, _react.useState)(1),
|
|
135
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
136
|
+
pageNum = _useState6[0],
|
|
137
|
+
setPageNum = _useState6[1];
|
|
138
|
+
|
|
139
|
+
var _useState7 = (0, _react.useState)(false),
|
|
140
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
141
|
+
isRequest = _useState8[0],
|
|
142
|
+
setIsRequest = _useState8[1];
|
|
143
|
+
|
|
144
|
+
var _useState9 = (0, _react.useState)(0),
|
|
145
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
146
|
+
replysData = _useState10[0],
|
|
147
|
+
setReplysData = _useState10[1];
|
|
148
|
+
|
|
149
|
+
var onScrollBottom = function onScrollBottom(e) {
|
|
150
|
+
var _e$target = e.target,
|
|
151
|
+
offsetHeight = _e$target.offsetHeight,
|
|
152
|
+
scrollTop = _e$target.scrollTop,
|
|
153
|
+
scrollHeight = _e$target.scrollHeight;
|
|
154
|
+
|
|
155
|
+
if (offsetHeight + scrollTop >= scrollHeight - 100) {
|
|
156
|
+
setPageNum(pageNum + 1);
|
|
157
|
+
|
|
158
|
+
if (!isRequest) {
|
|
159
|
+
setIsRequest(true);
|
|
160
|
+
|
|
161
|
+
if (pageNum <= Math.ceil(replysData / 20)) {
|
|
162
|
+
(0, _request.getInforms)(pageNum).then(function (res) {
|
|
163
|
+
if (res.Code === 1) {
|
|
164
|
+
setInforms([].concat(_toConsumableArray(informs), _toConsumableArray(res.Data.todos)));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
setIsRequest(false);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
(0, _react.useEffect)(function () {
|
|
175
|
+
(0, _request.getInforms)(1).then(function (res) {
|
|
176
|
+
if (res.Code === 1) {
|
|
177
|
+
if (res.Data.total || res.Data.messags && res.Data.messags.length) {
|
|
178
|
+
setInforms(res.Data.messags);
|
|
179
|
+
setReplysData(res.Data.total);
|
|
180
|
+
setIsLoading(false);
|
|
181
|
+
} else {
|
|
182
|
+
setIsLoading(false);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}, []);
|
|
95
187
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
96
|
-
condition:
|
|
97
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
188
|
+
condition: isLoading
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
190
|
+
src: _loading["default"],
|
|
191
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
192
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
193
|
+
condition: informs.length !== 0
|
|
194
|
+
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
98
195
|
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
99
196
|
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
100
|
-
data: informs
|
|
197
|
+
data: informs,
|
|
101
198
|
height: 386,
|
|
102
|
-
|
|
103
|
-
|
|
199
|
+
itemKey: "messageId",
|
|
200
|
+
onScroll: function onScroll(e) {
|
|
201
|
+
return onScrollBottom(e);
|
|
202
|
+
}
|
|
104
203
|
}, function (item) {
|
|
105
204
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
106
205
|
className: (0, _classnames["default"])("".concat(preCls, "__item")),
|
|
@@ -130,7 +229,7 @@ var Inform = function Inform(props) {
|
|
|
130
229
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
131
230
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
132
231
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
133
|
-
text: (0, _constant.htmlToText)(item.content)
|
|
232
|
+
text: (0, _constant.htmlToText)(item.content),
|
|
134
233
|
isPercent: true,
|
|
135
234
|
mouseEnterDelay: 0.8
|
|
136
235
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -140,11 +239,10 @@ var Inform = function Inform(props) {
|
|
|
140
239
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
141
240
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
142
241
|
target: "_blank",
|
|
143
|
-
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=
|
|
144
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
242
|
+
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=1&isRead=1&autoApply=true"),
|
|
145
243
|
className: (0, _classnames["default"])("".concat(preCls, "__footer-all"))
|
|
146
|
-
}, "\u67E5\u770B\u5168\u90E8")))
|
|
147
|
-
condition: informs.
|
|
244
|
+
}, "\u67E5\u770B\u5168\u90E8"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
245
|
+
condition: isLoading === false && informs.length === 0
|
|
148
246
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
149
247
|
};
|
|
150
248
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
height: 60px;
|
|
10
10
|
border-radius: 12px;
|
|
11
|
-
margin-bottom:
|
|
12
|
-
margin:
|
|
11
|
+
margin-bottom: 4px;
|
|
12
|
+
margin-left: 12px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.titaui-user-message-msg-remind__item:first-of-type {
|
|
@@ -114,6 +114,10 @@
|
|
|
114
114
|
position: absolute;
|
|
115
115
|
bottom: 0;
|
|
116
116
|
left: 0;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
padding-right: 24px;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
117
121
|
width: 420px;
|
|
118
122
|
height: 50px;
|
|
119
123
|
background: #ffffff;
|
|
@@ -121,10 +125,7 @@
|
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
.titaui-user-message-msg-remind__footer-all {
|
|
124
|
-
|
|
125
|
-
margin: 16px 24px 16px 348px;
|
|
126
|
-
width: 48px;
|
|
127
|
-
height: 18px;
|
|
128
|
+
margin-left: auto;
|
|
128
129
|
font-size: 12px;
|
|
129
130
|
font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
|
|
130
131
|
font-weight: 400;
|
|
@@ -163,3 +164,13 @@
|
|
|
163
164
|
margin-left: -88px;
|
|
164
165
|
cursor: pointer;
|
|
165
166
|
}
|
|
167
|
+
|
|
168
|
+
.titaui-user-message-msg-remind__loading {
|
|
169
|
+
width: 80px;
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: 0;
|
|
172
|
+
bottom: 0;
|
|
173
|
+
left: 0;
|
|
174
|
+
right: 0;
|
|
175
|
+
margin: auto;
|
|
176
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
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
|
|
|
@@ -17,23 +19,50 @@ var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/co
|
|
|
17
19
|
|
|
18
20
|
var _request = require("../../../../../../utils/request");
|
|
19
21
|
|
|
22
|
+
var _request2 = require("../../../../request.apis");
|
|
23
|
+
|
|
20
24
|
var _empty = _interopRequireDefault(require("../empty"));
|
|
21
25
|
|
|
22
26
|
var _appTixing = _interopRequireDefault(require("../../images/app-tixing.svg"));
|
|
23
27
|
|
|
28
|
+
var _loading = _interopRequireDefault(require("../../images/loading.gif"));
|
|
29
|
+
|
|
24
30
|
require("./index.css");
|
|
25
31
|
|
|
26
32
|
var _constant = require("../../constant");
|
|
27
33
|
|
|
28
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
35
|
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
+
|
|
42
|
+
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."); }
|
|
43
|
+
|
|
44
|
+
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); }
|
|
45
|
+
|
|
46
|
+
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; }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
+
|
|
30
52
|
var preCls = "titaui-user-message-msg-remind";
|
|
31
53
|
|
|
32
54
|
var Remind = function Remind(props) {
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
55
|
+
var onItemClick = props.onItemClick;
|
|
56
|
+
|
|
57
|
+
var _useState = (0, _react.useState)([]),
|
|
58
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
+
reminds = _useState2[0],
|
|
60
|
+
setReminds = _useState2[1];
|
|
61
|
+
|
|
62
|
+
var _useState3 = (0, _react.useState)(true),
|
|
63
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
64
|
+
isLoading = _useState4[0],
|
|
65
|
+
setIsLoading = _useState4[1];
|
|
37
66
|
|
|
38
67
|
var handleRemindClick = function handleRemindClick() {
|
|
39
68
|
onItemClick && onItemClick(false);
|
|
@@ -46,7 +75,10 @@ var Remind = function Remind(props) {
|
|
|
46
75
|
};
|
|
47
76
|
|
|
48
77
|
var handleDelete = function handleDelete(id) {
|
|
49
|
-
|
|
78
|
+
var deletereminds = reminds.filter(function (remind) {
|
|
79
|
+
return remind.id !== id;
|
|
80
|
+
});
|
|
81
|
+
setReminds(deletereminds);
|
|
50
82
|
};
|
|
51
83
|
|
|
52
84
|
var deleteAll = function deleteAll(reminds) {
|
|
@@ -56,17 +88,31 @@ var Remind = function Remind(props) {
|
|
|
56
88
|
};
|
|
57
89
|
|
|
58
90
|
var handleDeleteAll = function handleDeleteAll() {
|
|
59
|
-
|
|
91
|
+
setReminds([]);
|
|
60
92
|
};
|
|
61
93
|
|
|
94
|
+
(0, _react.useEffect)(function () {
|
|
95
|
+
(0, _request2.getReminds)().then(function (res) {
|
|
96
|
+
if (res.Data.length) {
|
|
97
|
+
setReminds(res.Data);
|
|
98
|
+
setIsLoading(false);
|
|
99
|
+
} else {
|
|
100
|
+
setIsLoading(false);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}, []);
|
|
62
104
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
105
|
+
condition: isLoading
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
107
|
+
src: _loading["default"],
|
|
108
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
109
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
63
110
|
condition: reminds.length !== 0
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
111
|
+
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
65
112
|
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
66
113
|
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
67
114
|
data: reminds,
|
|
68
115
|
height: 386,
|
|
69
|
-
itemHeight: 82,
|
|
70
116
|
itemKey: "id"
|
|
71
117
|
}, function (item) {
|
|
72
118
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
@@ -112,8 +158,8 @@ var Remind = function Remind(props) {
|
|
|
112
158
|
onClick: function onClick() {
|
|
113
159
|
return deleteAll(reminds);
|
|
114
160
|
}
|
|
115
|
-
}, "\u5168\u90E8\u5FFD\u7565")))
|
|
116
|
-
condition: reminds.length === 0
|
|
161
|
+
}, "\u5168\u90E8\u5FFD\u7565"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
162
|
+
condition: isLoading === false && reminds.length === 0
|
|
117
163
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
118
164
|
};
|
|
119
165
|
|
|
@@ -1,3 +1,13 @@
|
|
|
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
13
|
}
|
|
@@ -10,7 +20,6 @@
|
|
|
10
20
|
border-radius: 12px;
|
|
11
21
|
margin-bottom: 4px;
|
|
12
22
|
margin-left: 12px;
|
|
13
|
-
margin-right: 12px;
|
|
14
23
|
}
|
|
15
24
|
|
|
16
25
|
.titaui-user-message-msg-reply__item:first-of-type {
|
|
@@ -120,6 +129,10 @@
|
|
|
120
129
|
position: absolute;
|
|
121
130
|
bottom: 0;
|
|
122
131
|
left: 0;
|
|
132
|
+
box-sizing: border-box;
|
|
133
|
+
padding-right: 24px;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
123
136
|
width: 420px;
|
|
124
137
|
height: 50px;
|
|
125
138
|
background: #ffffff;
|
|
@@ -127,13 +140,14 @@
|
|
|
127
140
|
}
|
|
128
141
|
|
|
129
142
|
.titaui-user-message-msg-reply__footer-all {
|
|
130
|
-
|
|
131
|
-
margin: 16px 24px 16px 348px;
|
|
132
|
-
width: 48px;
|
|
133
|
-
height: 18px;
|
|
143
|
+
margin-left: auto;
|
|
134
144
|
font-size: 12px;
|
|
135
145
|
font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
|
|
136
146
|
font-weight: 400;
|
|
137
147
|
color: #2879ff;
|
|
138
148
|
line-height: 18px;
|
|
139
149
|
}
|
|
150
|
+
|
|
151
|
+
.titaui-user-message-msg-reply__footer-all:hover {
|
|
152
|
+
color: #2879ff;
|
|
153
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
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
|
|
|
@@ -19,31 +21,128 @@ 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-reply";
|
|
29
59
|
|
|
30
60
|
var Reply = function Reply(props) {
|
|
31
|
-
var
|
|
32
|
-
|
|
61
|
+
var onItemClick = props.onItemClick;
|
|
62
|
+
|
|
63
|
+
var _useState = (0, _react.useState)([]),
|
|
64
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
65
|
+
replys = _useState2[0],
|
|
66
|
+
setReplys = _useState2[1];
|
|
67
|
+
|
|
68
|
+
var _useState3 = (0, _react.useState)(0),
|
|
69
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
70
|
+
replysData = _useState4[0],
|
|
71
|
+
setReplysData = _useState4[1];
|
|
72
|
+
|
|
73
|
+
var _useState5 = (0, _react.useState)(true),
|
|
74
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
75
|
+
isLoading = _useState6[0],
|
|
76
|
+
setIsLoading = _useState6[1];
|
|
77
|
+
|
|
78
|
+
var _useState7 = (0, _react.useState)(1),
|
|
79
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
80
|
+
pageNum = _useState8[0],
|
|
81
|
+
setPageNum = _useState8[1];
|
|
82
|
+
|
|
83
|
+
var _useState9 = (0, _react.useState)(false),
|
|
84
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
85
|
+
isRequest = _useState10[0],
|
|
86
|
+
setIsRequest = _useState10[1];
|
|
33
87
|
|
|
34
88
|
var handleReplyClick = function handleReplyClick() {
|
|
35
89
|
onItemClick && onItemClick(false);
|
|
36
90
|
};
|
|
37
91
|
|
|
92
|
+
var onScrollBottom = function onScrollBottom(e) {
|
|
93
|
+
var _e$target = e.target,
|
|
94
|
+
offsetHeight = _e$target.offsetHeight,
|
|
95
|
+
scrollTop = _e$target.scrollTop,
|
|
96
|
+
scrollHeight = _e$target.scrollHeight;
|
|
97
|
+
|
|
98
|
+
if (offsetHeight + scrollTop >= scrollHeight - 100) {
|
|
99
|
+
setPageNum(pageNum + 1);
|
|
100
|
+
|
|
101
|
+
if (!isRequest) {
|
|
102
|
+
setIsRequest(true);
|
|
103
|
+
|
|
104
|
+
if (pageNum <= Math.ceil(replysData / 20)) {
|
|
105
|
+
(0, _request.getReplys)(pageNum).then(function (res) {
|
|
106
|
+
if (res.Code === 1) {
|
|
107
|
+
setReplys([].concat(_toConsumableArray(replys), _toConsumableArray(res.Data.todos)));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
setIsRequest(false);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
(0, _react.useEffect)(function () {
|
|
118
|
+
(0, _request.getReplys)(1).then(function (res) {
|
|
119
|
+
if (res.Code === 1) {
|
|
120
|
+
if (res.Data.total || res.Data.messages && res.Data.messages.length) {
|
|
121
|
+
setReplys(res.Data.messages);
|
|
122
|
+
setReplysData(res.Data.total);
|
|
123
|
+
setIsLoading(false);
|
|
124
|
+
} else {
|
|
125
|
+
setIsLoading(false);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}, []);
|
|
38
130
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
39
|
-
condition:
|
|
40
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
131
|
+
condition: isLoading
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
133
|
+
src: _loading["default"],
|
|
134
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
135
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
136
|
+
condition: replys.length !== 0
|
|
137
|
+
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
41
138
|
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
42
139
|
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
43
|
-
data: replys
|
|
140
|
+
data: replys,
|
|
44
141
|
height: 386,
|
|
45
|
-
|
|
46
|
-
|
|
142
|
+
itemKey: "feedId",
|
|
143
|
+
onScroll: function onScroll(e) {
|
|
144
|
+
return onScrollBottom(e);
|
|
145
|
+
}
|
|
47
146
|
}, function (item, index) {
|
|
48
147
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
49
148
|
className: (0, _classnames["default"])("".concat(preCls, "__item")),
|
|
@@ -88,11 +187,10 @@ var Reply = function Reply(props) {
|
|
|
88
187
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
89
188
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
90
189
|
target: "_blank",
|
|
91
|
-
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
190
|
+
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=1&isRead=1&autoApply=true"),
|
|
93
191
|
className: (0, _classnames["default"])("".concat(preCls, "__footer-all"))
|
|
94
|
-
}, "\u67E5\u770B\u5168\u90E8")))
|
|
95
|
-
condition: replys.
|
|
192
|
+
}, "\u67E5\u770B\u5168\u90E8"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
193
|
+
condition: isLoading === false && replys.length === 0
|
|
96
194
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
97
195
|
};
|
|
98
196
|
|
|
@@ -9,22 +9,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
-
var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/components/condition-render"));
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
13
|
|
|
16
14
|
var prefixCls = "titaui-user-message-msg";
|
|
17
15
|
|
|
18
16
|
var TabTitle = function TabTitle(props) {
|
|
19
|
-
var
|
|
20
|
-
|
|
17
|
+
var title = props.title,
|
|
18
|
+
tab = props.tab;
|
|
21
19
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
20
|
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs-").concat(tab))
|
|
23
|
-
}, title, /*#__PURE__*/_react["default"].createElement(
|
|
24
|
-
condition: tab.total !== 0 && tab.length !== 0
|
|
25
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
21
|
+
}, title, /*#__PURE__*/_react["default"].createElement("span", {
|
|
26
22
|
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs-total"))
|
|
27
|
-
},
|
|
23
|
+
}, "12")));
|
|
28
24
|
};
|
|
29
25
|
|
|
30
26
|
var _default = TabTitle;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
.titaui-user-message-msg-todos__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-todos__items {
|
|
2
12
|
width: 420px;
|
|
3
13
|
}
|
|
@@ -10,7 +20,6 @@
|
|
|
10
20
|
border-radius: 12px;
|
|
11
21
|
margin-bottom: 4px;
|
|
12
22
|
margin-left: 12px;
|
|
13
|
-
margin-right: 12px;
|
|
14
23
|
}
|
|
15
24
|
|
|
16
25
|
.titaui-user-message-msg-todos__item:first-of-type {
|
|
@@ -109,6 +118,10 @@
|
|
|
109
118
|
position: absolute;
|
|
110
119
|
bottom: 0;
|
|
111
120
|
left: 0;
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
padding-right: 24px;
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
112
125
|
width: 420px;
|
|
113
126
|
height: 50px;
|
|
114
127
|
background: #ffffff;
|
|
@@ -116,13 +129,14 @@
|
|
|
116
129
|
}
|
|
117
130
|
|
|
118
131
|
.titaui-user-message-msg-todos__footer-all {
|
|
119
|
-
|
|
120
|
-
margin: 16px 24px 16px 348px;
|
|
121
|
-
width: 48px;
|
|
122
|
-
height: 18px;
|
|
132
|
+
margin-left: auto;
|
|
123
133
|
font-size: 12px;
|
|
124
134
|
font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
|
|
125
135
|
font-weight: 400;
|
|
126
136
|
color: #2879ff;
|
|
127
137
|
line-height: 18px;
|
|
128
138
|
}
|
|
139
|
+
|
|
140
|
+
.titaui-user-message-msg-todos__footer-all:hover {
|
|
141
|
+
color: #2879ff;
|
|
142
|
+
}
|