@titaui/pc 1.9.15 → 1.9.19
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/change-okr-modal/Item.js +41 -18
- package/lib/components/change-okr-modal/styledComponents.js +1 -1
- package/lib/components/create-okr-modal/fields/index.css +1 -1
- package/lib/components/create-okr-modal/index.css +1 -0
- package/lib/components/create-okr-modal/index.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +1 -7
- package/lib/components/dialog-confirm/index.css +8 -3
- package/lib/components/dialog-confirm/index.js +17 -15
- package/lib/components/drawer/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +1 -3
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -4
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/grid-layout/okr-align/index.js +1 -1
- package/lib/components/grid-layout/okr-progress/index.js +1 -1
- package/lib/components/img-viewer/index.js +3 -3
- package/lib/components/menus/components/flip-menu-card/index.js +12 -1
- package/lib/components/menus/components/menu-tree/index.css +2 -2
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.css +1 -1
- package/lib/components/okr-detail/base-info/base-info.js +14 -13
- package/lib/components/okr-detail/base-info/o-desc/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +10 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +6 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.css +1 -1
- package/lib/components/okr-detail/detail-footer/index.css +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/index.css +1 -0
- package/lib/components/okr-detail/okr-list/index.css +2 -2
- package/lib/components/okr-progress-modal/helper.js +2 -2
- package/lib/components/okr-progress-modal/index.css +2 -2
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/pagination/select.css +1 -1
- package/lib/components/search-dropdown/index.css +1 -1
- package/lib/components/switch/index.css +1 -1
- package/lib/components/tabs/index.css +1 -1
- package/lib/components/tita-chart/charts/pie.js +3 -1
- package/lib/components/tooltip/tooltip-text/index.js +3 -1
- package/lib/components/version-change-modal/index.css +1 -1
- package/lib/components/weekly-report/index.css +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/styles/index.js +1 -1
- package/lib/pages/appointment-demo/index.css +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.css +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +1 -1
- package/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +11 -3
- package/src/components/change-okr-modal/styledComponents.ts +0 -1
- package/src/components/create-okr-modal/fields/index.scss +1 -1
- package/src/components/create-okr-modal/index.scss +1 -0
- package/src/components/create-okr-modal/index.tsx +2 -2
- package/src/components/create-okr-modal/request-api.ts +2 -3
- package/src/components/dialog-confirm/index.js +95 -58
- package/src/components/dialog-confirm/index.scss +16 -12
- package/src/components/drawer/index.scss +1 -1
- package/src/components/dynamic/dynamic-item/dynamic-align/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-announcement/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-assessment/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-create-o/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-kr/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-milestone/index.scss +1 -3
- package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-plan-communication/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-progress/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-project/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-relative/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-replay/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-report/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-reward/index.scss +2 -3
- package/src/components/dynamic/dynamic-item/dynamic-share/index.scss +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-task/index.scss +2 -4
- package/src/components/dynamic/dynamic-topping/index.scss +1 -1
- package/src/components/grid-layout/okr-align/index.tsx +1 -1
- package/src/components/grid-layout/okr-progress/index.tsx +1 -1
- package/src/components/img-viewer/index.tsx +3 -3
- package/src/components/menus/components/flip-menu-card/index.tsx +8 -1
- package/src/components/menus/components/menu-tree/index.scss +2 -2
- package/src/components/menus/export-modules/okr-menus/depart-menus/index.scss +1 -1
- package/src/components/okr-detail/base-info/base-info.tsx +39 -27
- package/src/components/okr-detail/base-info/o-desc/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +2 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +3 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +2 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.scss +1 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.scss +1 -1
- package/src/components/okr-detail/detail-footer/index.scss +1 -1
- package/src/components/okr-detail/e-list/search-form/fields/index.scss +1 -0
- package/src/components/okr-detail/okr-list/index.scss +1 -1
- package/src/components/okr-progress-modal/helper.js +2 -2
- package/src/components/okr-progress-modal/index.scss +2 -2
- package/src/components/okrcase-library/index.scss +1 -1
- package/src/components/pagination/select.scss +1 -1
- package/src/components/search-dropdown/index.scss +1 -1
- package/src/components/switch/index.scss +1 -1
- package/src/components/tabs/index.scss +1 -1
- package/src/components/tita-chart/charts/pie.tsx +2 -1
- package/src/components/tooltip/tooltip-text/index.tsx +4 -1
- package/src/components/version-change-modal/index.scss +1 -1
- package/src/components/weekly-report/index.scss +1 -1
- package/src/components-v1/confirm/index.tsx +0 -1
- package/src/components-v1/dropDownSelector/styles/index.tsx +1 -1
- package/src/pages/appointment-demo/index.scss +1 -1
- package/src/pages/group-management/page-view/importGroupStaff/index.scss +2 -2
- package/src/pages/okr-map/export-modules/okr-map/header/index.scss +1 -1
- package/src/pages/okr-map/export-modules/share-okr-page/header/index.scss +1 -1
|
@@ -15,8 +15,12 @@ var _openData = require("../../utils/open-data");
|
|
|
15
15
|
|
|
16
16
|
var _constant = require("./constant");
|
|
17
17
|
|
|
18
|
+
var _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
19
|
+
|
|
18
20
|
var _getLocale = require("../../utils/getLocale");
|
|
19
21
|
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
20
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
25
|
|
|
22
26
|
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; }
|
|
@@ -105,6 +109,13 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
105
109
|
}
|
|
106
110
|
};
|
|
107
111
|
|
|
112
|
+
_this.htmlToText = function (text) {
|
|
113
|
+
var div = document.createElement('div');
|
|
114
|
+
div.innerHTML = text;
|
|
115
|
+
text = div.innerText || div.textContent;
|
|
116
|
+
return text;
|
|
117
|
+
};
|
|
118
|
+
|
|
108
119
|
_this.getCycleText = function () {
|
|
109
120
|
var data = _this.props.data;
|
|
110
121
|
var hzNum = [(0, _getLocale.getLocale)('OKR_MyO_Pop_1stQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_2ndQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_3rdQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_4thQuarter')];
|
|
@@ -197,12 +208,16 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
197
208
|
color: colorMap[data.cycleType] || colorMap[4]
|
|
198
209
|
}, this.getCycleText()), /*#__PURE__*/_react["default"].createElement(_styledComponents.WorkNameWrapper, {
|
|
199
210
|
isShowKr: isShowKr
|
|
200
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
211
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
212
|
+
isPercent: true,
|
|
213
|
+
overlayText: this.htmlToText(this.okrData.workName),
|
|
214
|
+
text: /*#__PURE__*/_react["default"].createElement(_styledComponents.OkrName, {
|
|
215
|
+
isKr: false,
|
|
216
|
+
isShowKr: isShowKr,
|
|
217
|
+
dangerouslySetInnerHTML: {
|
|
218
|
+
__html: this.okrData.workName
|
|
219
|
+
}
|
|
220
|
+
})
|
|
206
221
|
})), this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
207
222
|
className: "".concat(this.state.isExpand ? "tu-icon-arrow-up" : 'tu-icon-arrow-down')
|
|
208
223
|
})), /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemBottom, null, !isShowKr && [/*#__PURE__*/_react["default"].createElement("span", null, (0, _constant.getTypeMap)()[data.okrType]), /*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null)], /*#__PURE__*/_react["default"].createElement(_styledComponents.PricipleName, null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -220,12 +235,16 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
220
235
|
active: active && item.mileStoneId == (active.workId || active.mileStoneId)
|
|
221
236
|
}), /*#__PURE__*/_react["default"].createElement(_styledComponents.WorkNameWrapper, {
|
|
222
237
|
isShowKr: isShowKr
|
|
223
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
238
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
239
|
+
isPercent: true,
|
|
240
|
+
overlayText: _this2.htmlToText(item.mileStoneName),
|
|
241
|
+
text: /*#__PURE__*/_react["default"].createElement(_styledComponents.OkrName, {
|
|
242
|
+
isKr: true,
|
|
243
|
+
isShowKr: isShowKr,
|
|
244
|
+
dangerouslySetInnerHTML: {
|
|
245
|
+
__html: "KR".concat(index + 1, "\uFF1A").concat(item.mileStoneName)
|
|
246
|
+
}
|
|
247
|
+
})
|
|
229
248
|
}))) : active && item.mileStoneId == (active.workId || active.mileStoneId) ? /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemTop, {
|
|
230
249
|
key: item.mileStoneId
|
|
231
250
|
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.Radio, {
|
|
@@ -235,12 +254,16 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
235
254
|
active: active && item.mileStoneId == (active.workId || active.mileStoneId)
|
|
236
255
|
}), /*#__PURE__*/_react["default"].createElement(_styledComponents.WorkNameWrapper, {
|
|
237
256
|
isShowKr: isShowKr
|
|
238
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
257
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
258
|
+
isPercent: true,
|
|
259
|
+
overlayText: _this2.htmlToText(item.mileStoneName),
|
|
260
|
+
text: /*#__PURE__*/_react["default"].createElement(_styledComponents.OkrName, {
|
|
261
|
+
isKr: true,
|
|
262
|
+
isShowKr: isShowKr,
|
|
263
|
+
dangerouslySetInnerHTML: {
|
|
264
|
+
__html: "KR".concat(index + 1, "\uFF1A").concat(item.mileStoneName)
|
|
265
|
+
}
|
|
266
|
+
})
|
|
244
267
|
}))) : '';
|
|
245
268
|
})));
|
|
246
269
|
}
|
|
@@ -79,7 +79,7 @@ var ItemTop = _styledComponents["default"].div(_templateObject16 || (_templateOb
|
|
|
79
79
|
|
|
80
80
|
exports.ItemTop = ItemTop;
|
|
81
81
|
|
|
82
|
-
var WorkNameWrapper = _styledComponents["default"].div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n flex: 1px;\n white-space: nowrap;\n overflow: hidden;\n
|
|
82
|
+
var WorkNameWrapper = _styledComponents["default"].div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n flex: 1px;\n white-space: nowrap;\n overflow: hidden;\n cursor: ", ";\n"])), function (p) {
|
|
83
83
|
return p.isKr ? 'default' : 'pointer';
|
|
84
84
|
});
|
|
85
85
|
|
|
@@ -280,6 +280,7 @@
|
|
|
280
280
|
|
|
281
281
|
.create-success-model .create-success-model__card .create-success-model__bottom-block .create-success-model__o-name .create-success-model__o-name-text {
|
|
282
282
|
display: inline-block;
|
|
283
|
+
word-break: break-all;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
.create-success-model .create-success-model__card .create-success-model__bottom-block .create-success-model__kr-wrapper {
|
|
@@ -315,7 +315,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
315
315
|
return total += Number(kr.krWeight);
|
|
316
316
|
}); //权重未自定义过或总计为100为合法权重
|
|
317
317
|
|
|
318
|
-
var krWeightValid = !isCustomWeight || total == 100 || krDatas.length == 0 || !openKrWeight;
|
|
318
|
+
var krWeightValid = !isCustomWeight || Number(total.toFixed(1)) == 100 || krDatas.length == 0 || !openKrWeight;
|
|
319
319
|
var allKrHasName = krDatas.filter(function (kr) {
|
|
320
320
|
return !kr.mileStoneName.trim().length;
|
|
321
321
|
}).length == 0;
|
|
@@ -826,7 +826,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
826
826
|
footerLeftContent: renderFooterTeachWriteOKr,
|
|
827
827
|
zIndex: 1200,
|
|
828
828
|
bodyStyle: {
|
|
829
|
-
flexBasis: '
|
|
829
|
+
flexBasis: 'auto'
|
|
830
830
|
}
|
|
831
831
|
}, /*#__PURE__*/_react["default"].createElement(_style.Wrapper, {
|
|
832
832
|
ref: wrapperRef
|
|
@@ -61,15 +61,9 @@ var createWidthKr = /*#__PURE__*/function () {
|
|
|
61
61
|
|
|
62
62
|
case 3:
|
|
63
63
|
res = _context.sent;
|
|
64
|
-
|
|
65
|
-
if (!(res.data.Code == 1)) {
|
|
66
|
-
_context.next = 6;
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
64
|
return _context.abrupt("return", res.data.Data);
|
|
71
65
|
|
|
72
|
-
case
|
|
66
|
+
case 5:
|
|
73
67
|
case "end":
|
|
74
68
|
return _context.stop();
|
|
75
69
|
}
|
|
@@ -97,15 +97,19 @@
|
|
|
97
97
|
position: relative;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.titaui-dialog-confirm__body-
|
|
100
|
+
.titaui-dialog-confirm__body-title {
|
|
101
|
+
display: flex;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.titaui-dialog-confirm__body-title-icon {
|
|
101
105
|
display: inline-block;
|
|
102
106
|
font-size: 14px;
|
|
103
107
|
}
|
|
104
108
|
|
|
105
|
-
.titaui-dialog-confirm__body-title {
|
|
109
|
+
.titaui-dialog-confirm__body-title-text {
|
|
106
110
|
font-size: 16px;
|
|
107
111
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
108
|
-
font-weight:
|
|
112
|
+
font-weight: 600;
|
|
109
113
|
color: #141c28;
|
|
110
114
|
line-height: 24px;
|
|
111
115
|
display: inline-block;
|
|
@@ -121,4 +125,5 @@
|
|
|
121
125
|
color: #6f7886;
|
|
122
126
|
line-height: 22px;
|
|
123
127
|
padding-left: 20px;
|
|
128
|
+
margin-left: 6px;
|
|
124
129
|
}
|
|
@@ -25,7 +25,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
25
25
|
|
|
26
26
|
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; }
|
|
27
27
|
|
|
28
|
-
var preCls =
|
|
28
|
+
var preCls = "titaui-dialog-confirm";
|
|
29
29
|
|
|
30
30
|
var CancelButton = function CancelButton(props) {
|
|
31
31
|
var onClick = props.onClick,
|
|
@@ -82,43 +82,43 @@ var DialogConfirm = function DialogConfirm(props) {
|
|
|
82
82
|
var contentInstance;
|
|
83
83
|
|
|
84
84
|
_react["default"].Children.forEach(children, function (child) {
|
|
85
|
-
if (child.props.type ==
|
|
86
|
-
if (child.props.type ==
|
|
87
|
-
if (child.props.type ==
|
|
85
|
+
if (child.props.type == "button") footer.push(child);
|
|
86
|
+
if (child.props.type == "title") titleInstance = child;
|
|
87
|
+
if (child.props.type == "content") contentInstance = child;
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
var getConfirmIcon = function getConfirmIcon(type) {
|
|
91
91
|
switch (type) {
|
|
92
|
-
case
|
|
92
|
+
case "warning":
|
|
93
93
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
94
|
className: "tu-icon-tishi",
|
|
95
95
|
style: {
|
|
96
|
-
|
|
96
|
+
"color": "#FFBC00"
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
case
|
|
100
|
+
case "success":
|
|
101
101
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
102
|
className: "tu-icon-check",
|
|
103
103
|
style: {
|
|
104
|
-
|
|
104
|
+
"color": "#5AD8A6"
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
case
|
|
108
|
+
case "error":
|
|
109
109
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
110
|
className: "tu-icon-cross",
|
|
111
111
|
style: {
|
|
112
|
-
|
|
112
|
+
"color": "#F05E5E"
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
case
|
|
116
|
+
case "confirm":
|
|
117
117
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
118
118
|
className: "tu-icon-tishi"
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
case
|
|
121
|
+
case "info":
|
|
122
122
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
123
|
className: "tu-icon-warning"
|
|
124
124
|
});
|
|
@@ -138,11 +138,13 @@ var DialogConfirm = function DialogConfirm(props) {
|
|
|
138
138
|
maskClosable: false
|
|
139
139
|
}, restProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
140
|
className: (0, _classnames["default"])("".concat(preCls, "__body"))
|
|
141
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
|
+
className: (0, _classnames["default"])("".concat(preCls, "__body-title"))
|
|
141
143
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
-
className: (0, _classnames["default"])("".concat(preCls, "__body-icon"))
|
|
144
|
+
className: (0, _classnames["default"])("".concat(preCls, "__body-title-icon"))
|
|
143
145
|
}, getConfirmIcon(type)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
-
className: (0, _classnames["default"])("".concat(preCls, "__body-title"))
|
|
145
|
-
}, titleInstance), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
+
className: (0, _classnames["default"])("".concat(preCls, "__body-title-text"))
|
|
147
|
+
}, titleInstance)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
148
|
className: (0, _classnames["default"])("".concat(preCls, "__body-content"))
|
|
147
149
|
}, contentInstance)));
|
|
148
150
|
};
|
|
@@ -83,12 +83,10 @@
|
|
|
83
83
|
display: inline-flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
|
-
padding: 0
|
|
86
|
+
padding: 0 6px;
|
|
87
87
|
height: 18px;
|
|
88
88
|
min-width: 40px;
|
|
89
|
-
|
|
90
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
-
border-radius: 14px 10px 10px 4px;
|
|
89
|
+
border-radius: 10px 10px 10px 2px;
|
|
92
90
|
font-size: 12px;
|
|
93
91
|
color: #ffffff;
|
|
94
92
|
line-height: 18px;
|
|
@@ -42,12 +42,10 @@
|
|
|
42
42
|
display: inline-flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
justify-content: center;
|
|
45
|
-
padding: 0
|
|
45
|
+
padding: 0 6px;
|
|
46
46
|
height: 18px;
|
|
47
47
|
min-width: 40px;
|
|
48
|
-
|
|
49
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
50
|
-
border-radius: 14px 10px 10px 4px;
|
|
48
|
+
border-radius: 10px 10px 10px 2px;
|
|
51
49
|
font-size: 12px;
|
|
52
50
|
color: #ffffff;
|
|
53
51
|
line-height: 18px;
|
|
@@ -36,12 +36,10 @@
|
|
|
36
36
|
display: inline-flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
39
|
-
padding: 0
|
|
39
|
+
padding: 0 6px;
|
|
40
40
|
height: 18px;
|
|
41
41
|
min-width: 40px;
|
|
42
|
-
|
|
43
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
44
|
-
border-radius: 14px 10px 10px 4px;
|
|
42
|
+
border-radius: 10px 10px 10px 2px;
|
|
45
43
|
font-size: 12px;
|
|
46
44
|
color: #ffffff;
|
|
47
45
|
line-height: 18px;
|
|
@@ -84,12 +84,10 @@
|
|
|
84
84
|
display: inline-flex;
|
|
85
85
|
align-items: center;
|
|
86
86
|
justify-content: center;
|
|
87
|
-
padding: 0
|
|
87
|
+
padding: 0 6px;
|
|
88
88
|
height: 18px;
|
|
89
89
|
min-width: 40px;
|
|
90
|
-
|
|
91
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
92
|
-
border-radius: 14px 10px 10px 4px;
|
|
90
|
+
border-radius: 10px 10px 10px 2px;
|
|
93
91
|
font-size: 12px;
|
|
94
92
|
color: #ffffff;
|
|
95
93
|
line-height: 18px;
|
|
@@ -55,12 +55,10 @@
|
|
|
55
55
|
display: inline-flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
justify-content: center;
|
|
58
|
-
padding: 0
|
|
58
|
+
padding: 0 6px;
|
|
59
59
|
height: 18px;
|
|
60
60
|
min-width: 40px;
|
|
61
|
-
|
|
62
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
63
|
-
border-radius: 14px 10px 10px 4px;
|
|
61
|
+
border-radius: 10px 10px 10px 2px;
|
|
64
62
|
font-size: 12px;
|
|
65
63
|
color: #ffffff;
|
|
66
64
|
line-height: 18px;
|
|
@@ -108,9 +108,7 @@
|
|
|
108
108
|
padding: 0 6px;
|
|
109
109
|
height: 18px;
|
|
110
110
|
min-width: 40px;
|
|
111
|
-
|
|
112
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
113
|
-
border-radius: 14px 10px 10px 4px;
|
|
111
|
+
border-radius: 10px 10px 10px 2px;
|
|
114
112
|
font-size: 12px;
|
|
115
113
|
color: #ffffff;
|
|
116
114
|
line-height: 18px;
|
|
@@ -74,12 +74,10 @@
|
|
|
74
74
|
display: inline-flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: center;
|
|
77
|
-
padding: 0
|
|
77
|
+
padding: 0 6px;
|
|
78
78
|
height: 18px;
|
|
79
79
|
min-width: 40px;
|
|
80
|
-
|
|
81
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
82
|
-
border-radius: 14px 10px 10px 4px;
|
|
80
|
+
border-radius: 10px 10px 10px 2px;
|
|
83
81
|
font-size: 12px;
|
|
84
82
|
color: #ffffff;
|
|
85
83
|
line-height: 18px;
|
|
@@ -74,12 +74,10 @@
|
|
|
74
74
|
display: inline-flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: center;
|
|
77
|
-
padding: 0
|
|
77
|
+
padding: 0 6px;
|
|
78
78
|
height: 18px;
|
|
79
79
|
min-width: 40px;
|
|
80
|
-
|
|
81
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
82
|
-
border-radius: 14px 10px 10px 4px;
|
|
80
|
+
border-radius: 10px 10px 10px 2px;
|
|
83
81
|
font-size: 12px;
|
|
84
82
|
color: #ffffff;
|
|
85
83
|
line-height: 18px;
|
|
@@ -87,12 +87,10 @@
|
|
|
87
87
|
display: inline-flex;
|
|
88
88
|
align-items: center;
|
|
89
89
|
justify-content: center;
|
|
90
|
-
padding: 0
|
|
90
|
+
padding: 0 6px;
|
|
91
91
|
height: 18px;
|
|
92
92
|
min-width: 40px;
|
|
93
|
-
|
|
94
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
95
|
-
border-radius: 14px 10px 10px 4px;
|
|
93
|
+
border-radius: 10px 10px 10px 2px;
|
|
96
94
|
font-size: 12px;
|
|
97
95
|
color: #ffffff;
|
|
98
96
|
line-height: 18px;
|
|
@@ -85,12 +85,10 @@
|
|
|
85
85
|
display: inline-flex;
|
|
86
86
|
align-items: center;
|
|
87
87
|
justify-content: center;
|
|
88
|
-
padding: 0
|
|
88
|
+
padding: 0 6px;
|
|
89
89
|
height: 18px;
|
|
90
90
|
min-width: 40px;
|
|
91
|
-
|
|
92
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
93
|
-
border-radius: 14px 10px 10px 4px;
|
|
91
|
+
border-radius: 10px 10px 10px 2px;
|
|
94
92
|
font-size: 12px;
|
|
95
93
|
color: #ffffff;
|
|
96
94
|
line-height: 18px;
|
|
@@ -83,12 +83,10 @@
|
|
|
83
83
|
display: inline-flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
|
-
padding: 0
|
|
86
|
+
padding: 0 6px;
|
|
87
87
|
height: 18px;
|
|
88
88
|
min-width: 40px;
|
|
89
|
-
|
|
90
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
-
border-radius: 14px 10px 10px 4px;
|
|
89
|
+
border-radius: 10px 10px 10px 2px;
|
|
92
90
|
font-size: 12px;
|
|
93
91
|
color: #ffffff;
|
|
94
92
|
line-height: 18px;
|
|
@@ -126,12 +126,10 @@
|
|
|
126
126
|
display: inline-flex;
|
|
127
127
|
align-items: center;
|
|
128
128
|
justify-content: center;
|
|
129
|
-
padding: 0
|
|
129
|
+
padding: 0 6px;
|
|
130
130
|
height: 18px;
|
|
131
131
|
min-width: 40px;
|
|
132
|
-
|
|
133
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
134
|
-
border-radius: 14px 10px 10px 4px;
|
|
132
|
+
border-radius: 10px 10px 10px 2px;
|
|
135
133
|
font-size: 12px;
|
|
136
134
|
color: #ffffff;
|
|
137
135
|
line-height: 18px;
|
|
@@ -142,12 +142,10 @@
|
|
|
142
142
|
display: inline-flex;
|
|
143
143
|
align-items: center;
|
|
144
144
|
justify-content: center;
|
|
145
|
-
padding: 0
|
|
145
|
+
padding: 0 6px;
|
|
146
146
|
height: 18px;
|
|
147
147
|
min-width: 40px;
|
|
148
|
-
|
|
149
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
150
|
-
border-radius: 14px 10px 10px 4px;
|
|
148
|
+
border-radius: 10px 10px 10px 2px;
|
|
151
149
|
font-size: 12px;
|
|
152
150
|
color: #ffffff;
|
|
153
151
|
line-height: 18px;
|
|
@@ -68,9 +68,8 @@
|
|
|
68
68
|
width: 40px;
|
|
69
69
|
height: 18px;
|
|
70
70
|
min-width: 40px;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
border-radius: 14px 10px 10px 4px;
|
|
71
|
+
border-radius: 10px 10px 10px 2px;
|
|
72
|
+
padding: 0 6px;
|
|
74
73
|
font-size: 12px;
|
|
75
74
|
color: #ffffff;
|
|
76
75
|
line-height: 18px;
|
|
@@ -38,12 +38,10 @@
|
|
|
38
38
|
display: inline-flex;
|
|
39
39
|
align-items: center;
|
|
40
40
|
justify-content: center;
|
|
41
|
-
padding: 0
|
|
41
|
+
padding: 0 6px;
|
|
42
42
|
height: 18px;
|
|
43
43
|
min-width: 40px;
|
|
44
|
-
|
|
45
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
46
|
-
border-radius: 14px 10px 10px 4px;
|
|
44
|
+
border-radius: 10px 10px 10px 2px;
|
|
47
45
|
font-size: 12px;
|
|
48
46
|
color: #ffffff;
|
|
49
47
|
line-height: 18px;
|
|
@@ -105,12 +105,10 @@
|
|
|
105
105
|
display: inline-flex;
|
|
106
106
|
align-items: center;
|
|
107
107
|
justify-content: center;
|
|
108
|
-
padding: 0
|
|
108
|
+
padding: 0 6px;
|
|
109
109
|
height: 18px;
|
|
110
110
|
min-width: 40px;
|
|
111
|
-
|
|
112
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
113
|
-
border-radius: 14px 10px 10px 4px;
|
|
111
|
+
border-radius: 10px 10px 10px 2px;
|
|
114
112
|
font-size: 12px;
|
|
115
113
|
color: #ffffff;
|
|
116
114
|
line-height: 18px;
|
|
@@ -122,7 +122,7 @@ function OKRAlignComponent() {
|
|
|
122
122
|
}
|
|
123
123
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_titaChart["default"].LiquidBall, {
|
|
124
124
|
PrePercentNum: 0,
|
|
125
|
-
name:
|
|
125
|
+
name: (0, _getLocale.getLocale)('HP_Alignmentrate'),
|
|
126
126
|
percentNum: alignPercent
|
|
127
127
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
128
128
|
num: hadAlignOkrNum,
|
|
@@ -138,7 +138,7 @@ function OKRProgressComponent() {
|
|
|
138
138
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_titaChart["default"].LiquidBall, {
|
|
139
139
|
PrePercentNum: 0,
|
|
140
140
|
percentNum: UpdatePercent,
|
|
141
|
-
name:
|
|
141
|
+
name: (0, _getLocale.getLocale)('HP_Completiorate')
|
|
142
142
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
143
143
|
num: hadUpdateOkrNum,
|
|
144
144
|
updataNum: weekLatelyUpdatekrProgress,
|
|
@@ -161,9 +161,9 @@ var ImgViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
161
161
|
text: currentImgData && currentImgData.fileName || '',
|
|
162
162
|
isPercent: true,
|
|
163
163
|
minusWidth: 60
|
|
164
|
-
})), /*#__PURE__*/_react["default"].createElement("span", null, showDownload && /*#__PURE__*/_react["default"].createElement("a", {
|
|
164
|
+
})), /*#__PURE__*/_react["default"].createElement("span", null, showDownload && currentImgData && currentImgData.downloadUrl && /*#__PURE__*/_react["default"].createElement("a", {
|
|
165
165
|
className: prefix + "__header-download",
|
|
166
|
-
href: currentImgData.downloadUrl
|
|
166
|
+
href: (currentImgData === null || currentImgData === void 0 ? void 0 : currentImgData.downloadUrl) || 'javascript:;'
|
|
167
167
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
168
168
|
className: (0, _classnames["default"])("tu-icon-APP-xiazai", prefix + "__header-download-icon")
|
|
169
169
|
}), (0, _getLocale.getLocale)('Mod_Download')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -192,7 +192,7 @@ var ImgViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
192
192
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
193
193
|
className: prefix + '__body-img',
|
|
194
194
|
ref: imgRef,
|
|
195
|
-
src: currentImgData.previewUrl || currentImgData.bigImageUrl,
|
|
195
|
+
src: (currentImgData === null || currentImgData === void 0 ? void 0 : currentImgData.previewUrl) || (currentImgData === null || currentImgData === void 0 ? void 0 : currentImgData.bigImageUrl),
|
|
196
196
|
style: {
|
|
197
197
|
transform: "scale(".concat(currentScale, ")")
|
|
198
198
|
}
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _simplebar = _interopRequireDefault(require("../../../scrollbar/simplebar/simplebar"));
|
|
13
|
+
|
|
12
14
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
15
|
|
|
14
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -210,6 +212,14 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
210
212
|
observer.disconnect();
|
|
211
213
|
};
|
|
212
214
|
}, []);
|
|
215
|
+
|
|
216
|
+
var onClickShowMore = function onClickShowMore() {
|
|
217
|
+
var instance = _simplebar["default"].instances.get(document.querySelector(".".concat(_precls["default"], "__inner [data-simplebar]")));
|
|
218
|
+
|
|
219
|
+
var el = instance.getScrollElement();
|
|
220
|
+
el.scrollTop = el.scrollTop + 150;
|
|
221
|
+
};
|
|
222
|
+
|
|
213
223
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
224
|
ref: flipCardRef,
|
|
215
225
|
onMouseEnter: onFlipMouseEnterHandler,
|
|
@@ -242,7 +252,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
242
252
|
}, /*#__PURE__*/_react["default"].createElement(_flipBackHeader["default"], {
|
|
243
253
|
onClick: goBackHandler
|
|
244
254
|
}), children[1]))), showMore && /*#__PURE__*/_react["default"].createElement("div", {
|
|
245
|
-
className: "".concat(_precls["default"], "__has-more")
|
|
255
|
+
className: "".concat(_precls["default"], "__has-more"),
|
|
256
|
+
onClick: onClickShowMore
|
|
246
257
|
}))), !isHideTopRightIcon && /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
|
|
247
258
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__top-right-hide-icon")),
|
|
248
259
|
isAutoShow: true,
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
opacity: 0;
|
|
16
16
|
background: #e9f1ff;
|
|
17
17
|
border-radius: 12px;
|
|
18
|
-
font-weight:
|
|
18
|
+
font-weight: 600;
|
|
19
19
|
will-change: opacity;
|
|
20
20
|
animation: selectMenuOpacity 0.4s 1 forwards;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title {
|
|
24
24
|
color: #2879ff;
|
|
25
|
-
font-weight:
|
|
25
|
+
font-weight: 600;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__sub-menu-item-node-title {
|