@titaui/pc 1.11.27-beta.8 → 1.11.29
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/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- package/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/icon-btn/index.js +17 -8
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +13 -19
- package/lib/components/change-okr-modal/Item.js +14 -14
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/create-okr-modal/index.js +1 -3
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/drop-selector/index.js +25 -10
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/constant.js +33 -32
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +13 -13
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/index.js +50 -32
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +7 -15
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +77 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/e-priority/index.js +8 -8
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/form/form-fields/date/index.css +24 -0
- package/lib/components/form/form-fields/date/index.js +102 -0
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +23 -3
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/form/index.js +10 -3
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +5 -5
- package/lib/components/icon-button-list/index.js +3 -3
- package/lib/components/img-viewer/index.css +3 -3
- package/lib/components/img-viewer/index.js +11 -11
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +128 -0
- package/lib/components/menus/index.js +11 -5
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/index.js +4 -8
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +10 -14
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/actions.js +23 -23
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +21 -40
- package/lib/components/okr-detail/okr-list/index.js +8 -11
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +6 -6
- package/lib/components/okr-flow/child-node/work-node.js +21 -21
- package/lib/components/okr-flow/export-modal/index.js +33 -19
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -14
- package/lib/components/okr-flow/okr-map/index.js +5 -5
- package/lib/components/okr-flow/request-apis.js +4 -4
- package/lib/components/okr-flow/root-node/index.js +25 -24
- package/lib/components/okr-flow/utils/index.js +5 -5
- package/lib/components/okr-flow/utils/tree-handler.js +17 -17
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +3 -3
- package/lib/components/period-selector/index.js +11 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +118 -0
- package/lib/components/picker/components/panels/date-panel/date-head.js +87 -0
- package/lib/components/picker/components/panels/date-panel/index.css +14 -0
- package/lib/components/picker/components/panels/date-panel/index.js +49 -0
- package/lib/components/picker/components/panels/month-panel/index.css +27 -0
- package/lib/components/picker/components/panels/month-panel/index.js +63 -0
- package/lib/components/picker/components/panels/month-panel/month-body.js +89 -0
- package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
- package/lib/components/picker/components/panels/panel-body/index.js +53 -0
- package/lib/components/picker/components/panels/panel-head/index.js +48 -0
- package/lib/components/picker/components/panels/year-panel/index.css +23 -0
- package/lib/components/picker/components/panels/year-panel/index.js +65 -0
- package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
- package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
- package/lib/components/picker/components/picker-trigger/index.css +57 -0
- package/lib/components/picker/components/picker-trigger/index.js +94 -0
- package/lib/components/picker/context.js +15 -0
- package/lib/components/picker/index.css +121 -0
- package/lib/components/picker/index.js +13 -0
- package/lib/components/picker/picker-panels.js +182 -0
- package/lib/components/picker/picker.js +132 -0
- package/lib/components/picker/type.js +5 -0
- package/lib/components/picker/utils.js +28 -0
- package/lib/components/popup/index.js +4 -4
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +9 -9
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -5
- package/lib/components/survey-model/index.css +18 -18
- package/lib/components/survey-model/instance.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/precls.js +8 -0
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
- package/lib/components/task-tree/task-item-node/e-project.js +212 -0
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
- package/lib/components/task-tree/task-item-node/e-task.js +426 -0
- package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/lib/components/task-tree/task-tree.js +49 -0
- package/lib/components/time-picker/index.css +123 -0
- package/lib/components/time-picker/index.js +13 -0
- package/lib/components/time-picker/time-picker-selector.js +138 -0
- package/lib/components/time-picker/time-picker.js +336 -0
- package/lib/components/time-picker/timer-picker-input.js +96 -0
- package/lib/components/time-picker/utils.js +52 -0
- package/lib/components/toast/index.js +3 -5
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/index.js +0 -40
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +24 -24
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +31 -31
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +11 -11
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +8 -8
- package/lib/pages/okr-map/number-select/index.js +2 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/auth.js +6 -6
- package/lib/utils/bs-global.js +12 -12
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/hooks.js +72 -0
- package/lib/utils/open-data.js +27 -31
- package/package.json +6 -3
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
|
@@ -0,0 +1,105 @@
|
|
|
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 _avatar = _interopRequireDefault(require("../../avatar"));
|
|
11
|
+
|
|
12
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
13
|
+
|
|
14
|
+
var _openData = require("../../../utils/open-data");
|
|
15
|
+
|
|
16
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
17
|
+
|
|
18
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var preCls = "danamic-like-ranking__item";
|
|
25
|
+
|
|
26
|
+
var Item = function Item(_ref) {
|
|
27
|
+
var userInfo = _ref.userInfo;
|
|
28
|
+
|
|
29
|
+
var formatRaking = function formatRaking(num) {
|
|
30
|
+
if (num === 1) {
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
32
|
+
className: "".concat(preCls, "-medal"),
|
|
33
|
+
src: require("./image/ranking-1.png"),
|
|
34
|
+
alt: "\u91D1\u724C"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (num === 2) {
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
40
|
+
className: "".concat(preCls, "-medal"),
|
|
41
|
+
src: require("./image/ranking-2.png"),
|
|
42
|
+
alt: "\u94F6\u724C"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (num === 3) {
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
48
|
+
className: "".concat(preCls, "-medal"),
|
|
49
|
+
src: require("./image/ranking-3.png"),
|
|
50
|
+
alt: "\u94DC\u724C"
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
55
|
+
className: "".concat(preCls, "-num")
|
|
56
|
+
}, num);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
if (!userInfo || Object.keys(userInfo).length === 0) return null;
|
|
60
|
+
var rankNum = userInfo.rankNum,
|
|
61
|
+
user = userInfo.user,
|
|
62
|
+
pariseNums = userInfo.pariseNums;
|
|
63
|
+
var avatar = user.avatar,
|
|
64
|
+
name = user.name,
|
|
65
|
+
userId = user.userId,
|
|
66
|
+
userType = user.userType; // 之后要用
|
|
67
|
+
// const url = getUrlForUserPage({
|
|
68
|
+
// userId: userId,
|
|
69
|
+
// userType: userType || 2,
|
|
70
|
+
// });
|
|
71
|
+
// const handleOpenUserPage = () => {
|
|
72
|
+
// window.open(url, "_blank");
|
|
73
|
+
// };
|
|
74
|
+
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
+
className: "".concat(preCls, "-pre")
|
|
77
|
+
}, formatRaking(rankNum)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
+
className: "".concat(preCls, "-avatar")
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
80
|
+
name: name,
|
|
81
|
+
src: avatar.original,
|
|
82
|
+
color: avatar.color,
|
|
83
|
+
userId: userId,
|
|
84
|
+
size: {
|
|
85
|
+
width: 28,
|
|
86
|
+
textNum: 1,
|
|
87
|
+
fontSize: 14
|
|
88
|
+
}
|
|
89
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
+
className: "".concat(preCls, "-name")
|
|
91
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
92
|
+
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
93
|
+
id: userId,
|
|
94
|
+
name: name
|
|
95
|
+
}),
|
|
96
|
+
maxWidth: 120
|
|
97
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: "".concat(preCls, "-like-text")
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
|
+
className: "".concat(preCls, "-like-num")
|
|
101
|
+
}, (0, _bsGlobal.formatNum)(pariseNums)), (0, _getLocale.getLocale)("Mod_Kudos")));
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var _default = Item;
|
|
105
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.data = void 0;
|
|
7
|
+
var data = [{
|
|
8
|
+
user: {
|
|
9
|
+
big: null,
|
|
10
|
+
color: "#b9cc4f",
|
|
11
|
+
hasAvatar: false,
|
|
12
|
+
large: null,
|
|
13
|
+
medium: null,
|
|
14
|
+
normal: null,
|
|
15
|
+
original: null,
|
|
16
|
+
small: null
|
|
17
|
+
},
|
|
18
|
+
ranking: 1,
|
|
19
|
+
name: "杨亮",
|
|
20
|
+
departmentId: 0,
|
|
21
|
+
departmentName: "默认部门",
|
|
22
|
+
userId: 560000215,
|
|
23
|
+
primaryDepartment: "默认部门",
|
|
24
|
+
primaryDepartmentId: 0,
|
|
25
|
+
likeNums: 1400
|
|
26
|
+
}, {
|
|
27
|
+
user: {
|
|
28
|
+
big: null,
|
|
29
|
+
color: "#b9cc4f",
|
|
30
|
+
hasAvatar: false,
|
|
31
|
+
large: null,
|
|
32
|
+
medium: null,
|
|
33
|
+
normal: null,
|
|
34
|
+
original: null,
|
|
35
|
+
small: null
|
|
36
|
+
},
|
|
37
|
+
ranking: 2,
|
|
38
|
+
name: "杨亮",
|
|
39
|
+
departmentId: 0,
|
|
40
|
+
departmentName: "默认部门",
|
|
41
|
+
userId: 560000215,
|
|
42
|
+
primaryDepartment: "默认部门",
|
|
43
|
+
primaryDepartmentId: 0,
|
|
44
|
+
likeNums: 140
|
|
45
|
+
}, {
|
|
46
|
+
user: {
|
|
47
|
+
big: null,
|
|
48
|
+
color: "#b9cc4f",
|
|
49
|
+
hasAvatar: false,
|
|
50
|
+
large: null,
|
|
51
|
+
medium: null,
|
|
52
|
+
normal: null,
|
|
53
|
+
original: null,
|
|
54
|
+
small: null
|
|
55
|
+
},
|
|
56
|
+
ranking: 3,
|
|
57
|
+
name: "杨亮",
|
|
58
|
+
departmentId: 0,
|
|
59
|
+
departmentName: "默认部门",
|
|
60
|
+
userId: 560000215,
|
|
61
|
+
primaryDepartment: "默认部门",
|
|
62
|
+
primaryDepartmentId: 0,
|
|
63
|
+
likeNums: 14000
|
|
64
|
+
}, {
|
|
65
|
+
user: {
|
|
66
|
+
big: null,
|
|
67
|
+
color: "#b9cc4f",
|
|
68
|
+
hasAvatar: false,
|
|
69
|
+
large: null,
|
|
70
|
+
medium: null,
|
|
71
|
+
normal: null,
|
|
72
|
+
original: null,
|
|
73
|
+
small: null
|
|
74
|
+
},
|
|
75
|
+
ranking: 4,
|
|
76
|
+
name: "杨亮",
|
|
77
|
+
departmentId: 0,
|
|
78
|
+
departmentName: "默认部门",
|
|
79
|
+
userId: 560000215,
|
|
80
|
+
primaryDepartment: "默认部门",
|
|
81
|
+
primaryDepartmentId: 0,
|
|
82
|
+
likeNums: 14000000
|
|
83
|
+
}];
|
|
84
|
+
exports.data = data;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>点赞动态</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<circle id="path-1" cx="4.16666667" cy="4.16666667" r="4.16666667"></circle>
|
|
6
|
+
<filter x="-21.4%" y="-89.9%" width="142.9%" height="279.8%" filterUnits="objectBoundingBox" id="filter-3">
|
|
7
|
+
<feGaussianBlur stdDeviation="1" in="SourceGraphic"></feGaussianBlur>
|
|
8
|
+
</filter>
|
|
9
|
+
</defs>
|
|
10
|
+
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
+
<g id="绩效考核/@与回复/打赏" transform="translate(-1082.000000, -1196.000000)">
|
|
12
|
+
<g id="动态" transform="translate(1066.000000, 1182.000000)">
|
|
13
|
+
<g id="点赞动态" transform="translate(16.000000, 14.000000)">
|
|
14
|
+
<circle id="椭圆形" fill="#FFBB4D" cx="10" cy="10" r="10"></circle>
|
|
15
|
+
<g id="编组-22" transform="translate(3.213090, 6.000000)">
|
|
16
|
+
<g id="形状结合" transform="translate(2.786910, 0.000000)">
|
|
17
|
+
<mask id="mask-2" fill="white">
|
|
18
|
+
<use xlink:href="#path-1"></use>
|
|
19
|
+
</mask>
|
|
20
|
+
<use id="蒙版" fill="#FFFFFF" xlink:href="#path-1"></use>
|
|
21
|
+
<path d="M10.2801853,3.1428106 C10.8347673,3.46511621 11.1504539,3.83580442 11.1504539,4.23019237 C11.1504539,5.47283306 8.01644712,6.48019237 4.15045387,6.48019237 C0.284460621,6.48019237 -2.84954613,5.47283306 -2.84954613,4.23019237 C-2.84954613,4.22851539 -2.84954042,4.22683884 -2.84952901,4.22516273 L-1.2577765,4.5010035 C-0.785172265,5.18948386 1.45644516,5.7109616 4.15045387,5.7109616 C7.1793128,5.7109616 9.636332,5.05179396 9.65039321,4.23722128 Z" fill="#FFBB4D" filter="url(#filter-3)" mask="url(#mask-2)" transform="translate(4.150454, 4.811501) rotate(-15.000000) translate(-4.150454, -4.811501) "></path>
|
|
22
|
+
</g>
|
|
23
|
+
<path d="M13.5483912,2.43826668 C13.8700102,3.63856542 11.1035159,5.42274043 7.36925322,6.42333311 C3.6349905,7.42392579 0.347048662,7.26203205 0.0254295863,6.06173332 C-0.165835376,5.34792276 0.73504509,4.4276179 2.28211975,3.58842283 L2.28182412,4.54792105 C1.69502828,4.95952847 1.38922509,5.35593246 1.47431833,5.67350475 C1.68598216,6.46344494 4.23609808,6.46649321 7.17016165,5.68031324 C10.1042252,4.89413328 12.3111663,3.61643544 12.0995024,2.82649525 C12.0230062,2.54100753 11.6410777,2.35829814 11.0459776,2.27847735 C10.8979016,1.89023186 10.7402483,1.60445999 10.5721988,1.42051892 C12.2176585,1.40720458 13.365042,1.75399842 13.5483912,2.43826668 Z" id="形状结合" fill="#FFFFFF"></path>
|
|
24
|
+
<path d="M9.78691037,2.50417127 C9.41404232,1.78496057 8.81138292,1.23999086 8.09496376,1 L7.95280143,1.78102951 C8.42427797,1.9275763 8.82526021,2.27106798 9.08234723,2.72966003 L9.78691037,2.50417127 Z" id="路径" fill="#FFBB4D"></path>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.dynamic-liking {
|
|
2
|
+
margin-top: 10px;
|
|
3
|
+
width: 278px;
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
padding: 12px 16px;
|
|
8
|
+
padding-top: 16px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dynamic-liking__header {
|
|
13
|
+
height: 24px;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
color: #3f4755;
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
margin-bottom: 10px;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dynamic-liking__header-text {
|
|
25
|
+
margin-left: 4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dynamic-liking__header-image {
|
|
29
|
+
width: 20px;
|
|
30
|
+
height: 20px;
|
|
31
|
+
position: relative;
|
|
32
|
+
top: -2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.dynamic-liking__content {
|
|
36
|
+
border-top: 1px solid #e9ecf0;
|
|
37
|
+
padding: 16px 0 0 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dynamic-liking__item {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
vertical-align: text-top;
|
|
44
|
+
margin-top: 18px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dynamic-liking__item:nth-of-type(1) {
|
|
48
|
+
margin-top: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dynamic-liking__item-avatar {
|
|
52
|
+
position: relative;
|
|
53
|
+
top: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dynamic-liking__item-center {
|
|
57
|
+
margin-left: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dynamic-liking__item-center-name {
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
color: #3F4755;
|
|
64
|
+
line-height: 18px;
|
|
65
|
+
display: flex;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dynamic-liking__item-center-time {
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
color: #89919F;
|
|
72
|
+
line-height: 18px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dynamic-liking__item-dynamic {
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
font-weight: 400;
|
|
78
|
+
color: #89919F;
|
|
79
|
+
line-height: 18px;
|
|
80
|
+
margin-left: 8px;
|
|
81
|
+
}
|
|
@@ -9,22 +9,16 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _getLocale = require("../../../utils/getLocale");
|
|
15
|
-
|
|
16
|
-
var _tooltip = _interopRequireDefault(require("../../../components/tooltip"));
|
|
17
|
-
|
|
18
|
-
var _precls = require("../precls");
|
|
19
|
-
|
|
20
|
-
var _context = require("../context");
|
|
21
|
-
|
|
22
|
-
var _common = require("./common");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
13
|
|
|
24
14
|
var _requestApi = require("../request-api");
|
|
25
15
|
|
|
16
|
+
var _item = _interopRequireDefault(require("./item"));
|
|
17
|
+
|
|
26
18
|
require("./index.css");
|
|
27
19
|
|
|
20
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
21
|
+
|
|
28
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
23
|
|
|
30
24
|
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); }
|
|
@@ -43,89 +37,43 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
43
37
|
|
|
44
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
39
|
|
|
46
|
-
var
|
|
47
|
-
|
|
40
|
+
var preCls = "dynamic-liking";
|
|
41
|
+
|
|
42
|
+
var DynamicLiking = function DynamicLiking() {
|
|
43
|
+
var _useState = (0, _react.useState)([]),
|
|
48
44
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var popupRef = (0, _react.useRef)();
|
|
53
|
-
var drawerRef = (0, _react.useRef)();
|
|
54
|
-
var userInfo = props.userInfo,
|
|
55
|
-
toUserId = props.toUserId,
|
|
56
|
-
relation = props.relation,
|
|
57
|
-
okrFeedParams = props.okrFeedParams;
|
|
58
|
-
|
|
59
|
-
var _useContext = (0, _react.useContext)(_context.Context),
|
|
60
|
-
OkrOperateRecordDrawer = _useContext.OkrOperateRecordDrawer,
|
|
61
|
-
annualNum = _useContext.annualNum,
|
|
62
|
-
cycleType = _useContext.cycleType,
|
|
63
|
-
yqmNum = _useContext.yqmNum;
|
|
64
|
-
|
|
65
|
-
var openOperateRecordPush = function openOperateRecordPush() {
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
popupRef.current && popupRef.current.close(); // @ts-ignore
|
|
68
|
-
|
|
69
|
-
drawerRef.current && drawerRef.current.showOperateDrawerVisible();
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
-
className: "".concat(_precls.precls, "__header-record-popup")
|
|
74
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
-
className: "".concat(_precls.precls, "__header-record-item"),
|
|
76
|
-
onClick: openOperateRecordPush
|
|
77
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
78
|
-
className: "tu-icon-jinzhan-s"
|
|
79
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: "".concat(_precls.precls, "__header-record-item-content")
|
|
81
|
-
}, (0, _getLocale.getLocale)('Per_details_OperationRecord'))));
|
|
45
|
+
rankingData = _useState2[0],
|
|
46
|
+
setRankingData = _useState2[1];
|
|
82
47
|
|
|
83
48
|
(0, _react.useEffect)(function () {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}, [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
className: "tu-icon-more1"
|
|
112
|
-
})))), (toUserId !== undefined || relation === 1) && !!userInfo && /*#__PURE__*/_react["default"].createElement(OkrOperateRecordDrawer, {
|
|
113
|
-
ref: drawerRef,
|
|
114
|
-
userInfo: {
|
|
115
|
-
id: userInfo.userId,
|
|
116
|
-
name: userInfo.name,
|
|
117
|
-
color: userInfo.avatar.color,
|
|
118
|
-
avatarsUrl: userInfo.avatar.original,
|
|
119
|
-
type: 1
|
|
120
|
-
},
|
|
121
|
-
okrCycle: "\u300C".concat((0, _common.formatPeriod)({
|
|
122
|
-
annualNum: annualNum,
|
|
123
|
-
cycleType: cycleType,
|
|
124
|
-
yqmNum: yqmNum
|
|
125
|
-
}), "\u300D"),
|
|
126
|
-
okrFeedParams: okrFeedParams
|
|
127
|
-
}));
|
|
49
|
+
(0, _requestApi.getLeastPariseInfo)().then(function (res) {
|
|
50
|
+
if (res.Code === 1) {
|
|
51
|
+
setRankingData(res.Data);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}, []);
|
|
55
|
+
if (!rankingData || rankingData.length === 0) return null;
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
className: (0, _classnames["default"])("".concat(preCls))
|
|
58
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header"))
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-left"))
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
63
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-image")),
|
|
64
|
+
src: require("./image/like-dynamic.svg")
|
|
65
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
className: (0, _classnames["default"])("".concat(preCls, "__header-text"))
|
|
67
|
+
}, (0, _getLocale.getLocale)("Feed_Menu_Title_Likedynamic")))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
className: (0, _classnames["default"])("".concat(preCls, "__content"))
|
|
69
|
+
}, rankingData.map(function (item, index) {
|
|
70
|
+
if (index >= 5) return;
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_item["default"], {
|
|
72
|
+
key: index,
|
|
73
|
+
userInfo: item
|
|
74
|
+
});
|
|
75
|
+
})));
|
|
128
76
|
};
|
|
129
77
|
|
|
130
|
-
var _default =
|
|
78
|
+
var _default = DynamicLiking;
|
|
131
79
|
exports["default"] = _default;
|
|
@@ -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 _formatTime = require("../../../utils/format-time");
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
var _openData = require("../../../utils/open-data");
|
|
15
|
+
|
|
16
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
17
|
+
|
|
18
|
+
var _constant = require("../constant");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
// import { getUrlForUserPage } from "../../../utils/tools";
|
|
25
|
+
var preCls = "dynamic-liking__item";
|
|
26
|
+
|
|
27
|
+
var Item = function Item(_ref) {
|
|
28
|
+
var userInfo = _ref.userInfo;
|
|
29
|
+
var pariseUser = userInfo.pariseUser,
|
|
30
|
+
pariseDate = userInfo.pariseDate,
|
|
31
|
+
userType = userInfo.userType,
|
|
32
|
+
toPariseUser = userInfo.toPariseUser,
|
|
33
|
+
pariseObjType = userInfo.pariseObjType;
|
|
34
|
+
var name = pariseUser.name,
|
|
35
|
+
userId = pariseUser.userId;
|
|
36
|
+
var toUserName = toPariseUser.name;
|
|
37
|
+
var toUserId = toPariseUser.userId; // 之后要用
|
|
38
|
+
// const url = getUrlForUserPage({
|
|
39
|
+
// userId: userId,
|
|
40
|
+
// userType: userType || 2,
|
|
41
|
+
// });
|
|
42
|
+
// const handleOpenUserPage = () => {
|
|
43
|
+
// window.open(url, "_blank");
|
|
44
|
+
// };
|
|
45
|
+
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
+
className: "".concat(preCls)
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
|
+
className: "".concat(preCls, "-center")
|
|
50
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
+
className: "".concat(preCls, "-center-name")
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
+
className: "".concat(preCls, "-center-name-text") // onClick={handleOpenUserPage}
|
|
54
|
+
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
56
|
+
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
57
|
+
id: userId,
|
|
58
|
+
name: name
|
|
59
|
+
}),
|
|
60
|
+
maxWidth: 45
|
|
61
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: "".concat(preCls, "-dynamic")
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
64
|
+
text: /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Feed_Kudos"), /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
65
|
+
id: toUserId,
|
|
66
|
+
name: toUserName
|
|
67
|
+
}), "".concat((0, _constant.ObjectType)()[pariseObjType] || "feed")),
|
|
68
|
+
maxWidth: 150
|
|
69
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: "".concat(preCls, "-center-time")
|
|
71
|
+
}, (0, _formatTime.getTimeString)(pariseDate, new Date()))));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var _default = Item;
|
|
75
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.data = void 0;
|
|
7
|
+
var data = [{
|
|
8
|
+
user: {
|
|
9
|
+
big: null,
|
|
10
|
+
color: "#b9cc4f",
|
|
11
|
+
hasAvatar: false,
|
|
12
|
+
large: null,
|
|
13
|
+
medium: null,
|
|
14
|
+
normal: null,
|
|
15
|
+
original: null,
|
|
16
|
+
small: null
|
|
17
|
+
},
|
|
18
|
+
time: 1630474481282,
|
|
19
|
+
name: "杨亮",
|
|
20
|
+
userId: 99888888,
|
|
21
|
+
desc: "点赞了李晓辉的目标"
|
|
22
|
+
}, {
|
|
23
|
+
user: {
|
|
24
|
+
big: null,
|
|
25
|
+
color: "#b9cc4f",
|
|
26
|
+
hasAvatar: false,
|
|
27
|
+
large: null,
|
|
28
|
+
medium: null,
|
|
29
|
+
normal: null,
|
|
30
|
+
original: null,
|
|
31
|
+
small: null
|
|
32
|
+
},
|
|
33
|
+
time: 1630474481282,
|
|
34
|
+
name: "杨亮",
|
|
35
|
+
userId: 99888888,
|
|
36
|
+
desc: "点赞了李晓辉的目标"
|
|
37
|
+
}, {
|
|
38
|
+
user: {
|
|
39
|
+
big: null,
|
|
40
|
+
color: "#b9cc4f",
|
|
41
|
+
hasAvatar: false,
|
|
42
|
+
large: null,
|
|
43
|
+
medium: null,
|
|
44
|
+
normal: null,
|
|
45
|
+
original: null,
|
|
46
|
+
small: null
|
|
47
|
+
},
|
|
48
|
+
time: 1630474481282,
|
|
49
|
+
name: "杨亮",
|
|
50
|
+
userId: 99888888,
|
|
51
|
+
desc: "点赞了李晓辉的目标"
|
|
52
|
+
}, {
|
|
53
|
+
user: {
|
|
54
|
+
big: null,
|
|
55
|
+
color: "#b9cc4f",
|
|
56
|
+
hasAvatar: false,
|
|
57
|
+
large: null,
|
|
58
|
+
medium: null,
|
|
59
|
+
normal: null,
|
|
60
|
+
original: null,
|
|
61
|
+
small: null
|
|
62
|
+
},
|
|
63
|
+
time: 1630474481282,
|
|
64
|
+
name: "杨亮",
|
|
65
|
+
userId: 99888888,
|
|
66
|
+
desc: "点赞了李晓辉的目标"
|
|
67
|
+
}, {
|
|
68
|
+
user: {
|
|
69
|
+
big: null,
|
|
70
|
+
color: "#b9cc4f",
|
|
71
|
+
hasAvatar: false,
|
|
72
|
+
large: null,
|
|
73
|
+
medium: null,
|
|
74
|
+
normal: null,
|
|
75
|
+
original: null,
|
|
76
|
+
small: null
|
|
77
|
+
},
|
|
78
|
+
time: 1630474481282,
|
|
79
|
+
name: "杨亮",
|
|
80
|
+
userId: 99888888,
|
|
81
|
+
desc: "点赞了李晓辉的目标"
|
|
82
|
+
}];
|
|
83
|
+
exports.data = data;
|
|
@@ -17,23 +17,19 @@ var _conditionRender = _interopRequireDefault(require("../../condition-render"))
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../../utils/getLocale");
|
|
19
19
|
|
|
20
|
-
var _context = require("../context");
|
|
21
|
-
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
24
|
// @ts-ignore
|
|
27
|
-
var prefix =
|
|
25
|
+
var prefix = 'titaui-dynamic-list';
|
|
28
26
|
|
|
29
27
|
var DynamicList = function DynamicList(_ref) {
|
|
30
28
|
var data = _ref.data,
|
|
31
29
|
dynamicShareIsShowToping = _ref.dynamicShareIsShowToping,
|
|
32
30
|
onDeleteFeed = _ref.onDeleteFeed,
|
|
33
31
|
_ref$height = _ref.height,
|
|
34
|
-
height = _ref$height === void 0 ? -1 : _ref$height
|
|
35
|
-
_ref$searchKeyWord = _ref.searchKeyWord,
|
|
36
|
-
searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord;
|
|
32
|
+
height = _ref$height === void 0 ? -1 : _ref$height;
|
|
37
33
|
|
|
38
34
|
var handleDeleteFeed = function handleDeleteFeed(feedId) {
|
|
39
35
|
if (onDeleteFeed) {
|
|
@@ -41,14 +37,10 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
41
37
|
}
|
|
42
38
|
};
|
|
43
39
|
|
|
44
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
45
|
-
value: {
|
|
46
|
-
searchKeyWord: searchKeyWord
|
|
47
|
-
}
|
|
48
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
41
|
className: prefix,
|
|
50
42
|
style: {
|
|
51
|
-
minHeight: height === -1 ?
|
|
43
|
+
minHeight: height === -1 ? 'auto' : height
|
|
52
44
|
}
|
|
53
45
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
54
46
|
condition: data.length === 0
|
|
@@ -60,7 +52,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
60
52
|
alt: ""
|
|
61
53
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
62
54
|
className: "".concat(prefix, "__empty-text")
|
|
63
|
-
}, (0, _getLocale.getLocale)(
|
|
55
|
+
}, (0, _getLocale.getLocale)('OKR_Noinformation')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
64
56
|
condition: data.length !== 0
|
|
65
57
|
}, /*#__PURE__*/_react["default"].createElement(_rcQueueAnim["default"], {
|
|
66
58
|
type: "bottom",
|
|
@@ -69,7 +61,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
69
61
|
animConfig: [{
|
|
70
62
|
opacity: [1, 0]
|
|
71
63
|
}, {
|
|
72
|
-
display:
|
|
64
|
+
display: 'none'
|
|
73
65
|
}]
|
|
74
66
|
}, data.map(function (item) {
|
|
75
67
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -80,7 +72,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
80
72
|
onDeleteFeed: handleDeleteFeed,
|
|
81
73
|
dynamicShareIsShowToping: dynamicShareIsShowToping
|
|
82
74
|
}));
|
|
83
|
-
}))))
|
|
75
|
+
}))));
|
|
84
76
|
};
|
|
85
77
|
|
|
86
78
|
var _default = DynamicList;
|