@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,428 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _dynamicList = _interopRequireDefault(require("./dynamic-list"));
|
|
15
|
+
|
|
16
|
+
var _context = require("./context");
|
|
17
|
+
|
|
18
|
+
var _dynamicSearchInput = _interopRequireDefault(require("./components/dynamic-search-input"));
|
|
19
|
+
|
|
20
|
+
var _requestApi = require("./request-api");
|
|
21
|
+
|
|
22
|
+
var _quickOperation = _interopRequireDefault(require("./quick-operation"));
|
|
23
|
+
|
|
24
|
+
var _dynamicTopping = _interopRequireDefault(require("./dynamic-topping"));
|
|
25
|
+
|
|
26
|
+
var _dynamicLikeRanking = _interopRequireDefault(require("./dynamic-like-ranking"));
|
|
27
|
+
|
|
28
|
+
var _dynamicLiking = _interopRequireDefault(require("./dynamic-liking"));
|
|
29
|
+
|
|
30
|
+
var _dynamicLoading = _interopRequireDefault(require("./img/dynamic-loading.gif"));
|
|
31
|
+
|
|
32
|
+
var _advertise = _interopRequireDefault(require("./advertise"));
|
|
33
|
+
|
|
34
|
+
var _conditionRender = _interopRequireDefault(require("../condition-render"));
|
|
35
|
+
|
|
36
|
+
var _util = require("./util");
|
|
37
|
+
|
|
38
|
+
var _toast = _interopRequireDefault(require("../toast"));
|
|
39
|
+
|
|
40
|
+
var _firstLevelTabs = _interopRequireDefault(require("./components/first-level-tabs"));
|
|
41
|
+
|
|
42
|
+
var _onlineBroadcast = _interopRequireDefault(require("./online-broadcast"));
|
|
43
|
+
|
|
44
|
+
var _myTeam = _interopRequireDefault(require("./my-team"));
|
|
45
|
+
|
|
46
|
+
var _getLocale = require("../../utils/getLocale");
|
|
47
|
+
|
|
48
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
49
|
+
|
|
50
|
+
require("./dynamic.css");
|
|
51
|
+
|
|
52
|
+
require("./new-ui.css");
|
|
53
|
+
|
|
54
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
|
+
|
|
56
|
+
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); }
|
|
57
|
+
|
|
58
|
+
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; }
|
|
59
|
+
|
|
60
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61
|
+
|
|
62
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
63
|
+
|
|
64
|
+
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."); }
|
|
65
|
+
|
|
66
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
67
|
+
|
|
68
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
69
|
+
|
|
70
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
71
|
+
|
|
72
|
+
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."); }
|
|
73
|
+
|
|
74
|
+
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); }
|
|
75
|
+
|
|
76
|
+
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; }
|
|
77
|
+
|
|
78
|
+
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; }
|
|
79
|
+
|
|
80
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
81
|
+
|
|
82
|
+
var prefix = (0, _bsGlobal.getBSGlobal)("tenantInfo").isNewIndex ? "titaui-new-ui-dynamic" : "titaui-dynamic";
|
|
83
|
+
var requestId = 0;
|
|
84
|
+
|
|
85
|
+
var Dynamic = function Dynamic() {
|
|
86
|
+
var _useState = (0, _react.useState)([]),
|
|
87
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
88
|
+
dynamicData = _useState2[0],
|
|
89
|
+
setDynamicData = _useState2[1];
|
|
90
|
+
|
|
91
|
+
var _useState3 = (0, _react.useState)(),
|
|
92
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
93
|
+
activeFirstLevelTabKey = _useState4[0],
|
|
94
|
+
setActiveFirstLevelTabKey = _useState4[1];
|
|
95
|
+
|
|
96
|
+
var _useState5 = (0, _react.useState)(),
|
|
97
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
98
|
+
activeSecondLevelTabKey = _useState6[0],
|
|
99
|
+
setActiveSecondLevelTabKey = _useState6[1];
|
|
100
|
+
|
|
101
|
+
var _useState7 = (0, _react.useState)(""),
|
|
102
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
103
|
+
searchKeyWord = _useState8[0],
|
|
104
|
+
setSearchKeyWord = _useState8[1];
|
|
105
|
+
|
|
106
|
+
var _useState9 = (0, _react.useState)(""),
|
|
107
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
108
|
+
searchKeyType = _useState10[0],
|
|
109
|
+
setSearchKeyType = _useState10[1];
|
|
110
|
+
|
|
111
|
+
var _useState11 = (0, _react.useState)([]),
|
|
112
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
113
|
+
tabsInfo = _useState12[0],
|
|
114
|
+
setTabsInfo = _useState12[1];
|
|
115
|
+
|
|
116
|
+
var _useState13 = (0, _react.useState)(),
|
|
117
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
118
|
+
searchUser = _useState14[0],
|
|
119
|
+
setSearchUser = _useState14[1];
|
|
120
|
+
|
|
121
|
+
var _useState15 = (0, _react.useState)(true),
|
|
122
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
123
|
+
isLoading = _useState16[0],
|
|
124
|
+
setIsLoading = _useState16[1];
|
|
125
|
+
|
|
126
|
+
var _useState17 = (0, _react.useState)(false),
|
|
127
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
128
|
+
isLoadingMore = _useState18[0],
|
|
129
|
+
setIsLoadingMore = _useState18[1];
|
|
130
|
+
|
|
131
|
+
var _useState19 = (0, _react.useState)(false),
|
|
132
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
133
|
+
isChangeConditionLoading = _useState20[0],
|
|
134
|
+
setIsChangeConditionLoading = _useState20[1];
|
|
135
|
+
|
|
136
|
+
var _useState21 = (0, _react.useState)(-1),
|
|
137
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
138
|
+
rightContentHeight = _useState22[0],
|
|
139
|
+
setRightContentHeight = _useState22[1];
|
|
140
|
+
|
|
141
|
+
var _useState23 = (0, _react.useState)([]),
|
|
142
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
143
|
+
secondTabs = _useState24[0],
|
|
144
|
+
setSecondTabs = _useState24[1];
|
|
145
|
+
|
|
146
|
+
var _useState25 = (0, _react.useState)(false),
|
|
147
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
148
|
+
noMoreData = _useState26[0],
|
|
149
|
+
setNoMoreData = _useState26[1];
|
|
150
|
+
|
|
151
|
+
var _useState27 = (0, _react.useState)(false),
|
|
152
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
153
|
+
notFixedTop = _useState28[0],
|
|
154
|
+
setNotFixedTop = _useState28[1];
|
|
155
|
+
|
|
156
|
+
var contentRef = (0, _react.useRef)(document.createElement("div"));
|
|
157
|
+
var currentPage = (0, _react.useRef)(1);
|
|
158
|
+
var loginUser = window.BSGlobal.loginUserInfo;
|
|
159
|
+
|
|
160
|
+
var resetValue = function resetValue() {
|
|
161
|
+
if (contentRef.current && contentRef.current.scrollTo) {
|
|
162
|
+
contentRef.current.scrollTo(0, 0);
|
|
163
|
+
} else {
|
|
164
|
+
contentRef.current.scrollTop = 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
currentPage.current = 1;
|
|
168
|
+
setIsLoadingMore(false);
|
|
169
|
+
setNoMoreData(false);
|
|
170
|
+
setNotFixedTop(false);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var handleChangeTabActive = function handleChangeTabActive(key) {
|
|
174
|
+
setActiveFirstLevelTabKey(key); // @ts-ignore
|
|
175
|
+
|
|
176
|
+
var secondTabsArr = tabsInfo.find(function (item) {
|
|
177
|
+
return item.CodeId === key;
|
|
178
|
+
}).ChildMenus;
|
|
179
|
+
setSecondTabs(secondTabsArr);
|
|
180
|
+
setActiveSecondLevelTabKey(secondTabsArr[0].CodeId);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var handleSubTabsChange = function handleSubTabsChange(key) {
|
|
184
|
+
setActiveSecondLevelTabKey(key);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
var handleDeleteFeed = function handleDeleteFeed(feedId) {
|
|
188
|
+
var newDatas = dynamicData.filter(function (item) {
|
|
189
|
+
return item.feedId !== feedId;
|
|
190
|
+
});
|
|
191
|
+
setDynamicData([]); // 动画效果如果直接设置新的数据,diff时间会比较长,所以直接清空再赋值,这样不会出现删除时等待长时间空白
|
|
192
|
+
|
|
193
|
+
setTimeout(function () {
|
|
194
|
+
setDynamicData(_toConsumableArray(newDatas));
|
|
195
|
+
}, 0);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
var getDynamicData = function getDynamicData(needResetValue) {
|
|
199
|
+
requestId += 1;
|
|
200
|
+
var reqId = requestId;
|
|
201
|
+
setIsLoadingMore(true);
|
|
202
|
+
(0, _requestApi.getDynamicFeedList)({
|
|
203
|
+
PageSize: 20,
|
|
204
|
+
PageNum: currentPage.current,
|
|
205
|
+
KeyWord: searchKeyType === "person" && searchUser ? "UserId:".concat(searchUser.userId) : searchKeyWord,
|
|
206
|
+
ChannelIds: "".concat(activeFirstLevelTabKey, ".").concat(activeSecondLevelTabKey),
|
|
207
|
+
Domain: "",
|
|
208
|
+
TitaHost: "",
|
|
209
|
+
RequestSource: 0,
|
|
210
|
+
CommentCount: 3
|
|
211
|
+
}).then(function (resp) {
|
|
212
|
+
setIsLoadingMore(false);
|
|
213
|
+
setIsChangeConditionLoading(false);
|
|
214
|
+
if (requestId !== reqId) return;
|
|
215
|
+
|
|
216
|
+
if (resp.Code === 1) {
|
|
217
|
+
if (!resp.Data.isEnd) {
|
|
218
|
+
currentPage.current += 1;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
setNoMoreData(resp.Data.isEnd);
|
|
222
|
+
|
|
223
|
+
if (needResetValue) {
|
|
224
|
+
setDynamicData([]);
|
|
225
|
+
setTimeout(function () {
|
|
226
|
+
setDynamicData(resp.Data.feeds);
|
|
227
|
+
}, 0);
|
|
228
|
+
} else {
|
|
229
|
+
setDynamicData(JSON.parse(JSON.stringify([].concat(_toConsumableArray(dynamicData), _toConsumableArray(resp.Data.feeds)))));
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
_toast["default"].Error(resp.Message, {
|
|
233
|
+
canClose: false
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
var setTabsToPublish = function setTabsToPublish() {
|
|
240
|
+
var _tabsInfo$find;
|
|
241
|
+
|
|
242
|
+
setActiveFirstLevelTabKey(1004);
|
|
243
|
+
setActiveSecondLevelTabKey(1018); // @ts-ignore
|
|
244
|
+
|
|
245
|
+
var secondTabsArr = ((_tabsInfo$find = tabsInfo.find(function (item) {
|
|
246
|
+
return item.CodeId === 1004;
|
|
247
|
+
})) === null || _tabsInfo$find === void 0 ? void 0 : _tabsInfo$find.ChildMenus) || [];
|
|
248
|
+
setSecondTabs(secondTabsArr);
|
|
249
|
+
resetValue();
|
|
250
|
+
setIsChangeConditionLoading(true);
|
|
251
|
+
getDynamicData(true);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
var handleContentScroll = function handleContentScroll() {
|
|
255
|
+
var contentDom = contentRef.current;
|
|
256
|
+
|
|
257
|
+
if (contentDom) {
|
|
258
|
+
if (contentDom.scrollTop > 0) {
|
|
259
|
+
setNotFixedTop(true);
|
|
260
|
+
} else {
|
|
261
|
+
setNotFixedTop(false);
|
|
262
|
+
} // 为了解决列表数据过少右侧内容过多滚动的问题
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
if (dynamicData.length === 0) {
|
|
266
|
+
// 防止出现重复设置高度导致一直能往下滚动的问题
|
|
267
|
+
if (rightContentHeight > 0) return; // 48是二级菜单高度,10是二级菜单到列表的间距
|
|
268
|
+
|
|
269
|
+
setRightContentHeight(contentDom.scrollHeight - 48 - 10);
|
|
270
|
+
} else {
|
|
271
|
+
setRightContentHeight(-1);
|
|
272
|
+
} // 滚动到距离底部40px之后加载新的数据
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
if (contentDom.scrollHeight - contentDom.scrollTop <= contentDom.offsetHeight + 40) {
|
|
276
|
+
// 滚动加载防止重复请求
|
|
277
|
+
if (noMoreData || isLoadingMore) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
getDynamicData(false);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
var handleScrollToTop = (0, _react.useCallback)(function () {
|
|
287
|
+
if (contentRef.current && contentRef.current.scrollTo) {
|
|
288
|
+
contentRef.current.scrollTo({
|
|
289
|
+
top: 0,
|
|
290
|
+
left: 0,
|
|
291
|
+
behavior: "smooth"
|
|
292
|
+
});
|
|
293
|
+
} else {
|
|
294
|
+
contentRef.current.scrollTop = 0;
|
|
295
|
+
}
|
|
296
|
+
}, []);
|
|
297
|
+
(0, _react.useEffect)(function () {
|
|
298
|
+
document.title = (0, _getLocale.getLocale)("Menu_Title_Feed");
|
|
299
|
+
}, []);
|
|
300
|
+
(0, _react.useEffect)(function () {
|
|
301
|
+
(0, _requestApi.getMenu)().then(function (resp) {
|
|
302
|
+
if (resp.Code === 1) {
|
|
303
|
+
var data = (0, _util.formatMenu)(resp.Data);
|
|
304
|
+
setTabsInfo(data);
|
|
305
|
+
var localFirstLevelTabKey = sessionStorage.getItem("tita-dynamic-first-level-tab__".concat(loginUser.Id));
|
|
306
|
+
var localSecondLevelTabKey = sessionStorage.getItem("tita-dynamic-second-level-tab__".concat(loginUser.Id));
|
|
307
|
+
var nowFirstLevelLocalMenu = data.find(function (item) {
|
|
308
|
+
return item.CodeId === Number(localFirstLevelTabKey);
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
if (localFirstLevelTabKey && nowFirstLevelLocalMenu) {
|
|
312
|
+
setActiveFirstLevelTabKey(Number(localFirstLevelTabKey));
|
|
313
|
+
var secondTabsArr = nowFirstLevelLocalMenu.ChildMenus;
|
|
314
|
+
setSecondTabs(secondTabsArr);
|
|
315
|
+
} else {
|
|
316
|
+
setActiveFirstLevelTabKey(data[0].CodeId);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
var nowSecondLevelTabExist = localSecondLevelTabKey && nowFirstLevelLocalMenu && nowFirstLevelLocalMenu.ChildMenus.find(function (item) {
|
|
320
|
+
return item.CodeId === Number(localSecondLevelTabKey);
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
if (localSecondLevelTabKey && nowFirstLevelLocalMenu && nowSecondLevelTabExist) {
|
|
324
|
+
setActiveSecondLevelTabKey(Number(localSecondLevelTabKey));
|
|
325
|
+
} else {
|
|
326
|
+
setSecondTabs(data[0].ChildMenus);
|
|
327
|
+
setActiveSecondLevelTabKey(data[0].ChildMenus[0].CodeId);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
setIsLoading(false);
|
|
332
|
+
});
|
|
333
|
+
}, []);
|
|
334
|
+
(0, _react.useEffect)(function () {
|
|
335
|
+
if (searchKeyWord || searchKeyType || searchUser) {
|
|
336
|
+
setIsChangeConditionLoading(true);
|
|
337
|
+
resetValue();
|
|
338
|
+
getDynamicData(true);
|
|
339
|
+
}
|
|
340
|
+
}, [searchKeyWord, searchKeyType, searchUser]);
|
|
341
|
+
(0, _react.useEffect)(function () {
|
|
342
|
+
if (!activeSecondLevelTabKey || !activeFirstLevelTabKey) return;
|
|
343
|
+
sessionStorage.setItem("tita-dynamic-first-level-tab__".concat(loginUser.Id), "".concat(activeFirstLevelTabKey));
|
|
344
|
+
sessionStorage.setItem("tita-dynamic-second-level-tab__".concat(loginUser.Id), "".concat(activeSecondLevelTabKey));
|
|
345
|
+
resetValue();
|
|
346
|
+
setIsChangeConditionLoading(true);
|
|
347
|
+
getDynamicData(true);
|
|
348
|
+
}, [activeFirstLevelTabKey, activeSecondLevelTabKey]); // @ts-ignore
|
|
349
|
+
|
|
350
|
+
window.setTabsToPublish = setTabsToPublish;
|
|
351
|
+
return /*#__PURE__*/_react["default"].createElement(_context.SearchKeyContext.Provider, {
|
|
352
|
+
value: {
|
|
353
|
+
searchKeyWord: searchKeyType === "dynamic" ? searchKeyWord : ""
|
|
354
|
+
}
|
|
355
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
|
+
className: prefix
|
|
357
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
358
|
+
condition: isLoading
|
|
359
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
360
|
+
className: "".concat(prefix, "__loading")
|
|
361
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
362
|
+
className: "".concat(prefix, "__loading-img"),
|
|
363
|
+
src: _dynamicLoading["default"],
|
|
364
|
+
alt: ""
|
|
365
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
366
|
+
className: (0, _classnames["default"])("".concat(prefix, "__header"), _defineProperty({}, "".concat(prefix, "__header--content-scroll"), notFixedTop))
|
|
367
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
368
|
+
className: (0, _classnames["default"])("".concat(prefix, "__header-tabs"))
|
|
369
|
+
}, /*#__PURE__*/_react["default"].createElement(_firstLevelTabs["default"], {
|
|
370
|
+
tabsInfo: tabsInfo,
|
|
371
|
+
activeTab: activeFirstLevelTabKey,
|
|
372
|
+
onTabsChange: handleChangeTabActive
|
|
373
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
374
|
+
className: "".concat(prefix, "__header-search")
|
|
375
|
+
}, /*#__PURE__*/_react["default"].createElement(_dynamicSearchInput["default"], {
|
|
376
|
+
setSearchUser: setSearchUser,
|
|
377
|
+
setSearchKey: setSearchKeyWord,
|
|
378
|
+
setSearchKeyType: setSearchKeyType
|
|
379
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
380
|
+
className: "".concat(prefix, "__content"),
|
|
381
|
+
onScroll: handleContentScroll,
|
|
382
|
+
ref: contentRef
|
|
383
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
384
|
+
className: "".concat(prefix, "__content-left")
|
|
385
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
386
|
+
className: "".concat(prefix, "__content-left-tabs")
|
|
387
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
388
|
+
condition: secondTabs.length > 0
|
|
389
|
+
}, secondTabs.map(function (item) {
|
|
390
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
391
|
+
key: item.CodeId + item.MenuName,
|
|
392
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-left-tab"), _defineProperty({}, "".concat(prefix, "__content-left-tab--active"), item.CodeId === activeSecondLevelTabKey)),
|
|
393
|
+
onClick: function onClick() {
|
|
394
|
+
handleSubTabsChange(item.CodeId);
|
|
395
|
+
}
|
|
396
|
+
}, item.MenuName);
|
|
397
|
+
}))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
398
|
+
condition: isChangeConditionLoading
|
|
399
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
400
|
+
className: "".concat(prefix, "__empty-loading-block")
|
|
401
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
402
|
+
condition: !isChangeConditionLoading
|
|
403
|
+
}, /*#__PURE__*/_react["default"].createElement(_dynamicList["default"], {
|
|
404
|
+
height: rightContentHeight,
|
|
405
|
+
onDeleteFeed: handleDeleteFeed,
|
|
406
|
+
data: dynamicData
|
|
407
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
408
|
+
condition: isLoadingMore || isChangeConditionLoading
|
|
409
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
410
|
+
className: "".concat(prefix, "__content-left-loading")
|
|
411
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
412
|
+
condition: dynamicData.length > 0 && noMoreData
|
|
413
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
414
|
+
className: "".concat(prefix, "__no-more-data")
|
|
415
|
+
}, (0, _getLocale.getLocale)("Mod_Nomore")))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
416
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-right"))
|
|
417
|
+
}, /*#__PURE__*/_react["default"].createElement(_quickOperation["default"], null), /*#__PURE__*/_react["default"].createElement(_advertise["default"], null), /*#__PURE__*/_react["default"].createElement(_dynamicTopping["default"], null), /*#__PURE__*/_react["default"].createElement(_dynamicLikeRanking["default"], null), /*#__PURE__*/_react["default"].createElement(_dynamicLiking["default"], null), /*#__PURE__*/_react["default"].createElement(_myTeam["default"], null), /*#__PURE__*/_react["default"].createElement(_onlineBroadcast["default"], null))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
418
|
+
condition: notFixedTop
|
|
419
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
420
|
+
className: "".concat(prefix, "__go-to-top"),
|
|
421
|
+
onClick: handleScrollToTop
|
|
422
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
423
|
+
className: "".concat(prefix, "__go-to-top-img")
|
|
424
|
+
})))));
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
var _default = Dynamic;
|
|
428
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.DynamicTopping = exports.DynamicQuickOperation = exports.DynamicList = exports.DynamicLiking = exports.DynamicLikeRanking = exports.DynamicItem = void 0;
|
|
7
|
+
|
|
8
|
+
var _quickOperation = _interopRequireDefault(require("../quick-operation"));
|
|
9
|
+
|
|
10
|
+
var _dynamic = _interopRequireDefault(require("../dynamic"));
|
|
11
|
+
|
|
12
|
+
var _dynamicList = _interopRequireDefault(require("../dynamic-list"));
|
|
13
|
+
|
|
14
|
+
var _dynamicItem = _interopRequireDefault(require("../dynamic-item"));
|
|
15
|
+
|
|
16
|
+
var _dynamicTopping = _interopRequireDefault(require("../dynamic-topping"));
|
|
17
|
+
|
|
18
|
+
var _dynamicLiking = _interopRequireDefault(require("../dynamic-liking"));
|
|
19
|
+
|
|
20
|
+
var _dynamicLikeRanking = _interopRequireDefault(require("../dynamic-like-ranking"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var _default = _dynamic["default"];
|
|
25
|
+
exports["default"] = _default;
|
|
26
|
+
var DynamicList = _dynamicList["default"];
|
|
27
|
+
exports.DynamicList = DynamicList;
|
|
28
|
+
var DynamicQuickOperation = _quickOperation["default"];
|
|
29
|
+
exports.DynamicQuickOperation = DynamicQuickOperation;
|
|
30
|
+
var DynamicItem = _dynamicItem["default"];
|
|
31
|
+
exports.DynamicItem = DynamicItem;
|
|
32
|
+
var DynamicTopping = _dynamicTopping["default"];
|
|
33
|
+
exports.DynamicTopping = DynamicTopping;
|
|
34
|
+
var DynamicLiking = _dynamicLiking["default"];
|
|
35
|
+
exports.DynamicLiking = DynamicLiking;
|
|
36
|
+
var DynamicLikeRanking = _dynamicLikeRanking["default"];
|
|
37
|
+
exports.DynamicLikeRanking = DynamicLikeRanking;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>top</title>
|
|
4
|
+
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="关键成果" transform="translate(-1306.000000, -1911.000000)" fill="#141C28">
|
|
6
|
+
<g id="编组-9" transform="translate(1292.000000, 1897.000000)">
|
|
7
|
+
<g id="top" transform="translate(14.000000, 14.000000)">
|
|
8
|
+
<path d="M12.0142136,5.6 C12.2358884,5.6 12.4365049,5.69016094 12.5813929,5.83581246 C12.640826,5.86963662 12.6972878,5.91247294 12.7485281,5.96371324 L12.7485281,5.96371324 L18.9710678,12.1862529 C19.2834872,12.4986723 19.2834872,13.0052043 18.9710678,13.3176238 C18.6586484,13.6300432 18.1521164,13.6300432 17.839697,13.3176238 L17.839697,13.3176238 L12.8140447,8.292 L12.8142136,20.8 C12.8142136,21.2418278 12.4560414,21.6 12.0142136,21.6 C11.5723858,21.6 11.2142136,21.2418278 11.2142136,20.8 L11.2140447,8.292 L6.18873016,13.3176238 C5.87631073,13.6300432 5.36977875,13.6300432 5.05735931,13.3176238 C4.74493988,13.0052043 4.74493988,12.4986723 5.05735931,12.1862529 L11.279899,5.96371324 C11.3309062,5.91270599 11.3870877,5.87002645 11.4467538,5.83567462 C11.5910041,5.69057405 11.7920315,5.6 12.0142136,5.6 Z" id="形状结合"></path>
|
|
9
|
+
<path d="M12,-5.8 C12.4418278,-5.8 12.8,-5.4418278 12.8,-5 L12.8,11.4 C12.8,11.8418278 12.4418278,12.2 12,12.2 C11.5581722,12.2 11.2,11.8418278 11.2,11.4 L11.2,-5 C11.2,-5.4418278 11.5581722,-5.8 12,-5.8 Z" id="矩形" transform="translate(12.000000, 3.200000) rotate(-270.000000) translate(-12.000000, -3.200000) "></path>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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
|
|
9
|
-
|
|
10
|
-
var _dynamicItem = _interopRequireDefault(require("./dynamic-item"));
|
|
10
|
+
var _exportModule = _interopRequireWildcard(require("./export-module"));
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
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); }
|
|
13
13
|
|
|
14
|
-
function
|
|
14
|
+
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; }
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
_exportModule["default"].List = _exportModule.DynamicList;
|
|
17
|
+
_exportModule["default"].Item = _exportModule.DynamicItem;
|
|
18
|
+
_exportModule["default"].LikeRanking = _exportModule.DynamicLikeRanking;
|
|
19
|
+
_exportModule["default"].Liking = _exportModule.DynamicLiking;
|
|
20
|
+
_exportModule["default"].QuickOperation = _exportModule.DynamicQuickOperation;
|
|
21
|
+
_exportModule["default"].Topping = _exportModule.DynamicTopping;
|
|
22
|
+
var _default = _exportModule["default"];
|
|
20
23
|
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|