@titaui/pc 1.11.35-beta.2 → 1.11.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +6 -12
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/checkbox/index.css +3 -3
- package/lib/components/create-okr-modal/index.js +42 -48
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +6 -14
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +77 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/nav-top/index.js +4 -8
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +14 -13
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +4 -21
- package/lib/components/okr-detail/okr-list/index.js +3 -8
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +2 -47
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/index.js +1 -7
- package/lib/components/task-tree/task-item-node/e-task.js +2 -2
- package/lib/components/task-tree/task-item-node/index.css +12 -14
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/time-picker/time-picker.js +93 -37
- package/lib/components/toast/index.js +3 -5
- package/lib/index.js +0 -40
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/open-data.js +1 -5
- package/package.json +2 -2
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/task-tree/mock.js +0 -944
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
|
@@ -47,8 +47,6 @@ var _EditKrWightModal = _interopRequireDefault(require("../../../../../edit-kr-w
|
|
|
47
47
|
|
|
48
48
|
var _okrProgressModal = _interopRequireDefault(require("../../../../../okr-progress-modal"));
|
|
49
49
|
|
|
50
|
-
var _helper = require("../../../../helper");
|
|
51
|
-
|
|
52
50
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
53
51
|
|
|
54
52
|
require("./index.css");
|
|
@@ -101,8 +99,7 @@ function _default(props) {
|
|
|
101
99
|
|
|
102
100
|
var _useContext = (0, _react.useContext)(_context2.CommonContext),
|
|
103
101
|
refreshAll = _useContext.refreshAll,
|
|
104
|
-
okrInfo = _useContext.okrInfo
|
|
105
|
-
approvalSetting = _useContext.approvalSetting;
|
|
102
|
+
okrInfo = _useContext.okrInfo;
|
|
106
103
|
|
|
107
104
|
var _useState = (0, _react.useState)(data.confidenceIndex),
|
|
108
105
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -223,13 +220,17 @@ function _default(props) {
|
|
|
223
220
|
updateProgressWay: updateProgressWay
|
|
224
221
|
}).then(function (res) {
|
|
225
222
|
if (res.Code == 1) {
|
|
226
|
-
_toast["default"].Success(
|
|
223
|
+
_toast["default"].Success("修改成功", {
|
|
224
|
+
top: 60
|
|
225
|
+
});
|
|
227
226
|
|
|
228
227
|
refreshAll();
|
|
229
228
|
updateKrs();
|
|
230
229
|
setKrModalVsible(false);
|
|
231
230
|
} else {
|
|
232
|
-
_toast["default"].Error(res.Message
|
|
231
|
+
_toast["default"].Error(res.Message, {
|
|
232
|
+
top: 60
|
|
233
|
+
});
|
|
233
234
|
}
|
|
234
235
|
});
|
|
235
236
|
};
|
|
@@ -251,7 +252,7 @@ function _default(props) {
|
|
|
251
252
|
setDeleteModalVisible(false);
|
|
252
253
|
|
|
253
254
|
if (!Message) {
|
|
254
|
-
_toast["default"].Success((0, _getLocale.getLocale)("
|
|
255
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Pro_detail_Deletsuccess"));
|
|
255
256
|
|
|
256
257
|
setTimeout(function () {
|
|
257
258
|
refreshAll();
|
|
@@ -280,7 +281,7 @@ function _default(props) {
|
|
|
280
281
|
workId: data.workId,
|
|
281
282
|
workMileStoneId: data.mileStoneId
|
|
282
283
|
}).then(function () {
|
|
283
|
-
_toast["default"].Success(
|
|
284
|
+
_toast["default"].Success("修改成功");
|
|
284
285
|
});
|
|
285
286
|
};
|
|
286
287
|
|
|
@@ -315,7 +316,7 @@ function _default(props) {
|
|
|
315
316
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
316
317
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"))
|
|
317
318
|
}, /*#__PURE__*/_react["default"].createElement(_editableInput["default"], {
|
|
318
|
-
editable: krCanEdit
|
|
319
|
+
editable: krCanEdit,
|
|
319
320
|
defaultValue: krName,
|
|
320
321
|
emptyMessage: "KR\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
|
|
321
322
|
onKeyDown: onKrNameChangeHandler,
|
|
@@ -329,10 +330,10 @@ function _default(props) {
|
|
|
329
330
|
name: user.name,
|
|
330
331
|
id: user.userId,
|
|
331
332
|
width: 68,
|
|
332
|
-
editable: krCanEdit
|
|
333
|
+
editable: krCanEdit,
|
|
333
334
|
onEditUser: onEditUserHandler,
|
|
334
335
|
nameTips: function nameTips(name) {
|
|
335
|
-
return /*#__PURE__*/_react["default"].createElement("span", null,
|
|
336
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
|
|
336
337
|
}
|
|
337
338
|
})), showKrWeight && /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
338
339
|
width: 60,
|
|
@@ -348,7 +349,7 @@ function _default(props) {
|
|
|
348
349
|
marginLeft: 16
|
|
349
350
|
}, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
350
351
|
data: data,
|
|
351
|
-
editable: krCanEdit
|
|
352
|
+
editable: krCanEdit
|
|
352
353
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
353
354
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-actions"))
|
|
354
355
|
}, showHeart && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -377,7 +378,7 @@ function _default(props) {
|
|
|
377
378
|
evaluateValue: evaluateValue,
|
|
378
379
|
setEvaluateValue: onEvaluateChangeHanler,
|
|
379
380
|
isEvaluate: isEvaluate
|
|
380
|
-
})), krCanEdit &&
|
|
381
|
+
})), krCanEdit && /*#__PURE__*/_react["default"].createElement("div", {
|
|
381
382
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-delete")),
|
|
382
383
|
onClick: function onClick() {
|
|
383
384
|
return setDeleteModalVisible(true);
|
|
@@ -9,16 +9,14 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _titaUi = require("tita-ui");
|
|
13
|
+
|
|
14
|
+
var _style = require("./style");
|
|
13
15
|
|
|
14
16
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
15
17
|
|
|
16
18
|
var _getLocale = require("../../../../utils/getLocale");
|
|
17
19
|
|
|
18
|
-
var _dialogConfirm = _interopRequireDefault(require("../../../dialog-confirm"));
|
|
19
|
-
|
|
20
|
-
require("./index.css");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
22
|
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,114 +35,61 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
35
|
|
|
38
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
37
|
|
|
40
|
-
var prefix = 'okr-detail-delete-confirm';
|
|
41
|
-
|
|
42
38
|
var getDeleteOptions = function getDeleteOptions() {
|
|
43
39
|
return [{
|
|
44
40
|
id: 0,
|
|
45
|
-
text:
|
|
46
|
-
tips:
|
|
41
|
+
text: "不删除目标下的任务",
|
|
42
|
+
tips: ""
|
|
47
43
|
}, {
|
|
48
44
|
id: 1,
|
|
49
|
-
text:
|
|
50
|
-
tips: (0, _getLocale.getLocale)(
|
|
45
|
+
text: "同时删除目标下所有任务",
|
|
46
|
+
tips: (0, _getLocale.getLocale)("Pro_detail_Tasksapproval")
|
|
51
47
|
}, {
|
|
52
48
|
id: 2,
|
|
53
|
-
text: (0, _getLocale.getLocale)(
|
|
54
|
-
tips: (0, _getLocale.getLocale)(
|
|
49
|
+
text: (0, _getLocale.getLocale)("Pro_detail_Attheametime"),
|
|
50
|
+
tips: (0, _getLocale.getLocale)("Pro_detail_Tasksapproval")
|
|
55
51
|
}];
|
|
56
52
|
};
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
approvalSetting = _ref.approvalSetting,
|
|
62
|
-
okrInfo = _ref.okrInfo;
|
|
54
|
+
function OkrDeleteConfirm(_ref) {
|
|
55
|
+
var onConfirm = _ref.onConfirm,
|
|
56
|
+
onCancel = _ref.onCancel;
|
|
63
57
|
|
|
64
|
-
var _useState = (0, _react.useState)(
|
|
58
|
+
var _useState = (0, _react.useState)(0),
|
|
65
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var _useState3 = (0, _react.useState)(0),
|
|
70
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
-
selected = _useState4[0],
|
|
72
|
-
setSelected = _useState4[1];
|
|
60
|
+
selected = _useState2[0],
|
|
61
|
+
setSelected = _useState2[1];
|
|
73
62
|
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement(_style.DeleteWrapper, {
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.DeleteTitle, null, "\u76EE\u6807\u5220\u9664\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C"), /*#__PURE__*/_react["default"].createElement("div", null, getDeleteOptions().map(function (option) {
|
|
68
|
+
return /*#__PURE__*/_react["default"].createElement(_style.Options, {
|
|
69
|
+
key: option.id,
|
|
70
|
+
onClick: function onClick() {
|
|
71
|
+
return setSelected(option.id);
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
|
|
74
|
+
className: selected == option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
|
|
75
|
+
}), /*#__PURE__*/_react["default"].createElement("p", null, option.text), option.tips && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
76
|
+
overlay: option.tips,
|
|
77
|
+
placement: "top",
|
|
78
|
+
zIndex: 15000
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
|
|
80
|
+
className: "tu-icon-warning"
|
|
81
|
+
})));
|
|
82
|
+
})), /*#__PURE__*/_react["default"].createElement(_style.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
83
|
+
onClick: function onClick() {
|
|
76
84
|
onCancel();
|
|
77
85
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
var handleConfirmClick = function handleConfirmClick() {
|
|
83
|
-
if (onConfirm) {
|
|
84
|
-
onConfirm(selected);
|
|
86
|
+
}, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
87
|
+
type: "primary",
|
|
88
|
+
onClick: function onClick() {
|
|
89
|
+
return onConfirm(selected);
|
|
85
90
|
}
|
|
91
|
+
}, (0, _getLocale.getLocale)("Pro_detail_Submission"))));
|
|
92
|
+
}
|
|
86
93
|
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
var show = function show() {
|
|
91
|
-
setShowConfirmPop(true);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var hide = function hide() {
|
|
95
|
-
setShowConfirmPop(false);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var showApprovalCmp = (0, _react.useMemo)(function () {
|
|
99
|
-
var _okrInfo$OkrAndKrAppr;
|
|
100
|
-
|
|
101
|
-
return approvalSetting.isOpen && !(okrInfo !== null && okrInfo !== void 0 && (_okrInfo$OkrAndKrAppr = okrInfo.OkrAndKrApprovalTypes) !== null && _okrInfo$OkrAndKrAppr !== void 0 && _okrInfo$OkrAndKrAppr.includes(53));
|
|
102
|
-
}, [approvalSetting, okrInfo]);
|
|
103
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
104
|
-
return {
|
|
105
|
-
show: show,
|
|
106
|
-
hide: hide
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
var renderDialogConfirm = (0, _react.useMemo)(function () {
|
|
110
|
-
return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
111
|
-
zIndex: 1200,
|
|
112
|
-
visible: showConfirmPop,
|
|
113
|
-
type: "warning"
|
|
114
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
-
type: "title"
|
|
116
|
-
}, showApprovalCmp ? (0, _getLocale.getLocale)('OKR_MyO_Deleteoapproval') : (0, _getLocale.getLocale)('OKR_MyO_Determinedeletiono')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
|
-
type: "content"
|
|
118
|
-
}, !showApprovalCmp && (0, _getLocale.getLocale)('OKR_MyO_Text_Odeletion'), /*#__PURE__*/_react["default"].createElement("div", null, getDeleteOptions().map(function (option) {
|
|
119
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "".concat(prefix, "__option"),
|
|
121
|
-
key: option.id,
|
|
122
|
-
onClick: function onClick() {
|
|
123
|
-
return setSelected(option.id);
|
|
124
|
-
}
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
-
className: (0, _classnames["default"])("".concat(prefix, "__icon"), {
|
|
127
|
-
'tu-icon-singlebox-avtive': selected == option.id,
|
|
128
|
-
'tu-icon-singlebox-have': selected != option.id
|
|
129
|
-
})
|
|
130
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
|
-
className: "".concat(prefix, "__option-text")
|
|
132
|
-
}, option.text, option.tips && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
133
|
-
overlay: option.tips,
|
|
134
|
-
placement: "top",
|
|
135
|
-
zIndex: 15000
|
|
136
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
-
className: "".concat(prefix, "__icon tu-icon-warning")
|
|
138
|
-
}))));
|
|
139
|
-
}))), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"].CancelButton, {
|
|
140
|
-
type: "button",
|
|
141
|
-
onClick: handleCancelClick
|
|
142
|
-
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"].SureButton, {
|
|
143
|
-
type: "button",
|
|
144
|
-
onClick: handleConfirmClick
|
|
145
|
-
}, showApprovalCmp ? (0, _getLocale.getLocale)('OKR_MyO_Submittedapproval') : (0, _getLocale.getLocale)('Pro_detail_Submission')));
|
|
146
|
-
}, [showConfirmPop, selected]);
|
|
147
|
-
return renderDialogConfirm;
|
|
148
|
-
});
|
|
149
|
-
var _default = OkrDeletePop;
|
|
94
|
+
var _default = OkrDeleteConfirm;
|
|
150
95
|
exports["default"] = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Options = exports.Icon = exports.DeleteWrapper = exports.DeleteTitle = exports.ButtonGroup = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
+
|
|
16
|
+
var DeleteWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 300px;\n\n .tu-icon-warning {\n transition: all .3s ease-in;\n\n &:hover {\n color: #2879ff;\n }\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.DeleteWrapper = DeleteWrapper;
|
|
19
|
+
|
|
20
|
+
var DeleteTitle = _styledComponents["default"].h2(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: #1F2329;\n"])));
|
|
21
|
+
|
|
22
|
+
exports.DeleteTitle = DeleteTitle;
|
|
23
|
+
|
|
24
|
+
var Options = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n align-items: center;\n\n p {\n margin: 6px;\n font-size: 12px;\n transition: all .3s ease-in;\n color: #3e4e59;\n\n &:hover {\n color: #2879ff;\n }\n }\n"])));
|
|
25
|
+
|
|
26
|
+
exports.Options = Options;
|
|
27
|
+
|
|
28
|
+
var ButtonGroup = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n button {\n min-width: 58px !important;\n height: 30px !important;\n margin-left: 10px;\n white-space: nowrap;\n }\n"])));
|
|
29
|
+
|
|
30
|
+
exports.ButtonGroup = ButtonGroup;
|
|
31
|
+
|
|
32
|
+
var Icon = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n\n &.tu-icon-diot {\n color: #a4acb9;\n }\n\n // &.okr-type {\n // font-size: 16px;\n // color: #7f91b4;\n // position: relative;\n // top: ", ";\n // }\n\n // &.tu-icon-bianji2 {\n // margin-left: 6px;\n // font-size: 14px;\n // color: #2879ff;\n // cursor: pointer;\n // }\n\n // &.tu-icon-heart-solid {\n // margin-right: 6px;\n // color: #ff8c00;\n // }\n\n &.execute-icon {\n font-size: 14px;\n cursor: pointer;\n position: relative;\n top: 2px;\n }\n\n &.tu-icon-singlebox-have,\n &.tu-icon-singlebox-avtive {\n font-size: 14px;\n color: #2879ff;\n }\n\n &.tu-icon-warning {\n font-size: 14px;\n color: #acb7bf;\n }\n\n &.tu-icon-more-diji {\n position: relative;\n\n &::after {\n content: '';\n \n }\n }\n"])), function (p) {
|
|
33
|
+
return p.color || "#89919F";
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return p.top;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
exports.Icon = Icon;
|
|
@@ -25,14 +25,3 @@
|
|
|
25
25
|
.okr-detail-head-parent > span:hover {
|
|
26
26
|
color: #2879ff;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
.okr-detail-header-status {
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
border-radius: 16px;
|
|
34
|
-
width: 68px;
|
|
35
|
-
height: 28px;
|
|
36
|
-
margin-right: 18px;
|
|
37
|
-
font-size: 12px;
|
|
38
|
-
}
|