@titaui/pc 1.5.78 → 1.5.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/index.js +1 -9
- package/lib/components/change-okr/Filter.js +65 -133
- package/lib/components/change-okr/Item.js +0 -6
- package/lib/components/change-okr/filterTab.js +0 -2
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +3 -4
- package/lib/components/communication/CommunicationRecord.js +161 -116
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +28 -53
- package/lib/components/communication/style.js +25 -21
- package/lib/components/dropdown-layer/icon-item.js +3 -5
- package/lib/components/dropdown-layer/index.css +0 -16
- package/lib/components/dropdown-layer/index.js +14 -21
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/form/form-fields/input/index.css +0 -11
- package/lib/components/form/form-fields/input/index.js +1 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/mblog/components/MblogAction.js +6 -10
- package/lib/components/mblog/index.js +11 -24
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +0 -4
- package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +8 -15
- package/lib/components/okr-flow/child-node/work-node.js +1 -7
- package/lib/components/okr-period-selector/select-cycle.js +151 -139
- package/lib/components/okr-progress-detail/index.css +0 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/index.js +4 -4
- package/lib/components/period-selector/common.js +4 -149
- package/lib/components/period-selector/components/selector/index.js +38 -103
- package/lib/components/period-selector/components/selector/style.js +9 -23
- package/lib/components/period-selector/index.js +28 -29
- package/lib/components/popup/index.js +1 -3
- package/lib/components/radio/index.css +0 -5
- package/lib/components/radio/radio.js +4 -12
- package/lib/components/table/index.css +1 -0
- package/lib/components/upload/components/uploadedPreview.js +54 -62
- package/lib/components/upload/index.js +57 -89
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upvote/index.js +14 -37
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +0 -4
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +24 -50
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +2 -11
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/index.js +5 -49
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +0 -18
- package/lib/pages/home-page/components/data-list/table/utils-function.js +3 -6
- package/lib/utils/auth.js +5 -46
- package/lib/utils/bs-global.js +2 -26
- package/lib/utils/tools.js +20 -140
- package/package.json +2 -2
- package/lib/components/avatar/icon-avatar/index.css +0 -15
- package/lib/components/avatar/icon-avatar/index.js +0 -50
- package/lib/components/avatar/num-avatar/index.css +0 -12
- package/lib/components/avatar/num-avatar/index.js +0 -34
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/drop-down-arrow.js +0 -93
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/primary.js +0 -33
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/default-button/index.css +0 -49
- package/lib/components/button/default-button/index.js +0 -51
- package/lib/components/button/export-button/index.css +0 -51
- package/lib/components/button/export-button/index.js +0 -81
- package/lib/components/button/images/daoru.svg +0 -18
- package/lib/components/button/index.js +0 -23
- package/lib/components/button/interface.js +0 -5
- package/lib/components/communication/index.css +0 -63
- package/lib/components/create-okr/animation/check-animation.js +0 -2746
- package/lib/components/create-okr/constant.js +0 -27
- package/lib/components/create-okr/createCycle.js +0 -171
- package/lib/components/create-okr/createSuccessCmp.js +0 -233
- package/lib/components/create-okr/createSuccessCmpWrapper.js +0 -20
- package/lib/components/create-okr/fields/date-cycle.js +0 -98
- package/lib/components/create-okr/fields/index.css +0 -346
- package/lib/components/create-okr/fields/index.js +0 -17
- package/lib/components/create-okr/fields/input-with-err-popup.js +0 -57
- package/lib/components/create-okr/fields/o-new-name.js +0 -197
- package/lib/components/create-okr/fields/okr-case.js +0 -98
- package/lib/components/create-okr/fields/okr-classify.js +0 -51
- package/lib/components/create-okr/fields/okr-create-suggest.js +0 -147
- package/lib/components/create-okr/fields/okr-new-user-selector.js +0 -106
- package/lib/components/create-okr/fields/okr-parent.js +0 -157
- package/lib/components/create-okr/fields/okr-type-detail.js +0 -196
- package/lib/components/create-okr/fields/okr-type.js +0 -131
- package/lib/components/create-okr/fields/okr-visibility-detail.js +0 -224
- package/lib/components/create-okr/fields/okr-visibility.js +0 -169
- package/lib/components/create-okr/img/check-normal.svg +0 -29
- package/lib/components/create-okr/img/check-right.svg +0 -16
- package/lib/components/create-okr/img/check-wrong.svg +0 -29
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +0 -14
- package/lib/components/create-okr/img/create-success-message.svg +0 -1
- package/lib/components/create-okr/img/create-success-right-quotation.svg +0 -14
- package/lib/components/create-okr/img/create-success-shadow.svg +0 -23
- package/lib/components/create-okr/img/example.svg +0 -11
- package/lib/components/create-okr/img/hand.svg +0 -12
- package/lib/components/create-okr/img/kr-add.svg +0 -12
- package/lib/components/create-okr/img/left-quotation.svg +0 -12
- package/lib/components/create-okr/img/light.svg +0 -1
- package/lib/components/create-okr/img/pack-up.js +0 -28
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +0 -12
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +0 -19
- package/lib/components/create-okr/img/teach-okr.svg +0 -17
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +0 -12
- package/lib/components/create-okr/index.css +0 -446
- package/lib/components/create-okr/index.js +0 -911
- package/lib/components/create-okr/interface.js +0 -5
- package/lib/components/create-okr/kr-items/index.css +0 -180
- package/lib/components/create-okr/kr-items/kr-item-weight.js +0 -194
- package/lib/components/create-okr/kr-items/krDatas.js +0 -299
- package/lib/components/create-okr/kr-items/krItem.js +0 -167
- package/lib/components/create-okr/objectType.js +0 -273
- package/lib/components/create-okr/request-api.js +0 -220
- package/lib/components/create-okr/style.js +0 -100
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +0 -124
- package/lib/components/create-okr/utils/helper.js +0 -99
- package/lib/components/create-okr/utils/index.js +0 -23
- package/lib/components/dynamic/components/condition-render/index.js +0 -20
- package/lib/components/dynamic/components/dangerous-html/index.js +0 -22
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -78
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -192
- package/lib/components/dynamic/components/obj-status/index.css +0 -22
- package/lib/components/dynamic/components/obj-status/index.js +0 -38
- package/lib/components/dynamic/components/percent/index.css +0 -21
- package/lib/components/dynamic/components/percent/index.js +0 -38
- package/lib/components/dynamic/components/title/index.css +0 -35
- package/lib/components/dynamic/components/title/index.js +0 -59
- package/lib/components/dynamic/constant.js +0 -96
- package/lib/components/dynamic/context/index.js +0 -13
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -101
- package/lib/components/dynamic/dynamic-item/components/header/index.js +0 -294
- 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-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +0 -173
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +0 -54
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +0 -107
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +0 -48
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +0 -89
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +0 -96
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +0 -171
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +0 -67
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +0 -110
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +0 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +0 -111
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +0 -158
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +0 -215
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +0 -16
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +0 -91
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +0 -125
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +0 -192
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +0 -138
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +0 -183
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +0 -153
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +0 -138
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +0 -97
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +0 -207
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +0 -54
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +0 -107
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +0 -50
- 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/dynamic-item/dynamic-task/index.css +0 -111
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +0 -164
- package/lib/components/dynamic/dynamic-item/index.css +0 -128
- package/lib/components/dynamic/dynamic-item/index.js +0 -352
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- 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/index.css +0 -126
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -157
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -107
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/index.js +0 -76
- package/lib/components/dynamic/dynamic-liking/item.js +0 -90
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-list/index.css +0 -36
- package/lib/components/dynamic/dynamic-list/index.js +0 -61
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -130
- package/lib/components/dynamic/dynamic-topping/index.js +0 -78
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -138
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -204
- package/lib/components/dynamic/dynamic.js +0 -391
- package/lib/components/dynamic/export-module/index.js +0 -33
- package/lib/components/dynamic/img/dynamic-P1.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P2.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P3.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P4.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P5.svg +0 -15
- package/lib/components/dynamic/img/dynamic-delay.svg +0 -17
- package/lib/components/dynamic/img/dynamic-desire.svg +0 -61
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +0 -17
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +0 -13
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +0 -17
- package/lib/components/dynamic/img/dynamic-promise.svg +0 -61
- package/lib/components/dynamic/img/dynamic-reword.svg +0 -24
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +0 -13
- package/lib/components/dynamic/img/dynamic-risk.svg +0 -17
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/index.js +0 -27
- package/lib/components/dynamic/interface.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -42
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -112
- package/lib/components/dynamic/request-api.js +0 -92
- package/lib/components/dynamic/util.js +0 -140
- package/lib/components/file-list/components/single-file/index.css +0 -84
- package/lib/components/file-list/components/single-file/index.js +0 -115
- package/lib/components/file-list/img/new-file-list-doc.svg +0 -1
- package/lib/components/file-list/img/new-file-list-other.svg +0 -1
- package/lib/components/file-list/img/new-file-list-pdf.svg +0 -1
- package/lib/components/file-list/img/new-file-list-ppt.svg +0 -1
- package/lib/components/file-list/img/new-file-list-radio.svg +0 -1
- package/lib/components/file-list/img/new-file-list-video.svg +0 -1
- package/lib/components/file-list/img/new-file-list-xls.svg +0 -1
- package/lib/components/file-list/index.css +0 -5
- package/lib/components/file-list/index.js +0 -61
- package/lib/components/file-list/interface.js +0 -5
- package/lib/components/file-list/util.js +0 -78
- package/lib/components/img-viewer/icon/enlarge.js +0 -30
- package/lib/components/img-viewer/icon/left-rotate.js +0 -46
- package/lib/components/img-viewer/icon/right-rotate.js +0 -44
- package/lib/components/img-viewer/icon/shrink.js +0 -37
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +0 -155
- package/lib/components/img-viewer/index.js +0 -228
- package/lib/components/img-viewer/interface.js +0 -5
- package/lib/components/img-viewer/util.js +0 -16
- package/lib/components/publish-dynamic-modal/index.js +0 -13
- package/lib/components/publish-dynamic-modal/interface.js +0 -5
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +0 -3
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +0 -191
- package/lib/components/publish-dynamic-modal/requist-api.js +0 -48
- package/lib/components/search-key-handle/index.js +0 -39
- package/lib/components/upload/img/doc.svg +0 -1
- package/lib/components/upload/img/other.svg +0 -1
- package/lib/components/upload/img/pdf.svg +0 -1
- package/lib/components/upload/img/ppt.svg +0 -1
- package/lib/components/upload/img/radio.svg +0 -1
- package/lib/components/upload/img/video.svg +0 -1
- package/lib/components/upload/img/xls.svg +0 -1
- package/lib/components/upload/index.css +0 -26
- package/lib/components/upload/util.js +0 -102
- package/lib/components-v1/buttonv2/ButtonLinked.js +0 -35
- package/lib/components-v1/buttonv2/ButtonOutlined.js +0 -64
- package/lib/components-v1/buttonv2/ButtonRounded.js +0 -101
- package/lib/components-v1/buttonv2/DefaultButton.js +0 -86
- package/lib/components-v1/buttonv2/index.js +0 -37
- package/lib/components-v1/buttonv2/style/style.js +0 -53
- package/lib/components-v1/buttonv2/style/theme.css +0 -3
- package/lib/components-v1/confirm/index.js +0 -158
- package/lib/pages/dynamic/index.css +0 -5
- package/lib/pages/dynamic/index.js +0 -25
- package/lib/pages/like-ranking/column.js +0 -141
- package/lib/pages/like-ranking/filter-buttons/department.js +0 -44
- package/lib/pages/like-ranking/filter-buttons/group.js +0 -34
- package/lib/pages/like-ranking/filter-buttons/index.css +0 -19
- package/lib/pages/like-ranking/filter-buttons/index.js +0 -44
- package/lib/pages/like-ranking/filter-buttons/modular.js +0 -110
- package/lib/pages/like-ranking/filter-buttons/name.js +0 -73
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +0 -27
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +0 -38
- package/lib/pages/like-ranking/filter-buttons/timer.js +0 -56
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/image/ranking-1.png +0 -0
- package/lib/pages/like-ranking/image/ranking-2.png +0 -0
- package/lib/pages/like-ranking/image/ranking-3.png +0 -0
- package/lib/pages/like-ranking/index.css +0 -185
- package/lib/pages/like-ranking/index.js +0 -252
- package/lib/pages/like-ranking/mock.js +0 -366
- package/lib/pages/like-ranking/request-api.js +0 -15
- package/lib/utils/format-time.js +0 -161
- package/lib/utils/helpers.js +0 -41
- package/lib/utils/roundWeight.js +0 -105
- package/yarn-error.log +0 -15894
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
|
|
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 _context = require("../../context");
|
|
15
|
-
|
|
16
|
-
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
|
-
|
|
18
|
-
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
19
|
-
|
|
20
|
-
var _tools = require("../../../../utils/tools");
|
|
21
|
-
|
|
22
|
-
var _title = _interopRequireDefault(require("../../components/title"));
|
|
23
|
-
|
|
24
|
-
var _util = require("../../util");
|
|
25
|
-
|
|
26
|
-
require("./index.css");
|
|
27
|
-
|
|
28
|
-
var _excluded = ["data"];
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
-
|
|
32
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
-
|
|
34
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
-
|
|
36
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
-
|
|
42
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
-
|
|
44
|
-
var EReportType = {
|
|
45
|
-
8: "日报:",
|
|
46
|
-
26: "周报:",
|
|
47
|
-
27: "月报:"
|
|
48
|
-
};
|
|
49
|
-
var prefix = "titaui-dynamic-report-item";
|
|
50
|
-
|
|
51
|
-
var DynamicReply = function DynamicReply(_ref) {
|
|
52
|
-
var data = _ref.data,
|
|
53
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
54
|
-
|
|
55
|
-
var submitState = data.submitState,
|
|
56
|
-
feedId = data.feedId,
|
|
57
|
-
feedType = data.feedType,
|
|
58
|
-
publishUser = data.publishUser;
|
|
59
|
-
var contentRichTextRef = (0, _react.useRef)();
|
|
60
|
-
var workPlanRichTextRef = (0, _react.useRef)();
|
|
61
|
-
|
|
62
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
63
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
64
|
-
|
|
65
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
66
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
-
|
|
69
|
-
var handleClickTitle = function handleClickTitle() {
|
|
70
|
-
// @ts-ignore
|
|
71
|
-
Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var renderSuffix = (0, _react.useMemo)(function () {
|
|
75
|
-
var _classNames, _classNames2;
|
|
76
|
-
|
|
77
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
|
-
className: (0, _classnames["default"])(prefix + "__complete-type", (_classNames = {}, _defineProperty(_classNames, prefix + "__complete-type--normal", submitState === 1), _defineProperty(_classNames, prefix + "__complete-type--delay", submitState === 2), _classNames))
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: (0, _classnames["default"])("".concat(prefix, "__complete-type-icon"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--normal"), submitState === 1), _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--delay"), submitState === 2), _classNames2))
|
|
81
|
-
}), submitState === 1 ? "按" : "延", "\u65F6\u63D0\u4EA4");
|
|
82
|
-
}, []);
|
|
83
|
-
var renderDesc = (0, _react.useMemo)(function () {
|
|
84
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
-
className: prefix + "__operate-desc"
|
|
86
|
-
}, "\u7684\u603B\u7ED3"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
|
-
className: prefix + "-desc-operate-type",
|
|
88
|
-
style: {
|
|
89
|
-
background: feedTypeColor
|
|
90
|
-
}
|
|
91
|
-
}, feedTypeText));
|
|
92
|
-
}, []);
|
|
93
|
-
(0, _react.useEffect)(function () {
|
|
94
|
-
(0, _tools.highLightWord)({
|
|
95
|
-
parentDom: contentRichTextRef.current,
|
|
96
|
-
keyWord: searchKeyWord
|
|
97
|
-
});
|
|
98
|
-
(0, _tools.highLightWord)({
|
|
99
|
-
parentDom: workPlanRichTextRef.current,
|
|
100
|
-
keyWord: searchKeyWord
|
|
101
|
-
});
|
|
102
|
-
}, [data, searchKeyWord]);
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: prefix
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
106
|
-
data: data
|
|
107
|
-
}, restProps, {
|
|
108
|
-
desc: renderDesc,
|
|
109
|
-
user: publishUser
|
|
110
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
-
className: prefix + "__content"
|
|
112
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
113
|
-
content: EReportType[data.reportType] + data.name,
|
|
114
|
-
onClickTitle: handleClickTitle,
|
|
115
|
-
suffixContent: renderSuffix
|
|
116
|
-
}), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
-
className: prefix + "__summary"
|
|
118
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
|
-
className: prefix + "__block-title"
|
|
120
|
-
}, "\u603B\u7ED3\u4E0E\u969C\u788D"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
|
-
className: prefix + "__content-text",
|
|
122
|
-
ref: contentRichTextRef
|
|
123
|
-
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
124
|
-
htmlText: data.contentRichText
|
|
125
|
-
}))), data.workPlanRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
-
className: prefix + "__work-plan"
|
|
127
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
|
-
className: prefix + "__block-title"
|
|
129
|
-
}, "\u4E0B\u4E00\u6B65\u5DE5\u4F5C\u8BA1\u5212"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
-
className: prefix + "__content-text",
|
|
131
|
-
ref: workPlanRichTextRef
|
|
132
|
-
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
133
|
-
htmlText: data.workPlanRichText
|
|
134
|
-
})))));
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
var _default = DynamicReply;
|
|
138
|
-
exports["default"] = _default;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-reward-item {
|
|
2
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dynamic-reward-item__content {
|
|
6
|
-
margin-left: 69px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-dynamic-reward-item__title {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.titaui-dynamic-reward-item__description {
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
color: #3f4755;
|
|
18
|
-
line-height: 22px;
|
|
19
|
-
display: flex;
|
|
20
|
-
margin-top: 12px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-reward-item__description-quoto {
|
|
24
|
-
width: 12px;
|
|
25
|
-
height: 12px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.titaui-dynamic-reward-item__description-quoto--left {
|
|
29
|
-
margin-right: 8px;
|
|
30
|
-
margin-top: -6px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.titaui-dynamic-reward-item__description-quoto--right {
|
|
34
|
-
margin-left: 8px;
|
|
35
|
-
margin-top: 4px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.titaui-dynamic-reward-item__status-left {
|
|
39
|
-
margin-left: 12px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.titaui-dynamic-reward-item__percent-left {
|
|
43
|
-
margin-left: 8px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.titaui-dynamic-reward-item__reward-tag {
|
|
47
|
-
display: inline-block;
|
|
48
|
-
padding: 1px 12px;
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
line-height: 18px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.titaui-dynamic-reward-item__operate-desc {
|
|
54
|
-
font-size: 14px;
|
|
55
|
-
font-weight: 400;
|
|
56
|
-
color: #89919f;
|
|
57
|
-
line-height: 22px;
|
|
58
|
-
margin: 0 8px 0 4px;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.titaui-dynamic-reward-item-desc-operate-type {
|
|
63
|
-
display: inline-flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
width: 40px;
|
|
67
|
-
height: 18px;
|
|
68
|
-
min-width: 40px;
|
|
69
|
-
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
70
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
71
|
-
border-radius: 14px 10px 10px 4px;
|
|
72
|
-
font-size: 12px;
|
|
73
|
-
color: #ffffff;
|
|
74
|
-
line-height: 18px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.titaui-dynamic-reward-item__reward-img {
|
|
78
|
-
width: 25px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.titaui-dynamic-reward-item__reward-user {
|
|
82
|
-
font-size: 14px;
|
|
83
|
-
font-weight: 600;
|
|
84
|
-
color: #3f4755;
|
|
85
|
-
line-height: 22px;
|
|
86
|
-
margin: 0 4px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.titaui-dynamic-reward-item__reward-user:hover {
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
color: #2879ff;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.titaui-dynamic-reward-item__reward-user--not-link:hover {
|
|
95
|
-
cursor: default !important;
|
|
96
|
-
color: #3f4755 !important;
|
|
97
|
-
}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
|
|
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 _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
-
|
|
16
|
-
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
-
|
|
18
|
-
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
19
|
-
|
|
20
|
-
var _context = require("../../context");
|
|
21
|
-
|
|
22
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
|
-
|
|
24
|
-
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
|
-
|
|
26
|
-
var _title = _interopRequireDefault(require("../../components/title"));
|
|
27
|
-
|
|
28
|
-
var _constant = require("../../constant");
|
|
29
|
-
|
|
30
|
-
var _tools = require("../../../../utils/tools");
|
|
31
|
-
|
|
32
|
-
var _openData = require("../../../../utils/open-data");
|
|
33
|
-
|
|
34
|
-
var _util = require("../../util");
|
|
35
|
-
|
|
36
|
-
require("./index.css");
|
|
37
|
-
|
|
38
|
-
var _excluded = ["data"];
|
|
39
|
-
|
|
40
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
|
-
|
|
42
|
-
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
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
|
-
|
|
48
|
-
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; }
|
|
49
|
-
|
|
50
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
-
|
|
52
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
|
-
|
|
54
|
-
var prefix = "titaui-dynamic-reward-item";
|
|
55
|
-
|
|
56
|
-
var DynamicReward = function DynamicReward(_ref) {
|
|
57
|
-
var data = _ref.data,
|
|
58
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
-
|
|
60
|
-
var rewardContent = data.rewardContent,
|
|
61
|
-
rewardTags = data.rewardTags,
|
|
62
|
-
obj = data.obj,
|
|
63
|
-
classify = data.classify,
|
|
64
|
-
feedType = data.feedType,
|
|
65
|
-
rewardUser = data.rewardUser,
|
|
66
|
-
publishUser = data.publishUser;
|
|
67
|
-
|
|
68
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
69
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
70
|
-
|
|
71
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
72
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
73
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
74
|
-
|
|
75
|
-
var handleClickTitle = function handleClickTitle() {
|
|
76
|
-
if (!obj) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
var objType = obj.objType,
|
|
81
|
-
objId = obj.objId;
|
|
82
|
-
|
|
83
|
-
if (objType === _constant.EObjType.Kr) {
|
|
84
|
-
_manager["default"].open("krDetail", {
|
|
85
|
-
krId: objId
|
|
86
|
-
});
|
|
87
|
-
} else if (objType === _constant.EObjType.O) {
|
|
88
|
-
_manager["default"].open("okrDetail", {
|
|
89
|
-
okrId: objId
|
|
90
|
-
});
|
|
91
|
-
} else if (objType === _constant.EObjType.Task) {
|
|
92
|
-
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
93
|
-
} else if (objType === _constant.EObjType.Project) {
|
|
94
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + objId));
|
|
95
|
-
} else if (objType === _constant.EObjType.Assess) {
|
|
96
|
-
var assessId = data.url.split("assessId=")[1];
|
|
97
|
-
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=" + assessId));
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
var renderTitle = (0, _react.useMemo)(function () {
|
|
102
|
-
if (!obj) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
var objType = obj.objType,
|
|
107
|
-
objName = obj.objName;
|
|
108
|
-
|
|
109
|
-
if (objType === _constant.EObjType.Kr) {
|
|
110
|
-
return "KR:" + objName;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (objType === _constant.EObjType.O) {
|
|
114
|
-
return "O:" + objName;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (objType === _constant.EObjType.Task) {
|
|
118
|
-
return "任务:" + objName;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (objType === _constant.EObjType.Project) {
|
|
122
|
-
return "项目:" + objName;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if (objType === _constant.EObjType.Assess) {
|
|
126
|
-
return "考核:" + objName;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return "";
|
|
130
|
-
}, []);
|
|
131
|
-
var Classify = (0, _react.useMemo)(function () {
|
|
132
|
-
var _classNames;
|
|
133
|
-
|
|
134
|
-
if (!classify || Number(classify) == 0) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
139
|
-
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify === 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify === 2), _classNames))
|
|
140
|
-
});
|
|
141
|
-
}, [classify]);
|
|
142
|
-
var renderDesc = (0, _react.useMemo)(function () {
|
|
143
|
-
var url = ""; // const url = getUrlForUserPage({
|
|
144
|
-
// userId: rewardUser.name,
|
|
145
|
-
// userType: rewardUser.userType,
|
|
146
|
-
// });
|
|
147
|
-
|
|
148
|
-
var handleOpenUserPage = function handleOpenUserPage() {
|
|
149
|
-
if (!url) return;
|
|
150
|
-
window.open(url, "_blank");
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
154
|
-
className: prefix + "__operate-desc"
|
|
155
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
|
-
className: prefix + "__reward"
|
|
157
|
-
}, "\u83B7\u5F97", /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
|
-
className: (0, _classnames["default"])(prefix + "__reward-user", _defineProperty({}, prefix + "__reward-user--not-link", !url)),
|
|
159
|
-
onClick: handleOpenUserPage
|
|
160
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
161
|
-
name: rewardUser.name,
|
|
162
|
-
id: rewardUser.userId
|
|
163
|
-
})), "\u6253\u8D4F")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
164
|
-
className: prefix + "-desc-operate-type",
|
|
165
|
-
style: {
|
|
166
|
-
background: feedTypeColor
|
|
167
|
-
}
|
|
168
|
-
}, feedTypeText));
|
|
169
|
-
}, []);
|
|
170
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
|
-
className: prefix
|
|
172
|
-
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
173
|
-
data: data,
|
|
174
|
-
desc: renderDesc,
|
|
175
|
-
user: publishUser
|
|
176
|
-
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
|
-
className: prefix + "__content"
|
|
178
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
179
|
-
className: prefix + "__title"
|
|
180
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
181
|
-
content: renderTitle,
|
|
182
|
-
onClickTitle: handleClickTitle,
|
|
183
|
-
suffixContent: Classify
|
|
184
|
-
})), rewardContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
|
-
className: prefix + "__description"
|
|
186
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
187
|
-
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--left"),
|
|
188
|
-
src: _dynamicLeftQuoto["default"]
|
|
189
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
190
|
-
str: rewardContent,
|
|
191
|
-
keyWord: searchKeyWord
|
|
192
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
193
|
-
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--right"),
|
|
194
|
-
src: _dynamicRightQuoto["default"]
|
|
195
|
-
}), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
|
|
196
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
-
className: prefix + "__reward-tag",
|
|
198
|
-
style: {
|
|
199
|
-
background: (0, _tools.hexToRgba)(reward.color, 0.2),
|
|
200
|
-
color: reward.color
|
|
201
|
-
}
|
|
202
|
-
}, reward.tagName);
|
|
203
|
-
})))));
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
var _default = DynamicReward;
|
|
207
|
-
exports["default"] = _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-share-item {
|
|
2
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dynamic-share-item__content {
|
|
6
|
-
display: flex;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
color: #3f4755;
|
|
9
|
-
line-height: 22px;
|
|
10
|
-
margin-left: 69px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-share-item__content-quoto {
|
|
14
|
-
width: 12px;
|
|
15
|
-
height: 12px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-dynamic-share-item__content-quoto--left {
|
|
19
|
-
margin-right: 8px;
|
|
20
|
-
margin-top: -6px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-share-item__content-quoto--right {
|
|
24
|
-
margin-left: 8px;
|
|
25
|
-
margin-top: 4px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.titaui-dynamic-share-item__operate-desc {
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
font-weight: 400;
|
|
31
|
-
color: #89919f;
|
|
32
|
-
line-height: 22px;
|
|
33
|
-
margin: 0 8px 0 4px;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.titaui-dynamic-share-item-desc-operate-type {
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
padding: 0 2px;
|
|
42
|
-
height: 18px;
|
|
43
|
-
min-width: 40px;
|
|
44
|
-
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
45
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
46
|
-
border-radius: 14px 10px 10px 4px;
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
color: #ffffff;
|
|
49
|
-
line-height: 18px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.titaui-dynamic-share-item .highlight {
|
|
53
|
-
color: #f05e5e;
|
|
54
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
|
|
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 _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
-
|
|
16
|
-
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
-
|
|
18
|
-
var _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
19
|
-
|
|
20
|
-
var _context = require("../../context");
|
|
21
|
-
|
|
22
|
-
var _header = _interopRequireDefault(require("../components/header"));
|
|
23
|
-
|
|
24
|
-
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
25
|
-
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
|
-
var _tools = require("../../../../utils/tools");
|
|
29
|
-
|
|
30
|
-
require("./index.css");
|
|
31
|
-
|
|
32
|
-
var _excluded = ["data", "hasDynamicOpereateAuth"];
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
|
-
|
|
42
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
-
|
|
44
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
-
|
|
46
|
-
var prefix = "titaui-dynamic-share-item";
|
|
47
|
-
|
|
48
|
-
var DynamicShare = function DynamicShare(_ref) {
|
|
49
|
-
var data = _ref.data,
|
|
50
|
-
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
51
|
-
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
52
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
-
|
|
54
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
55
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
56
|
-
|
|
57
|
-
var contentRef = (0, _react.useRef)();
|
|
58
|
-
|
|
59
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
60
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
61
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
62
|
-
|
|
63
|
-
var renderDesc = (0, _react.useMemo)(function () {
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
|
-
className: prefix + "__operate-desc"
|
|
66
|
-
}, "\u53D1\u5E03\u7684\u5206\u4EAB"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
-
className: prefix + "-desc-operate-type",
|
|
68
|
-
style: {
|
|
69
|
-
background: feedTypeColor
|
|
70
|
-
}
|
|
71
|
-
}, feedTypeText));
|
|
72
|
-
}, []);
|
|
73
|
-
(0, _react.useEffect)(function () {
|
|
74
|
-
(0, _tools.highLightWord)({
|
|
75
|
-
parentDom: contentRef.current,
|
|
76
|
-
keyWord: searchKeyWord
|
|
77
|
-
});
|
|
78
|
-
}, [data, searchKeyWord]);
|
|
79
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
-
className: prefix
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
82
|
-
data: data,
|
|
83
|
-
desc: renderDesc,
|
|
84
|
-
showDelete: hasDynamicOpereateAuth,
|
|
85
|
-
showTopping: hasDynamicOpereateAuth,
|
|
86
|
-
user: data.publishUser
|
|
87
|
-
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
-
className: prefix + "__content"
|
|
89
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
90
|
-
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--left"),
|
|
91
|
-
src: _dynamicLeftQuoto["default"]
|
|
92
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
-
ref: contentRef
|
|
94
|
-
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
95
|
-
htmlText: data.content
|
|
96
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
97
|
-
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--right"),
|
|
98
|
-
src: _dynamicRightQuoto["default"]
|
|
99
|
-
}))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
-
className: prefix + "__files"
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
102
|
-
data: data.attachments
|
|
103
|
-
})));
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
var _default = DynamicShare;
|
|
107
|
-
exports["default"] = _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EStatusClass2StatusTypeText = exports.TaskStatusIconMapping = void 0;
|
|
7
|
-
|
|
8
|
-
var _taskCancel = _interopRequireDefault(require("./img/task-cancel.png"));
|
|
9
|
-
|
|
10
|
-
var _taskDelay = _interopRequireDefault(require("./img/task-delay.png"));
|
|
11
|
-
|
|
12
|
-
var _taskDone = _interopRequireDefault(require("./img/task-done.png"));
|
|
13
|
-
|
|
14
|
-
var _taskPause = _interopRequireDefault(require("./img/task-pause.png"));
|
|
15
|
-
|
|
16
|
-
var _taskProgress = _interopRequireDefault(require("./img/task-progress.png"));
|
|
17
|
-
|
|
18
|
-
var _taskUnaccept = _interopRequireDefault(require("./img/task-unaccept.png"));
|
|
19
|
-
|
|
20
|
-
var _taskUnstart = _interopRequireDefault(require("./img/task-unstart.png"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
var TaskStatusIconMapping = {
|
|
25
|
-
2: _taskDone["default"],
|
|
26
|
-
// 已完成
|
|
27
|
-
1: _taskProgress["default"],
|
|
28
|
-
// 进行中
|
|
29
|
-
4: _taskCancel["default"],
|
|
30
|
-
// 已取消
|
|
31
|
-
3: _taskDelay["default"],
|
|
32
|
-
// 已延迟
|
|
33
|
-
6: _taskPause["default"],
|
|
34
|
-
// 暂停中
|
|
35
|
-
0: _taskUnstart["default"],
|
|
36
|
-
// 未开始
|
|
37
|
-
5: _taskUnaccept["default"] // 未接受
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
exports.TaskStatusIconMapping = TaskStatusIconMapping;
|
|
41
|
-
var EStatusClass2StatusTypeText = {
|
|
42
|
-
2: '已完成',
|
|
43
|
-
1: '进行中',
|
|
44
|
-
4: '已取消',
|
|
45
|
-
3: '已延迟',
|
|
46
|
-
6: '暂停中',
|
|
47
|
-
0: '未开始',
|
|
48
|
-
5: '未接受'
|
|
49
|
-
};
|
|
50
|
-
exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|