@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,294 +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 _avatar = _interopRequireDefault(require("../../../../avatar"));
|
|
15
|
-
|
|
16
|
-
var _dropdownLayer = _interopRequireWildcard(require("../../../../dropdown-layer"));
|
|
17
|
-
|
|
18
|
-
var _requestApi = require("../../../request-api");
|
|
19
|
-
|
|
20
|
-
var _dialogConfirm = _interopRequireWildcard(require("../../../../dialog-confirm"));
|
|
21
|
-
|
|
22
|
-
var _popDownNotification = require("../../../../pop-down-notification");
|
|
23
|
-
|
|
24
|
-
var _openData = require("../../../../../utils/open-data");
|
|
25
|
-
|
|
26
|
-
var _conditionRender = _interopRequireDefault(require("../../../components/condition-render"));
|
|
27
|
-
|
|
28
|
-
var _tooltip = require("../../../../tooltip");
|
|
29
|
-
|
|
30
|
-
require("./index.css");
|
|
31
|
-
|
|
32
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
-
|
|
34
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
-
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
-
|
|
38
|
-
function _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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
-
|
|
42
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
43
|
-
|
|
44
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
45
|
-
|
|
46
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47
|
-
|
|
48
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
49
|
-
|
|
50
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
-
|
|
52
|
-
var prefix = "titaui-dynamic-item-header";
|
|
53
|
-
|
|
54
|
-
var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
55
|
-
var _ref$onDeleteFeed = _ref.onDeleteFeed,
|
|
56
|
-
onDeleteFeed = _ref$onDeleteFeed === void 0 ? function () {} : _ref$onDeleteFeed,
|
|
57
|
-
_ref$showDelete = _ref.showDelete,
|
|
58
|
-
showDelete = _ref$showDelete === void 0 ? false : _ref$showDelete,
|
|
59
|
-
_ref$showTopping = _ref.showTopping,
|
|
60
|
-
showTopping = _ref$showTopping === void 0 ? false : _ref$showTopping,
|
|
61
|
-
data = _ref.data,
|
|
62
|
-
desc = _ref.desc,
|
|
63
|
-
user = _ref.user;
|
|
64
|
-
var createDate = data.createDate,
|
|
65
|
-
feedId = data.feedId,
|
|
66
|
-
_data$isTop = data.isTop,
|
|
67
|
-
isTop = _data$isTop === void 0 ? false : _data$isTop,
|
|
68
|
-
_data$isCollect = data.isCollect,
|
|
69
|
-
isCollect = _data$isCollect === void 0 ? false : _data$isCollect;
|
|
70
|
-
|
|
71
|
-
var _useState = (0, _react.useState)(isTop),
|
|
72
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
73
|
-
nowIsTop = _useState2[0],
|
|
74
|
-
setNowIsTop = _useState2[1];
|
|
75
|
-
|
|
76
|
-
var _useState3 = (0, _react.useState)(isCollect),
|
|
77
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
78
|
-
nowIsCollect = _useState4[0],
|
|
79
|
-
setNowIsCollect = _useState4[1];
|
|
80
|
-
|
|
81
|
-
var _useState5 = (0, _react.useState)(false),
|
|
82
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
83
|
-
showDialogConfirm = _useState6[0],
|
|
84
|
-
setShowDialogConfirm = _useState6[1];
|
|
85
|
-
|
|
86
|
-
var _useState7 = (0, _react.useState)(false),
|
|
87
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
88
|
-
selectVisible = _useState8[0],
|
|
89
|
-
setSelectVisible = _useState8[1]; // const url = getUrlForUserPage({
|
|
90
|
-
// userId: publishUser.id || publishUser.userId,
|
|
91
|
-
// userType: publishUser.userType || 2,
|
|
92
|
-
// });
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
var url = "";
|
|
96
|
-
|
|
97
|
-
var onChangeHandler = function onChangeHandler(name, _) {
|
|
98
|
-
if (name === "collect") {
|
|
99
|
-
if (nowIsCollect) {
|
|
100
|
-
(0, _requestApi.cancelCollectDynamic)({
|
|
101
|
-
feedId: feedId
|
|
102
|
-
}).then(function (resp) {
|
|
103
|
-
if (resp.Code === 1) {
|
|
104
|
-
setNowIsCollect(!nowIsCollect);
|
|
105
|
-
setSelectVisible(false);
|
|
106
|
-
|
|
107
|
-
_popDownNotification.Toast.Success("操作成功", {
|
|
108
|
-
canClose: false
|
|
109
|
-
});
|
|
110
|
-
} else {
|
|
111
|
-
_popDownNotification.Toast.Error(resp.Message, {
|
|
112
|
-
canClose: false
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
} else {
|
|
117
|
-
(0, _requestApi.collectDynamic)({
|
|
118
|
-
feedId: feedId
|
|
119
|
-
}).then(function (resp) {
|
|
120
|
-
if (resp.Code === 1) {
|
|
121
|
-
setNowIsCollect(!nowIsCollect);
|
|
122
|
-
setSelectVisible(false);
|
|
123
|
-
|
|
124
|
-
_popDownNotification.Toast.Success("操作成功", {
|
|
125
|
-
canClose: false
|
|
126
|
-
});
|
|
127
|
-
} else {
|
|
128
|
-
_popDownNotification.Toast.Error(resp.Message, {
|
|
129
|
-
canClose: false
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
var handleTopOperateClick = function handleTopOperateClick() {
|
|
138
|
-
if (nowIsTop) {
|
|
139
|
-
(0, _requestApi.cancelTopDynamic)({
|
|
140
|
-
feedId: feedId
|
|
141
|
-
}).then(function (resp) {
|
|
142
|
-
if (resp.Code === 1) {
|
|
143
|
-
setNowIsTop(!nowIsTop);
|
|
144
|
-
setSelectVisible(false);
|
|
145
|
-
|
|
146
|
-
_popDownNotification.Toast.Success("操作成功", {
|
|
147
|
-
canClose: false
|
|
148
|
-
});
|
|
149
|
-
} else {
|
|
150
|
-
_popDownNotification.Toast.Error(resp.Message, {
|
|
151
|
-
canClose: false
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
} else {
|
|
156
|
-
(0, _requestApi.topDynamic)({
|
|
157
|
-
feedId: feedId
|
|
158
|
-
}).then(function (resp) {
|
|
159
|
-
if (resp.Code === 1) {
|
|
160
|
-
setNowIsTop(!nowIsTop);
|
|
161
|
-
setSelectVisible(false);
|
|
162
|
-
|
|
163
|
-
_popDownNotification.Toast.Success("操作成功", {
|
|
164
|
-
canClose: false
|
|
165
|
-
});
|
|
166
|
-
} else {
|
|
167
|
-
_popDownNotification.Toast.Error(resp.Message, {
|
|
168
|
-
canClose: false
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
var handleDeleteClick = function handleDeleteClick() {
|
|
176
|
-
setShowDialogConfirm(true);
|
|
177
|
-
setSelectVisible(false);
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
var enSureDeleteDynamic = function enSureDeleteDynamic() {
|
|
181
|
-
(0, _requestApi.deleteDynamic)({
|
|
182
|
-
feedId: feedId
|
|
183
|
-
}).then(function (resp) {
|
|
184
|
-
if (resp.Code === 1) {
|
|
185
|
-
_popDownNotification.Toast.Success("删除成功", {
|
|
186
|
-
canClose: false
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
setShowDialogConfirm(false);
|
|
190
|
-
onDeleteFeed && onDeleteFeed(feedId);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
var cancelDeleteDynamic = function cancelDeleteDynamic() {
|
|
196
|
-
setShowDialogConfirm(false);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
var handleShowDropSelector = function handleShowDropSelector() {
|
|
200
|
-
setSelectVisible(true);
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
var handleOpenUserPage = function handleOpenUserPage() {
|
|
204
|
-
if (!url) return;
|
|
205
|
-
window.open(url, "_blank");
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
var renderDialogConfirm = (0, _react.useMemo)(function () {
|
|
209
|
-
return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
210
|
-
visible: showDialogConfirm,
|
|
211
|
-
type: "warning"
|
|
212
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
213
|
-
type: "title"
|
|
214
|
-
}, "\u786E\u5B9A\u5220\u9664\u8BE5\u5206\u4EAB\u5417\uFF1F"), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
215
|
-
type: "button",
|
|
216
|
-
onClick: cancelDeleteDynamic
|
|
217
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.WarningButton, {
|
|
218
|
-
type: "button",
|
|
219
|
-
onClick: enSureDeleteDynamic
|
|
220
|
-
}, "\u5220\u9664"));
|
|
221
|
-
}, [showDialogConfirm]);
|
|
222
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
|
-
className: prefix + ""
|
|
224
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
225
|
-
className: prefix + "-left"
|
|
226
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
227
|
-
className: (0, _classnames["default"])(prefix + "-desc-avatar", _defineProperty({}, prefix + "-desc-avatar--not-link", !url)),
|
|
228
|
-
onClick: handleOpenUserPage
|
|
229
|
-
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
230
|
-
name: user.name,
|
|
231
|
-
userId: user.id || user.userId,
|
|
232
|
-
src: user.avatar.medium,
|
|
233
|
-
color: user.avatar.color,
|
|
234
|
-
size: {
|
|
235
|
-
width: 40,
|
|
236
|
-
textNum: 1,
|
|
237
|
-
fontSize: 18
|
|
238
|
-
}
|
|
239
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
240
|
-
className: prefix + "-desc"
|
|
241
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
|
-
className: prefix + "-desc-title"
|
|
243
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
244
|
-
className: (0, _classnames["default"])(prefix + "-desc-user", _defineProperty({}, prefix + "-desc-user--not-link", !url)),
|
|
245
|
-
onClick: handleOpenUserPage
|
|
246
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
247
|
-
maxWidth: 98,
|
|
248
|
-
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
249
|
-
name: user.name,
|
|
250
|
-
id: user.userId
|
|
251
|
-
})
|
|
252
|
-
})), desc), /*#__PURE__*/_react["default"].createElement("div", {
|
|
253
|
-
className: prefix + "-desc-time"
|
|
254
|
-
}, createDate))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
255
|
-
className: prefix + "__more-operate"
|
|
256
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropdownLayer["default"], {
|
|
257
|
-
popupPlacement: "bottomRight",
|
|
258
|
-
checked: ["collect"],
|
|
259
|
-
onChange: onChangeHandler,
|
|
260
|
-
multi: false,
|
|
261
|
-
visible: selectVisible,
|
|
262
|
-
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
263
|
-
className: (0, _classnames["default"])(prefix + "-right", "tu-icon-more1"),
|
|
264
|
-
onClick: handleShowDropSelector
|
|
265
|
-
})
|
|
266
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
267
|
-
name: "collect"
|
|
268
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
|
-
className: prefix + "__more-operate-selection"
|
|
270
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
271
|
-
className: (0, _classnames["default"])("tu-icon-APP-shoucang", prefix + "__more-operate-selection-icon")
|
|
272
|
-
}), nowIsCollect ? "取消收藏" : "收藏")), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
273
|
-
condition: showTopping
|
|
274
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
275
|
-
name: "top",
|
|
276
|
-
onClick: handleTopOperateClick
|
|
277
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
278
|
-
className: prefix + "__more-operate-selection"
|
|
279
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
280
|
-
className: (0, _classnames["default"])("tu-icon-zhiding", prefix + "__more-operate-selection-icon")
|
|
281
|
-
}), nowIsTop ? "取消置顶" : "置顶"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
282
|
-
condition: showDelete
|
|
283
|
-
}, /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
284
|
-
name: "delete",
|
|
285
|
-
onClick: handleDeleteClick
|
|
286
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
287
|
-
className: prefix + "__more-operate-selection"
|
|
288
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
289
|
-
className: (0, _classnames["default"])("tu-icon-del", prefix + "__more-operate-selection-icon")
|
|
290
|
-
}), "\u5220\u9664"))))), renderDialogConfirm);
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
var _default = DynamicItemHeader;
|
|
294
|
-
exports["default"] = _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var prefix = 'dynamic-task-project-icon';
|
|
17
|
-
|
|
18
|
-
var DynamicIcon = function DynamicIcon(_ref) {
|
|
19
|
-
var imgUrl = _ref.imgUrl,
|
|
20
|
-
background = _ref.background,
|
|
21
|
-
boxShadow = _ref.boxShadow;
|
|
22
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
23
|
-
className: (0, _classnames["default"])(prefix),
|
|
24
|
-
style: {
|
|
25
|
-
background: background,
|
|
26
|
-
boxShadow: boxShadow
|
|
27
|
-
}
|
|
28
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
29
|
-
className: prefix + '__icon',
|
|
30
|
-
src: imgUrl
|
|
31
|
-
}));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var _default = DynamicIcon;
|
|
35
|
-
exports["default"] = _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>切片</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<linearGradient x1="50%" y1="-2.48949813e-15%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
-
<stop stop-color="#2879FF" offset="0%"></stop>
|
|
7
|
-
<stop stop-color="#FFFFFF" offset="100%"></stop>
|
|
8
|
-
</linearGradient>
|
|
9
|
-
</defs>
|
|
10
|
-
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
-
<g id="目标" transform="translate(-270.000000, -1746.000000)">
|
|
12
|
-
<g id="新建目标-负责目标" transform="translate(202.000000, 1635.000000)">
|
|
13
|
-
<g id="编组-11" transform="translate(68.000000, 78.000000)">
|
|
14
|
-
<g id="pull-up" transform="translate(0.000000, 33.000000)">
|
|
15
|
-
<rect id="Rectangle-5" x="0" y="0" width="18" height="18"></rect>
|
|
16
|
-
<path d="M9.6984127,1.47921007 L14.2380952,6.34609616 C14.5873016,6.73544705 14.5873016,7.31947338 14.2380952,7.70882427 C13.8888889,8.09817515 13.3650794,8.09817515 13.015873,7.70882427 L9.87301587,4.39934172 L9.87301587,16.0266228 C9.87301587,16.6106491 9.52380952,17 9,17 C8.47619048,17 8.12698413,16.6106491 8.12698413,16.0266228 L8.12698413,4.39934172 L4.98412698,7.90349971 C4.63492063,8.09817515 4.11111111,8.09817515 3.76190476,7.70882427 C3.41269841,7.31947338 3.41269841,6.73544705 3.76190476,6.34609616 L8.12698413,1.47921007 C8.3015873,1.28453463 9,0.505832851 9.6984127,1.47921007 Z" id="箭头" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
</g>
|
|
21
|
-
</g>
|
|
22
|
-
</svg>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>关联-icon</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<linearGradient x1="50%" y1="50%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
-
<stop stop-color="#2879FF" offset="0%"></stop>
|
|
7
|
-
<stop stop-color="#FFFFFF" offset="100%"></stop>
|
|
8
|
-
</linearGradient>
|
|
9
|
-
</defs>
|
|
10
|
-
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
-
<g id="目标" transform="translate(-270.000000, -2013.000000)">
|
|
12
|
-
<g id="新建目标-负责目标" transform="translate(202.000000, 1901.000000)">
|
|
13
|
-
<g id="编组-19" transform="translate(68.000000, 78.000000)">
|
|
14
|
-
<g id="pull-up" transform="translate(0.000000, 34.000000)">
|
|
15
|
-
<rect id="Rectangle-5" x="0" y="0" width="18" height="18"></rect>
|
|
16
|
-
<path d="M6.05737522,9.80294126 C6.34805303,9.80193178 6.58393921,10.0378179 6.58397526,10.3295413 L6.58397526,10.3295413 L6.58430875,14.0309019 C6.58333532,14.5429815 6.78303323,15.0240195 7.14513215,15.3861184 C7.50723108,15.7482174 7.98932361,15.9448057 8.50139427,15.9458963 C9.01344689,15.9469869 9.49446685,15.7473611 9.85649367,15.3853343 C10.2185205,15.0233075 10.4171098,14.541251 10.4170557,14.0302169 L10.4170557,14.0302169 L10.4156676,10.3298748 C10.4166591,10.039197 10.6514727,9.80438339 10.9421685,9.8033739 C11.2328464,9.80238244 11.4687235,10.0382596 11.4687686,10.3299739 L11.4687686,10.3299739 L11.4691021,14.0313345 C11.4702197,14.8496128 11.1371886,15.5923329 10.5993129,16.1302086 C10.0624738,16.6670477 9.31973568,17.0000788 8.50043886,16.9999977 C7.7070011,17.0009711 6.96111733,16.6915998 6.40037504,16.1308575 C5.83965078,15.5701333 5.53025242,14.8242225 5.5301713,14.0297662 L5.5301713,14.0297662 L5.53087433,10.3294422 C5.52980175,10.0387553 5.76564286,9.80291422 6.05737522,9.80294126 Z M8.52047535,7.44504397 C8.81215364,7.44406152 9.04887804,7.68078593 9.04892311,7.97349172 L9.04892311,7.97349172 L9.04935574,10.0910323 C9.04836428,10.2373897 8.99129229,10.3671266 8.89477824,10.4636407 C8.79826419,10.5601547 8.66644519,10.6192727 8.52113332,10.6192547 C8.22944602,10.6202281 7.99273964,10.3835217 7.99267655,10.0907979 L7.99267655,10.0907979 L7.99225293,7.97326639 C7.99113528,7.68159712 8.22775153,7.44498088 8.52047535,7.44504397 Z M8.49961865,1.00000031 C10.137302,0.999252214 11.4700124,2.33196266 11.4703008,3.96860944 L11.4703008,3.96860944 L11.4709318,7.67019534 C11.4699313,7.81605702 11.412012,7.94640686 11.3158135,8.04260544 C11.2196329,8.138786 11.0882555,8.19773276 10.9434214,8.19770572 C10.6527165,8.19870619 10.4167943,7.96278397 10.4167492,7.67103357 L10.4167492,7.67103357 L10.4160913,3.96945669 C10.4170377,3.45736801 10.2172947,2.97626693 9.85514168,2.61411393 C9.49298867,2.25196092 9.01086009,2.05326348 8.49979892,2.05316434 C7.44249781,2.05299308 6.58295676,2.91253413 6.58313702,3.96982623 L6.58313702,3.96982623 L6.58378598,7.6713941 C6.58486757,7.96210797 6.34903548,8.19794006 6.05730312,8.19787697 C5.76659826,8.19887744 5.53067604,7.96295522 5.53063097,7.67120483 L5.53063097,7.67120483 L5.53000004,3.96965498 C5.52972063,2.33096219 6.86093488,0.999747943 8.49962767,1.00002735 Z" id="形状结合" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
</g>
|
|
21
|
-
</g>
|
|
22
|
-
</svg>
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
|
-
.titaui-dynamic-align-item {
|
|
4
|
-
position: relative;
|
|
5
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.titaui-dynamic-align-item__content {
|
|
9
|
-
margin-left: 69px;
|
|
10
|
-
position: relative;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-align-item__obj {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-dynamic-align-item__obj-base-info {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.titaui-dynamic-align-item__obj-base-info-icon {
|
|
25
|
-
color: #89919f;
|
|
26
|
-
font-size: 18px;
|
|
27
|
-
margin-right: 8px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.titaui-dynamic-align-item__obj-title {
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
word-break: keep-all;
|
|
34
|
-
font-size: 14px;
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
color: #3f4755;
|
|
37
|
-
line-height: 22px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.titaui-dynamic-align-item__obj-title:hover {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
color: #2879ff;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.titaui-dynamic-align-item__obj-principal-user {
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
color: #89919f;
|
|
48
|
-
line-height: 18px;
|
|
49
|
-
margin-left: 26px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.titaui-dynamic-align-item__obj-principal-user::after {
|
|
53
|
-
content: "·";
|
|
54
|
-
display: inline-block;
|
|
55
|
-
margin: 0 4px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.titaui-dynamic-align-item__obj-cycle {
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
color: #89919f;
|
|
61
|
-
line-height: 18px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.titaui-dynamic-align-item__align-img {
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 38px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.titaui-dynamic-align-item__space {
|
|
70
|
-
height: 20px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.titaui-dynamic-align-item__operate-desc {
|
|
74
|
-
font-size: 14px;
|
|
75
|
-
font-weight: 400;
|
|
76
|
-
color: #89919f;
|
|
77
|
-
line-height: 22px;
|
|
78
|
-
margin: 0 8px 0 4px;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.titaui-dynamic-align-item-desc-operate-type {
|
|
83
|
-
display: inline-flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
padding: 0 2px;
|
|
87
|
-
height: 18px;
|
|
88
|
-
min-width: 40px;
|
|
89
|
-
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
90
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
-
border-radius: 14px 10px 10px 4px;
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
color: #ffffff;
|
|
94
|
-
line-height: 18px;
|
|
95
|
-
}
|
|
@@ -1,173 +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 _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
-
|
|
16
|
-
var _tooltip = require("../../../tooltip");
|
|
17
|
-
|
|
18
|
-
var _openData = require("../../../../utils/open-data");
|
|
19
|
-
|
|
20
|
-
var _constant = require("../../constant");
|
|
21
|
-
|
|
22
|
-
var _dynamicAlign = _interopRequireDefault(require("./img/dynamic-align.svg"));
|
|
23
|
-
|
|
24
|
-
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
25
|
-
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
|
-
var _context = require("../../context");
|
|
29
|
-
|
|
30
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
31
|
-
|
|
32
|
-
require("./index.css");
|
|
33
|
-
|
|
34
|
-
var _excluded = ["data"];
|
|
35
|
-
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
-
|
|
38
|
-
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); }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
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); }
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
var prefix = "titaui-dynamic-align-item";
|
|
49
|
-
|
|
50
|
-
var DynamicAlign = function DynamicAlign(_ref) {
|
|
51
|
-
var data = _ref.data,
|
|
52
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
-
|
|
54
|
-
var okrName = data.okrName,
|
|
55
|
-
okrId = data.okrId,
|
|
56
|
-
principalUser = data.principalUser,
|
|
57
|
-
parentObjName = data.parentObjName,
|
|
58
|
-
parentObjType = data.parentObjType,
|
|
59
|
-
parentObjId = data.parentObjId,
|
|
60
|
-
parentPrincipalUser = data.parentPrincipalUser,
|
|
61
|
-
parentcycleName = data.parentcycleName,
|
|
62
|
-
cycleName = data.cycleName,
|
|
63
|
-
feedType = data.feedType,
|
|
64
|
-
publishUser = data.publishUser;
|
|
65
|
-
|
|
66
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
67
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
68
|
-
|
|
69
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
70
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
71
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
72
|
-
|
|
73
|
-
var handleClickTitle = function handleClickTitle(id, type) {
|
|
74
|
-
if (type === _constant.EObjType.Kr) {
|
|
75
|
-
_manager["default"].open("krDetail", {
|
|
76
|
-
krId: id
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (type === _constant.EObjType.O) {
|
|
81
|
-
_manager["default"].open("okrDetail", {
|
|
82
|
-
okrId: id
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
var renderDesc = (0, _react.useMemo)(function () {
|
|
88
|
-
var text = "";
|
|
89
|
-
|
|
90
|
-
if (parentObjType === _constant.EObjType.Kr) {
|
|
91
|
-
text = "对齐了关键成果";
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (parentObjType === _constant.EObjType.O) {
|
|
95
|
-
text = "对齐了目标";
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
99
|
-
className: prefix + "__operate-desc"
|
|
100
|
-
}, text), /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
|
-
className: prefix + "-desc-operate-type",
|
|
102
|
-
style: {
|
|
103
|
-
background: feedTypeColor
|
|
104
|
-
}
|
|
105
|
-
}, feedTypeText));
|
|
106
|
-
}, []);
|
|
107
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
className: prefix
|
|
109
|
-
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
110
|
-
data: data
|
|
111
|
-
}, restProps, {
|
|
112
|
-
desc: renderDesc,
|
|
113
|
-
user: publishUser
|
|
114
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
-
className: "".concat(prefix, "__content")
|
|
116
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
-
className: prefix + "__obj"
|
|
118
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
|
-
className: prefix + "__obj-base-info"
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
121
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", {
|
|
122
|
-
"tu-icon-okr": parentObjType === _constant.EObjType.O,
|
|
123
|
-
"tu-icon-KR": parentObjType === _constant.EObjType.Kr
|
|
124
|
-
})
|
|
125
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
-
className: prefix + "__obj-title",
|
|
127
|
-
onClick: function onClick() {
|
|
128
|
-
handleClickTitle(parentObjId, parentObjType);
|
|
129
|
-
}
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
131
|
-
isPercent: true,
|
|
132
|
-
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
133
|
-
str: parentObjName,
|
|
134
|
-
keyWord: searchKeyWord
|
|
135
|
-
})
|
|
136
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
-
className: prefix + "__obj-principal-user"
|
|
138
|
-
}, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
139
|
-
id: parentPrincipalUser.userId,
|
|
140
|
-
name: parentPrincipalUser.name
|
|
141
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
-
className: prefix + "__obj-cycle"
|
|
143
|
-
}, parentcycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
144
|
-
className: prefix + "__align-img",
|
|
145
|
-
src: _dynamicAlign["default"]
|
|
146
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
-
className: prefix + "__space"
|
|
148
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
-
className: prefix + "__obj"
|
|
150
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
-
className: prefix + "__obj-base-info"
|
|
152
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
153
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", "tu-icon-okr")
|
|
154
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
155
|
-
className: prefix + "__obj-title",
|
|
156
|
-
onClick: function onClick() {
|
|
157
|
-
handleClickTitle(okrId, _constant.EObjType.O);
|
|
158
|
-
}
|
|
159
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
160
|
-
isPercent: true,
|
|
161
|
-
text: okrName
|
|
162
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
163
|
-
className: prefix + "__obj-principal-user"
|
|
164
|
-
}, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
165
|
-
id: principalUser.userId,
|
|
166
|
-
name: principalUser.name
|
|
167
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
168
|
-
className: prefix + "__obj-cycle"
|
|
169
|
-
}, cycleName)))));
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
var _default = DynamicAlign;
|
|
173
|
-
exports["default"] = _default;
|