@titaui/pc 1.11.51 → 1.11.52-beta.11
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/button/images/blue.svg +21 -0
- package/lib/components/button/images/red.svg +21 -0
- package/lib/components/button/images/white.svg +19 -0
- package/lib/components/button/rect-btn/index.js +3 -3
- package/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/checkbox/index.css +4 -0
- package/lib/components/contact-kefu/index.css +11 -1
- package/lib/components/contact-kefu/index.js +10 -4
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +30 -19
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +200 -133
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +95 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +53 -56
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -8
- package/lib/components/dynamic/dynamic-list/index.js +14 -7
- package/lib/components/dynamic/index.js +9 -12
- package/lib/components/dynamic/request-api.js +7 -68
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +11 -9
- package/lib/components/nav-top/components/menu/index.js +18 -16
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +86 -40
- package/lib/components/okr-detail/components/header/index.css +120 -41
- package/lib/components/okr-detail/components/header/index.js +36 -46
- package/lib/components/okr-detail/components/header/o-classify.js +152 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +58 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +159 -63
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/detail-header/index.js +8 -4
- package/lib/components/okr-detail/e-list/index.js +2 -2
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +183 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/period-selector/interface.js +7 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/search-input/index.css +1 -1
- package/lib/components/search-key-handle/index.js +9 -7
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select-layer/index.css +1 -1
- package/lib/components/task-relation-modal/helper.js +139 -2
- package/lib/components/task-relation-modal/image/loading.gif +0 -0
- package/lib/components/task-relation-modal/index.js +9 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +262 -0
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +135 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
- package/lib/components/task-relation-modal/okr-relation/request-api.js +106 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +120 -0
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +185 -0
- package/lib/components/task-relation-modal/request-api.js +28 -2
- package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
- package/lib/components/task-relation-modal/search/principal.js +36 -19
- package/lib/components/task-relation-modal/search/search-dropdown/index.css +2 -1
- package/lib/components/task-relation-modal/search/search-dropdown/index.js +1 -1
- package/lib/components/{dynamic/dynamic-topping/index.js → task-relation-modal/search/task-relation.js} +45 -44
- package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
- package/lib/components/{dynamic/dynamic-liking/index.js → task-relation-modal/search/work-relation.js} +43 -39
- package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
- package/lib/components/task-relation-modal/tree/category-tree/index.css +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +16 -2
- package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
- package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
- package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
- package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
- package/lib/components/task-relation-modal/tree/work-list/search-form.js +123 -0
- package/lib/components/task-relation-modal/tree/work-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +1 -12
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -10
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
- package/lib/components/task-relation-modal/work-relation/index.css +0 -0
- package/lib/components/task-relation-modal/work-relation/index.js +256 -0
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/tooltip/index.js +3 -0
- package/lib/components/tooltip/tooltip-rows/index.css +26 -0
- package/lib/components/{dynamic/advertise → tooltip/tooltip-rows}/index.js +65 -85
- package/lib/components/user-selector/category-selector-panel/index.js +6 -1
- package/lib/components/{dynamic/quick-operation/components/create-task/index.js → user-selector/category-selector-panel/subordinate-tree.js} +37 -20
- package/lib/components/user-selector/constant.js +10 -2
- package/lib/components/user-selector/empty/index.css +5 -0
- package/lib/components/user-selector/empty/index.js +9 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +45 -17
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -1
- package/lib/components/user-selector/images/no-auth.png +0 -0
- package/lib/components/user-selector/request-apis.js +28 -9
- package/lib/components/user-selector/searched-panel/index.js +21 -7
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +46 -18
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/utils/open-data.js +213 -65
- package/lib/utils/planDataJson.js +11115 -0
- package/package.json +3 -2
- package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
- package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
- package/lib/components/dynamic/advertise/index.css +0 -21
- package/lib/components/dynamic/advertise/interface.js +0 -5
- package/lib/components/dynamic/advertise/util.js +0 -28
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
- package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
- package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
- 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/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
- 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/item.js +0 -75
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -141
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -153
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -173
- package/lib/components/dynamic/dynamic.js +0 -428
- package/lib/components/dynamic/export-module/index.js +0 -37
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- 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 +0 -184
- package/lib/components/dynamic/my-team/index.js +0 -263
- package/lib/components/dynamic/my-team/request-api.js +0 -52
- package/lib/components/dynamic/my-team/util.js +0 -20
- package/lib/components/dynamic/new-ui.css +0 -192
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
- package/lib/components/dynamic/online-broadcast/data.js +0 -95
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
- 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 +0 -46
- package/lib/components/dynamic/online-broadcast/index.js +0 -61
- package/lib/components/dynamic/online-broadcast/interfact.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 -39
- 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 -39
- 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 -39
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- 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 +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -120
|
@@ -37,6 +37,8 @@ var _getLocale = require("../../../../../utils/getLocale");
|
|
|
37
37
|
|
|
38
38
|
var _i18nFrontTranslate = require("../../../../../utils/i18n-front-translate");
|
|
39
39
|
|
|
40
|
+
var _openData = require("../../../../../utils/open-data");
|
|
41
|
+
|
|
40
42
|
require("./index.css");
|
|
41
43
|
|
|
42
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -103,12 +105,12 @@ var OProgress = function OProgress(_ref) {
|
|
|
103
105
|
editOProgressVisiable = _useState12[0],
|
|
104
106
|
setEditOProgressVisiable = _useState12[1];
|
|
105
107
|
|
|
106
|
-
var _useState13 = (0, _react.useState)(
|
|
108
|
+
var _useState13 = (0, _react.useState)(''),
|
|
107
109
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
108
110
|
editOProgressContent = _useState14[0],
|
|
109
111
|
setEditOProgressContent = _useState14[1];
|
|
110
112
|
|
|
111
|
-
var _useState15 = (0, _react.useState)(
|
|
113
|
+
var _useState15 = (0, _react.useState)(''),
|
|
112
114
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
113
115
|
editOProgressId = _useState16[0],
|
|
114
116
|
setEditOProgressId = _useState16[1];
|
|
@@ -143,9 +145,9 @@ var OProgress = function OProgress(_ref) {
|
|
|
143
145
|
};
|
|
144
146
|
|
|
145
147
|
var handleModalOkClick = function handleModalOkClick() {
|
|
146
|
-
(0, _requestApis.updateProgressDesc)(editOProgressId, okrInfo.workId, editOProgressContent ||
|
|
148
|
+
(0, _requestApis.updateProgressDesc)(editOProgressId, okrInfo.workId, editOProgressContent || '').then(function (resp) {
|
|
147
149
|
if (resp.Code === 1) {
|
|
148
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
150
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
|
|
149
151
|
canClose: false
|
|
150
152
|
});
|
|
151
153
|
|
|
@@ -158,7 +160,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
158
160
|
});
|
|
159
161
|
}
|
|
160
162
|
})["catch"](function (e) {
|
|
161
|
-
_toast["default"].Error(
|
|
163
|
+
_toast["default"].Error('网络异常', {
|
|
162
164
|
canClose: false
|
|
163
165
|
});
|
|
164
166
|
});
|
|
@@ -177,7 +179,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
177
179
|
onClick: onOpenModal
|
|
178
180
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
179
181
|
className: "tu-icon-gengxin o-progress__func-btn-icon"
|
|
180
|
-
}), (0, _getLocale.getLocale)(
|
|
182
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Update'));
|
|
181
183
|
};
|
|
182
184
|
|
|
183
185
|
var handleRemind = (0, _react.useCallback)(function () {
|
|
@@ -188,7 +190,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
188
190
|
type: 2
|
|
189
191
|
}).then(function (resp) {
|
|
190
192
|
if (resp.Code === 1) {
|
|
191
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
193
|
+
_toast["default"].Success((0, _getLocale.getLocale)('OKR_MyO_Prog_Remindersu'), {
|
|
192
194
|
canClose: false
|
|
193
195
|
});
|
|
194
196
|
} else {
|
|
@@ -197,7 +199,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
197
199
|
});
|
|
198
200
|
}
|
|
199
201
|
})["catch"](function (e) {
|
|
200
|
-
_toast["default"].Error(
|
|
202
|
+
_toast["default"].Error('网络异常', {
|
|
201
203
|
canClose: false
|
|
202
204
|
});
|
|
203
205
|
})["finally"](function () {
|
|
@@ -212,7 +214,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
212
214
|
work_id: okrInfo.workId
|
|
213
215
|
}).then(function (resp) {
|
|
214
216
|
if (resp.Code === 1) {
|
|
215
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
217
|
+
_toast["default"].Success((0, _getLocale.getLocale)('OKR_MyO_Prog_Remindersu'), {
|
|
216
218
|
canClose: false
|
|
217
219
|
});
|
|
218
220
|
} else {
|
|
@@ -221,7 +223,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
221
223
|
});
|
|
222
224
|
}
|
|
223
225
|
})["catch"](function (e) {
|
|
224
|
-
_toast["default"].Error(
|
|
226
|
+
_toast["default"].Error('网络异常', {
|
|
225
227
|
canClose: false
|
|
226
228
|
});
|
|
227
229
|
});
|
|
@@ -245,7 +247,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
245
247
|
}, [generalPrincipalUser]);
|
|
246
248
|
(0, _react.useEffect)(function () {
|
|
247
249
|
// @ts-ignore
|
|
248
|
-
var dom = document.querySelector(
|
|
250
|
+
var dom = document.querySelector('.o-progress__contnet-wrapper').querySelector('.okr-progress-item-wrapper'); // @ts-ignore
|
|
249
251
|
|
|
250
252
|
var height = dom ? dom.offsetHeight : 0; // 为了解决展开内容编辑过后收起时计算的高度是根据展开的算 16是第一个目标进展在展开和收起所以列表的时候的padding-bottom差
|
|
251
253
|
|
|
@@ -265,53 +267,53 @@ var OProgress = function OProgress(_ref) {
|
|
|
265
267
|
type: "warning"
|
|
266
268
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
267
269
|
type: "title"
|
|
268
|
-
}, (0, _getLocale.getLocale)(
|
|
270
|
+
}, (0, _getLocale.getLocale)('OKR_DR_Pop_Areyousure')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
269
271
|
type: "content"
|
|
270
|
-
}, (0, _getLocale.getLocale)(
|
|
272
|
+
}, (0, _getLocale.getLocale)('OKR_DR_Pop_ThesystemOKR')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
271
273
|
type: "button",
|
|
272
274
|
onClick: handleCancelRemind
|
|
273
|
-
}, (0, _getLocale.getLocale)(
|
|
275
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
|
|
274
276
|
type: "button",
|
|
275
277
|
onClick: handleEnsureRemind
|
|
276
|
-
}, (0, _getLocale.getLocale)(
|
|
278
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine')));
|
|
277
279
|
}, [showRemindDialogConfirm, handleCancelRemind, handleEnsureRemind]);
|
|
278
280
|
var renderEmptyCmp = (0, _react.useMemo)(function () {
|
|
279
281
|
var renderUpdateBtn = function renderUpdateBtn(_ref3) {
|
|
280
282
|
var onOpenModal = _ref3.onOpenModal;
|
|
281
283
|
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
282
|
-
className: "o-progress__empty-button ".concat(isPrincipalUser ?
|
|
284
|
+
className: "o-progress__empty-button ".concat(isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'),
|
|
283
285
|
onClick: onOpenModal
|
|
284
|
-
}, (0, _getLocale.getLocale)(
|
|
286
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Update'));
|
|
285
287
|
};
|
|
286
288
|
|
|
287
289
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
288
290
|
className: (0, _classnames["default"])({
|
|
289
|
-
|
|
290
|
-
|
|
291
|
+
'o-progress__empty-wrapper': true,
|
|
292
|
+
'o-progress__empty-wrapper--not-principaluser': hasOtherProgress
|
|
291
293
|
})
|
|
292
294
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
293
295
|
width: 128,
|
|
294
296
|
src: _scheduleEmpty["default"]
|
|
295
297
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
296
298
|
className: "o-progress__empty-text"
|
|
297
|
-
}, isPrincipalUser ? (0, _getLocale.getLocale)(
|
|
299
|
+
}, isPrincipalUser ? (0, _getLocale.getLocale)('OKR_MyO_KRP_tochecko') : (0, _getLocale.getLocale)('OKR_MyO_Pr_Text_Nooprogress')), isPrincipalUser && /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
298
300
|
okrInfo: okrInfo,
|
|
299
301
|
renderContent: renderUpdateBtn,
|
|
300
302
|
setUpdateData: setUpdateProgress
|
|
301
303
|
}), !isCanEditProgress && /*#__PURE__*/_react["default"].createElement("button", {
|
|
302
304
|
className: "o-progress__empty-button",
|
|
303
305
|
onClick: handleRemindClick
|
|
304
|
-
}, (0, _getLocale.getLocale)(
|
|
306
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder')), isCanEditProgress && !isPrincipalUser && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("button", {
|
|
305
307
|
className: "o-progress__empty-button",
|
|
306
308
|
onClick: handleRemindClick
|
|
307
|
-
}, (0, _getLocale.getLocale)(
|
|
309
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder')), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
308
310
|
okrInfo: okrInfo,
|
|
309
311
|
renderContent: renderUpdateBtn,
|
|
310
312
|
setUpdateData: setUpdateProgress
|
|
311
313
|
})));
|
|
312
314
|
}, [hasOtherProgress]);
|
|
313
315
|
var renderDefaultRemindCmp = (0, _react.useMemo)(function () {
|
|
314
|
-
var text = isPrincipalUser ? (0, _auth.hasSuperior)() ? (0, _getLocale.getLocale)(
|
|
316
|
+
var text = isPrincipalUser ? (0, _auth.hasSuperior)() ? (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Remind') : null : (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder');
|
|
315
317
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
316
318
|
className: "o-progress__func-btn",
|
|
317
319
|
onClick: handleRemindClick
|
|
@@ -324,7 +326,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
324
326
|
}, oProgressData.length === 0 ? renderEmptyCmp : /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
327
|
className: "o-progress__header"
|
|
326
328
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
327
|
-
title: (0, _getLocale.getLocale)(
|
|
329
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Prog_Objectiveprogress')
|
|
328
330
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
329
331
|
className: "o-progress__func-btns"
|
|
330
332
|
}, okrInfo.status === 2 ? null : renderDefaultRemindCmp, isCanEditProgress ? /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
@@ -332,12 +334,12 @@ var OProgress = function OProgress(_ref) {
|
|
|
332
334
|
renderContent: renderContent,
|
|
333
335
|
setUpdateData: setUpdateProgress
|
|
334
336
|
}) : null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
335
|
-
className: "o-progress__contnet-wrapper ".concat(isMoreThanOneProgress && isShowAll ?
|
|
337
|
+
className: "o-progress__contnet-wrapper ".concat(isMoreThanOneProgress && isShowAll ? '' : 'o-progress__content-wrapper--fold'),
|
|
336
338
|
style: {
|
|
337
|
-
height: isShowAll ?
|
|
339
|
+
height: isShowAll ? 'auto' : "".concat(initHeight, "px")
|
|
338
340
|
}
|
|
339
341
|
}, oProgressData && oProgressData.map(function (item, index) {
|
|
340
|
-
var rightTip =
|
|
342
|
+
var rightTip = '';
|
|
341
343
|
|
|
342
344
|
if (okrInfo.status !== 2 && okrInfo.progress !== 100 && index === 0 && isCanEditProgress) {
|
|
343
345
|
rightTip = (0, _util.getToNowTime)(item.time);
|
|
@@ -346,7 +348,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
346
348
|
return /*#__PURE__*/_react["default"].createElement(_okrProgressDetail["default"], {
|
|
347
349
|
key: item.id,
|
|
348
350
|
riskLevel: item.riskLevel,
|
|
349
|
-
title: item.title,
|
|
351
|
+
title: (0, _openData.parseString)(item.title || ''),
|
|
350
352
|
percent: item.percent,
|
|
351
353
|
oldPercent: item.oldPercent,
|
|
352
354
|
content: item.content,
|
|
@@ -361,8 +363,8 @@ var OProgress = function OProgress(_ref) {
|
|
|
361
363
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
362
364
|
className: "o-progress__shrink-text",
|
|
363
365
|
onClick: handleChangeShowAll
|
|
364
|
-
}, isShowAll ? (0, _getLocale.getLocale)(
|
|
365
|
-
className: isShowAll ?
|
|
366
|
+
}, isShowAll ? (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Fold') : (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Viewall'), /*#__PURE__*/_react["default"].createElement("i", {
|
|
367
|
+
className: isShowAll ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down'
|
|
366
368
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
|
|
367
369
|
className: "common-modal o-progress__modal",
|
|
368
370
|
maskClosable: false,
|
|
@@ -373,9 +375,9 @@ var OProgress = function OProgress(_ref) {
|
|
|
373
375
|
visible: editOProgressVisiable,
|
|
374
376
|
width: 600
|
|
375
377
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
376
|
-
className: "o-progress__textarea-wrapper ".concat(hasError ?
|
|
378
|
+
className: "o-progress__textarea-wrapper ".concat(hasError ? 'o-progress__textarea-wrapper--error' : '')
|
|
377
379
|
}, /*#__PURE__*/_react["default"].createElement("textarea", {
|
|
378
|
-
placeholder: (0, _getLocale.getLocale)(
|
|
380
|
+
placeholder: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Pleprogress'),
|
|
379
381
|
className: "o-progress__textarea",
|
|
380
382
|
value: editOProgressContent,
|
|
381
383
|
onChange: handleTextareaChange
|
|
@@ -15,6 +15,8 @@ var _scheduleO = _interopRequireDefault(require("../../img/schedule-o.svg"));
|
|
|
15
15
|
|
|
16
16
|
var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
|
|
17
17
|
|
|
18
|
+
var _openData = require("../../../../../utils/open-data");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -30,7 +32,7 @@ var renderTitle = function renderTitle(title, workId) {
|
|
|
30
32
|
okrId: workId
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
}, title));
|
|
35
|
+
}, (0, _openData.parseString)(title)));
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
var SubOProgress = function SubOProgress(_ref) {
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _CircleProgress = _interopRequireDefault(require("../../../components-v1/progress/CircleProgress"));
|
|
13
13
|
|
|
14
|
+
var _openData = require("../../../utils/open-data");
|
|
15
|
+
|
|
14
16
|
var _creator = _interopRequireDefault(require("./fields/creator"));
|
|
15
17
|
|
|
16
18
|
var _precls = _interopRequireDefault(require("../precls"));
|
|
@@ -50,7 +52,7 @@ function KrNode(_ref) {
|
|
|
50
52
|
color: "#5AD8A6",
|
|
51
53
|
marginRight: 8
|
|
52
54
|
}
|
|
53
|
-
}, "KR", SortNum + 1), mileStoneName), /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
+
}, "KR", SortNum + 1), (0, _openData.parseString)(mileStoneName)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
54
56
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--node-desp"))
|
|
55
57
|
}, /*#__PURE__*/_react["default"].createElement(_creator["default"], {
|
|
56
58
|
creator: user || {}
|
|
@@ -33,6 +33,8 @@ var _getLocale = require("../../../utils/getLocale");
|
|
|
33
33
|
|
|
34
34
|
var _tools = require("../../../utils/tools");
|
|
35
35
|
|
|
36
|
+
var _openData2 = require("../../../utils/open-data");
|
|
37
|
+
|
|
36
38
|
var _drawerManager = _interopRequireDefault(require("../../../components/drawer-manager"));
|
|
37
39
|
|
|
38
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -239,7 +241,7 @@ function WorkNode(_ref) {
|
|
|
239
241
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
242
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--node-title")),
|
|
241
243
|
onClick: openODetail
|
|
242
|
-
}, (0, _tools.htmlDecodeByRegExp)(workName), /*#__PURE__*/_react["default"].createElement(_okrClassify["default"], {
|
|
244
|
+
}, (0, _openData2.parseString)((0, _tools.htmlDecodeByRegExp)(workName)), /*#__PURE__*/_react["default"].createElement(_okrClassify["default"], {
|
|
243
245
|
classify: okrClassify
|
|
244
246
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
245
247
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--node-desp")),
|
|
@@ -15,10 +15,12 @@ var _tooltipText = _interopRequireDefault(require("../../../tooltip/tooltip-text
|
|
|
15
15
|
|
|
16
16
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
17
17
|
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
18
|
var _getLocale = require("../../../../utils/getLocale");
|
|
21
19
|
|
|
20
|
+
var _openData = require("../../../../utils/open-data");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
var renderTitle = function renderTitle(index, title, id) {
|
|
@@ -33,7 +35,7 @@ var renderTitle = function renderTitle(index, title, id) {
|
|
|
33
35
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
36
|
className: "kr-progress__order"
|
|
35
37
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
36
|
-
text: title,
|
|
38
|
+
text: (0, _openData.parseString)(title),
|
|
37
39
|
maxWidth: 600,
|
|
38
40
|
exClass: "kr-progress__title-text"
|
|
39
41
|
}));
|
|
@@ -35,6 +35,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
35
35
|
|
|
36
36
|
var _i18nFrontTranslate = require("../../../../utils/i18n-front-translate");
|
|
37
37
|
|
|
38
|
+
var _openData = require("../../../../utils/open-data");
|
|
39
|
+
|
|
38
40
|
require("./index.css");
|
|
39
41
|
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -329,7 +331,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
329
331
|
return /*#__PURE__*/_react["default"].createElement(_okrProgressDetail["default"], {
|
|
330
332
|
key: item.id,
|
|
331
333
|
riskLevel: item.riskLevel,
|
|
332
|
-
title: item.title,
|
|
334
|
+
title: (0, _openData.parseString)(item.title),
|
|
333
335
|
percent: item.percent,
|
|
334
336
|
oldPercent: item.oldPercent,
|
|
335
337
|
content: item.content,
|
|
@@ -15,6 +15,8 @@ var _scheduleO = _interopRequireDefault(require("../../img/schedule-o.svg"));
|
|
|
15
15
|
|
|
16
16
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
17
17
|
|
|
18
|
+
var _openData = require("../../../../utils/open-data");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -31,7 +33,7 @@ var renderTitle = function renderTitle(title, workId) {
|
|
|
31
33
|
okrId: workId
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
|
-
}, title));
|
|
36
|
+
}, (0, _openData.parseString)(title)));
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
var SubOProgress = function SubOProgress(_ref) {
|
|
@@ -13,6 +13,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../common");
|
|
15
15
|
|
|
16
|
+
var _openData = require("../../../../../utils/open-data");
|
|
17
|
+
|
|
16
18
|
var _style = require("./style");
|
|
17
19
|
|
|
18
20
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
@@ -21,8 +23,6 @@ var _UserSelectorPop = _interopRequireDefault(require("../../../../../components
|
|
|
21
23
|
|
|
22
24
|
var _requestV = require("../../../../../utils/request-v1");
|
|
23
25
|
|
|
24
|
-
var _openData = require("../../../../../utils/open-data");
|
|
25
|
-
|
|
26
26
|
var _mblog = require("../../../../../utils/mblog");
|
|
27
27
|
|
|
28
28
|
var _ConfirmPop = _interopRequireDefault(require("../../../../delete-confirm-pop/ConfirmPop"));
|
|
@@ -612,7 +612,7 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
612
612
|
className: ObjData.ObjType == 65 ? "review-kr" : "tu-icon-OKR"
|
|
613
613
|
}, ObjData.ObjType == 65 ? "KR".concat(ObjData.ObjIndex == 0 ? "" : ObjData.ObjIndex) : ""), /*#__PURE__*/_react["default"].createElement("p", {
|
|
614
614
|
className: "okr-name"
|
|
615
|
-
}, (0, _mblog.htmlDecodeByRegExp)(ObjData.ObjName)))), /*#__PURE__*/_react["default"].createElement(_style.ReviewWorth, null, /*#__PURE__*/_react["default"].createElement(_style.ReviewCatalog, null, (0, _getLocale.getLocale)("OKR_MyO_KRP_Pop_Value")), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
615
|
+
}, (0, _openData.parseString)((0, _mblog.htmlDecodeByRegExp)(ObjData.ObjName))))), /*#__PURE__*/_react["default"].createElement(_style.ReviewWorth, null, /*#__PURE__*/_react["default"].createElement(_style.ReviewCatalog, null, (0, _getLocale.getLocale)("OKR_MyO_KRP_Pop_Value")), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
616
616
|
maxLength: 5000,
|
|
617
617
|
value: (0, _mblog.htmlDecodeByRegExp)(data.gains),
|
|
618
618
|
initialHeight: 56,
|
|
@@ -45,7 +45,7 @@ var ReviewItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(ReviewItem);
|
|
46
46
|
|
|
47
47
|
function ReviewItem() {
|
|
48
|
-
var _this;
|
|
48
|
+
var _temp, _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, ReviewItem);
|
|
51
51
|
|
|
@@ -53,14 +53,14 @@ var ReviewItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
53
53
|
args[_key] = arguments[_key];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this._handlerLinkToReviewDetail = function () {
|
|
56
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this._handlerLinkToReviewDetail = function () {
|
|
57
57
|
var _this$props = _this.props,
|
|
58
58
|
feedId = _this$props.feedId,
|
|
59
59
|
reviewItemData = _this$props.reviewItemData,
|
|
60
60
|
krIndex = _this$props.krIndex,
|
|
61
61
|
editAble = _this$props.editAble;
|
|
62
62
|
window.open("".concat(location.pathname, "#okr/reviewDetail?okrId=8077&back=").concat(location.hash, "&replayId=").concat(reviewItemData.replayId, "&feedId=").concat(feedId, "&krIndex=").concat(krIndex, "&editAble=").concat(editAble));
|
|
63
|
-
},
|
|
63
|
+
}, _temp));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
_createClass(ReviewItem, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var _this;
|
|
52
|
+
var _temp, _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
60
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _temp));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -16,10 +16,13 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
16
16
|
var getOpenData = function getOpenData(_ref) {
|
|
17
17
|
var id = _ref.id,
|
|
18
18
|
name = _ref.name,
|
|
19
|
-
type = _ref.type
|
|
20
|
-
|
|
19
|
+
type = _ref.type,
|
|
20
|
+
openId = _ref.openId;
|
|
21
|
+
openId = openId || (0, _openData.getOpenId)(id, type); //@ts-ignore
|
|
22
|
+
|
|
21
23
|
if (!window.WWOpenData || !openId) return Promise.resolve(name);
|
|
22
24
|
return new Promise(function (resolve, reject) {
|
|
25
|
+
//@ts-ignore
|
|
23
26
|
window.WWOpenData.prefetch({
|
|
24
27
|
items: [{
|
|
25
28
|
id: openId,
|
|
@@ -33,7 +36,7 @@ var getOpenData = function getOpenData(_ref) {
|
|
|
33
36
|
if (data && data.items[0]) {
|
|
34
37
|
resolve(data.items[0].data);
|
|
35
38
|
} else {
|
|
36
|
-
resolve(name);
|
|
39
|
+
resolve(name || '');
|
|
37
40
|
}
|
|
38
41
|
});
|
|
39
42
|
});
|
|
@@ -71,18 +74,18 @@ function _openDataPainter() {
|
|
|
71
74
|
name = _context.sent;
|
|
72
75
|
|
|
73
76
|
case 6:
|
|
74
|
-
_ctx$measureText = ctx.measureText(name), width = _ctx$measureText.width;
|
|
77
|
+
_ctx$measureText = ctx.measureText(name || ''), width = _ctx$measureText.width;
|
|
75
78
|
actualWidth = Math.min(width, maxWidth);
|
|
76
79
|
return _context.abrupt("return", {
|
|
77
80
|
width: actualWidth,
|
|
78
81
|
height: lineHeight,
|
|
79
82
|
draw: function draw(ctx, x, y) {
|
|
80
83
|
ctx.save();
|
|
81
|
-
ctx.textBaseline =
|
|
84
|
+
ctx.textBaseline = 'middle';
|
|
82
85
|
ctx.beginPath();
|
|
83
86
|
ctx.rect(x, y, actualWidth, lineHeight);
|
|
84
87
|
ctx.clip();
|
|
85
|
-
ctx.fillText(name, x, y + lineHeight / 2);
|
|
88
|
+
ctx.fillText(name || '', x, y + lineHeight / 2);
|
|
86
89
|
ctx.closePath();
|
|
87
90
|
ctx.restore();
|
|
88
91
|
}
|