@titaui/pc 1.11.17 → 1.11.20
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/communication/index.js +30 -29
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +0 -2
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/okr-flow/child-node/index.css +2 -1
- package/lib/components/okr-flow/utils/index.js +5 -6
- package/lib/components/period-selector/index.css +6 -0
- package/lib/components/period-selector/index.js +1 -1
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/index.js +8 -0
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +24 -12
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +51 -11
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +20 -12
- package/lib/pages/okr-map/number-select/index.css +9 -9
- package/package.json +2 -1
|
@@ -71,7 +71,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
71
71
|
|
|
72
72
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
73
73
|
|
|
74
|
-
var prefix =
|
|
74
|
+
var prefix = 'titaui-communication';
|
|
75
75
|
|
|
76
76
|
var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
77
77
|
_inherits(Communication, _PureComponent);
|
|
@@ -90,14 +90,14 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
90
|
commentType = _this$props.commentType,
|
|
91
91
|
okrFeedParams = _this$props.okrFeedParams;
|
|
92
92
|
var url = commentType == 1 ? (0, _requestV.getApiUrl2)("comment/Get?feed_id=".concat(feedId, "&comment_type=0")) : (0, _requestV.getApiUrl)("okr/cycle/getFeed?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum, "&commentCount=").concat(commentCount));
|
|
93
|
-
(0, _requestV.taker)(url,
|
|
93
|
+
(0, _requestV.taker)(url, 'GET').then(function (res) {
|
|
94
94
|
if (res.Code === 1) {
|
|
95
95
|
var data = res.Data && (res.Data.feedComments || res.Data);
|
|
96
96
|
|
|
97
97
|
_this.setState({
|
|
98
98
|
communicationTrackList: data.comments ? data.comments : [],
|
|
99
99
|
communicationTrackTotal: data.total,
|
|
100
|
-
okrCommentFeedId: commentType === 2 ? res.Data.feedId :
|
|
100
|
+
okrCommentFeedId: commentType === 2 ? res.Data.feedId : ''
|
|
101
101
|
});
|
|
102
102
|
} else {
|
|
103
103
|
_this.setState({
|
|
@@ -137,10 +137,10 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
137
137
|
|
|
138
138
|
var communicationTrackList = _toConsumableArray(_this.state.communicationTrackList);
|
|
139
139
|
|
|
140
|
-
if (actionType ===
|
|
140
|
+
if (actionType === 'delete') {
|
|
141
141
|
// 删除
|
|
142
142
|
var url = (0, _requestV.getApiUrl2)("comment/Delete?comment_id=".concat(communicationTrackList[index].commentId, "&feed_id=").concat(feedId || _this.state.okrCommentFeedId));
|
|
143
|
-
(0, _requestV.taker)(url,
|
|
143
|
+
(0, _requestV.taker)(url, 'DELETE').then(function (res) {
|
|
144
144
|
if (res.Code === 1) {
|
|
145
145
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal - 1) : _this.getFeedInfo(feedId, commentCount);
|
|
146
146
|
|
|
@@ -151,7 +151,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
} else if (actionType ===
|
|
154
|
+
} else if (actionType === 'reply') {
|
|
155
155
|
// 沟通里的回复
|
|
156
156
|
if (_this.props.useCustomMblog && _this.props.onComment) {
|
|
157
157
|
_this.props.onComment({
|
|
@@ -178,7 +178,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
178
178
|
isShowDefaultInput: false,
|
|
179
179
|
needAutoFocus: true
|
|
180
180
|
});
|
|
181
|
-
} else if (actionType ===
|
|
181
|
+
} else if (actionType === 'praise') {
|
|
182
182
|
// 沟通里的点赞
|
|
183
183
|
var isPraise = communicationTrackList[index].isPraise;
|
|
184
184
|
isPraise = !isPraise;
|
|
@@ -189,7 +189,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
189
189
|
|
|
190
190
|
var _url = isPraise ? (0, _requestV.getApiUrl)("praise/add?objId=".concat(communicationTrackList[index].commentId, "&objType=19&praiseType=1")) : (0, _requestV.getApiUrl)("praise/cancel?objId=".concat(communicationTrackList[index].commentId, "&objType=19"));
|
|
191
191
|
|
|
192
|
-
(0, _requestV.taker)(_url,
|
|
192
|
+
(0, _requestV.taker)(_url, 'POST').then(function (res) {
|
|
193
193
|
if (res.Code === 1) {
|
|
194
194
|
var praiseTotal = communicationTrackList[index].praiseTotal;
|
|
195
195
|
communicationTrackList[index].isPraise = isPraise;
|
|
@@ -205,7 +205,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
} else if (actionType ===
|
|
208
|
+
} else if (actionType === 'showPraiseRecord') {
|
|
209
209
|
// 显示点赞记录
|
|
210
210
|
_this.setState({
|
|
211
211
|
isShowPraiseRecordPop: true,
|
|
@@ -241,13 +241,13 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
241
241
|
communicationTrackTotal = _this$state3.communicationTrackTotal,
|
|
242
242
|
isShowAllCommunicationRecord = _this$state3.isShowAllCommunicationRecord;
|
|
243
243
|
|
|
244
|
-
if (submitType ===
|
|
244
|
+
if (submitType === 'submit') {
|
|
245
245
|
// 发送
|
|
246
246
|
sentData.FeedId = feedId;
|
|
247
247
|
sentData.CommentId = 0;
|
|
248
248
|
sentData.ObjId = 0;
|
|
249
249
|
sentData.ObjType = 0;
|
|
250
|
-
sentData.Content = sentData.Content ||
|
|
250
|
+
sentData.Content = sentData.Content || ' ';
|
|
251
251
|
|
|
252
252
|
if (isShowReplyToUser) {
|
|
253
253
|
sentData.CommentId = replyUserCommentId;
|
|
@@ -257,8 +257,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
257
257
|
submitStatus: 2
|
|
258
258
|
});
|
|
259
259
|
|
|
260
|
-
var url = commentType === 1 ? (0, _requestV.getApiUrl2)(
|
|
261
|
-
(0, _requestV.taker)(url,
|
|
260
|
+
var url = commentType === 1 ? (0, _requestV.getApiUrl2)('comment/Add') : (0, _requestV.getApiUrl)("okr/cycle/addComment?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum));
|
|
261
|
+
(0, _requestV.taker)(url, 'POST', sentData).then(function (res) {
|
|
262
262
|
if (res.Code === 1) {
|
|
263
263
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal + 1) : _this.getFeedInfo(feedId, commentCount);
|
|
264
264
|
|
|
@@ -313,17 +313,17 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
313
313
|
isShowAllCommunicationRecord: false,
|
|
314
314
|
// 是否显示所有记录
|
|
315
315
|
// 回复
|
|
316
|
-
replyUser:
|
|
317
|
-
replyUserId:
|
|
318
|
-
replyUserCommentId:
|
|
316
|
+
replyUser: '',
|
|
317
|
+
replyUserId: '',
|
|
318
|
+
replyUserCommentId: '0',
|
|
319
319
|
isShowReplyToUser: false,
|
|
320
320
|
// 是否显示回复谁
|
|
321
321
|
submitStatus: 0,
|
|
322
322
|
praiseStatus: 0,
|
|
323
323
|
// 点赞记录
|
|
324
|
-
praiseObjId:
|
|
324
|
+
praiseObjId: '',
|
|
325
325
|
isShowPraiseRecordPop: false,
|
|
326
|
-
okrCommentFeedId:
|
|
326
|
+
okrCommentFeedId: '',
|
|
327
327
|
isShowDefaultInput: showDefaultInput && communicationLength !== 0 ? true : false,
|
|
328
328
|
needAutoFocus: false
|
|
329
329
|
};
|
|
@@ -389,9 +389,9 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
389
389
|
commentCount = _this$props7.commentCount,
|
|
390
390
|
useCustomMblog = _this$props7.useCustomMblog,
|
|
391
391
|
_this$props7$submitTe = _this$props7.submitText,
|
|
392
|
-
submitText = _this$props7$submitTe === void 0 ? (0, _getLocale.getLocale)(
|
|
392
|
+
submitText = _this$props7$submitTe === void 0 ? (0, _getLocale.getLocale)('Mod_Reply') : _this$props7$submitTe,
|
|
393
393
|
_this$props7$highLigh = _this$props7.highLightKeyWord,
|
|
394
|
-
highLightKeyWord = _this$props7$highLigh === void 0 ?
|
|
394
|
+
highLightKeyWord = _this$props7$highLigh === void 0 ? '' : _this$props7$highLigh,
|
|
395
395
|
_this$props7$autoFocu = _this$props7.autoFocus,
|
|
396
396
|
autoFocus = _this$props7$autoFocu === void 0 ? false : _this$props7$autoFocu,
|
|
397
397
|
_this$props7$showUser = _this$props7.showUser,
|
|
@@ -404,10 +404,10 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
404
404
|
onMouseDown: function onMouseDown() {
|
|
405
405
|
return _this2.handlerSwitchShowRecord();
|
|
406
406
|
}
|
|
407
|
-
}, (0, _getLocale.getLocale)(
|
|
407
|
+
}, (0, _getLocale.getLocale)('Mod_Allcommu'), "\xA0", /*#__PURE__*/_react["default"].createElement("span", null, communicationTrackTotal), communicationTrackTotal > commentCount && /*#__PURE__*/_react["default"].createElement("i", {
|
|
408
408
|
className: (0, _classnames["default"])("".concat(prefix, "__communication-total-icon"), {
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
'tu-icon-APP-xi': !isShowAllCommunicationRecord,
|
|
410
|
+
'tu-icon-arrow-down1': isShowAllCommunicationRecord
|
|
411
411
|
})
|
|
412
412
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
413
413
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefix, "__communication-list"), communicationTrackList.length > 0))
|
|
@@ -432,12 +432,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
432
432
|
}))), !useCustomMblog && /*#__PURE__*/_react["default"].createElement("div", {
|
|
433
433
|
className: "".concat(prefix, "__reply-container")
|
|
434
434
|
}, isShowReplyToUser && /*#__PURE__*/_react["default"].createElement(_style.ReplyToUser, {
|
|
435
|
-
height: isShowReplyToUser ?
|
|
436
|
-
padding: isShowReplyToUser ?
|
|
435
|
+
height: isShowReplyToUser ? 'auto' : '0',
|
|
436
|
+
padding: isShowReplyToUser ? '4px 0' : '0',
|
|
437
437
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefix, "__reply-container--show-user"), showUser))
|
|
438
438
|
}, /*#__PURE__*/_react["default"].createElement(_style.ReplyUser, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
439
439
|
className: "".concat(prefix, "__reply-container-text")
|
|
440
|
-
}, (0, _getLocale.getLocale)(
|
|
440
|
+
}, (0, _getLocale.getLocale)('Mod_Reply')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
441
441
|
className: "name"
|
|
442
442
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
443
443
|
name: replyUser,
|
|
@@ -457,14 +457,15 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
457
457
|
},
|
|
458
458
|
name: user.Name,
|
|
459
459
|
color: user.UserAvatar.Color,
|
|
460
|
-
src: user.UserAvatar.Medium
|
|
460
|
+
src: user.UserAvatar.Medium,
|
|
461
|
+
userId: user.Id
|
|
461
462
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
462
463
|
onClick: this.handleShowMblog,
|
|
463
464
|
className: "".concat(prefix, "__reply-default-input-text")
|
|
464
465
|
}, "\u8F93\u5165\u6C9F\u901A\u5185\u5BB9")), !isShowDefaultInput && /*#__PURE__*/_react["default"].createElement(_mblog["default"], {
|
|
465
466
|
setTextareaRef: setTextareaRef || function () {},
|
|
466
467
|
isHasPlaceholder: true,
|
|
467
|
-
placeholderText: (0, _getLocale.getLocale)(
|
|
468
|
+
placeholderText: (0, _getLocale.getLocale)('Mod_contentofyour'),
|
|
468
469
|
isShowRange: false,
|
|
469
470
|
isShowBtnCancel: false,
|
|
470
471
|
isShowSendSms: isShowSendSms,
|
|
@@ -486,7 +487,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
486
487
|
onSubmit: function onSubmit() {
|
|
487
488
|
return _this2.setState({
|
|
488
489
|
isShowPraiseRecordPop: false,
|
|
489
|
-
praiseObjId:
|
|
490
|
+
praiseObjId: ''
|
|
490
491
|
});
|
|
491
492
|
}
|
|
492
493
|
}));
|
|
@@ -99,7 +99,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
99
99
|
var atAll = !!contentValue.match(/@\[所有同事:all_members\]/g);
|
|
100
100
|
|
|
101
101
|
_this.setState({
|
|
102
|
-
isInputAt: contentValue.charAt(start - 1) ==
|
|
102
|
+
isInputAt: contentValue.charAt(start - 1) == '@',
|
|
103
103
|
// isInputEnterSubmit: contentValue === 'isInputEnterSubmit',
|
|
104
104
|
textareaValue: contentValue,
|
|
105
105
|
isAllowSubmit: _this.allowSubmit(contentValue),
|
|
@@ -111,25 +111,25 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
_this.onActionsTextChange = function (actionValue) {
|
|
114
|
-
if (actionValue ===
|
|
114
|
+
if (actionValue === 'allowSendSMS') {
|
|
115
115
|
return _this.setState({
|
|
116
116
|
isSendSMS: true
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
if (actionValue ===
|
|
120
|
+
if (actionValue === 'public') {
|
|
121
121
|
return _this.setState({
|
|
122
122
|
visibility: 1
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
if (actionValue ===
|
|
126
|
+
if (actionValue === 'private') {
|
|
127
127
|
return _this.setState({
|
|
128
128
|
visibility: 2
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
if (actionValue ===
|
|
132
|
+
if (actionValue === 'department') {
|
|
133
133
|
return _this.setState({
|
|
134
134
|
visibility: 3
|
|
135
135
|
});
|
|
@@ -172,7 +172,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
172
172
|
var _this$refs$textEditor2;
|
|
173
173
|
|
|
174
174
|
var successFilesPath = uploadSuccessFilesPath.filter(function (item) {
|
|
175
|
-
return item !==
|
|
175
|
+
return item !== '';
|
|
176
176
|
});
|
|
177
177
|
var successFilesPathLen = successFilesPath.length; // @ts-ignore
|
|
178
178
|
|
|
@@ -223,7 +223,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
223
223
|
submitStatus = _this$props2.submitStatus;
|
|
224
224
|
var sentData = {}; // 发送的数据
|
|
225
225
|
|
|
226
|
-
var FileUrl = uploadSuccessFilesPath.join(
|
|
226
|
+
var FileUrl = uploadSuccessFilesPath.join(','); // 附件链接
|
|
227
227
|
|
|
228
228
|
if (isShowAttachment) {
|
|
229
229
|
// @ts-ignore
|
|
@@ -243,10 +243,10 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
243
243
|
|
|
244
244
|
sentData.Content = (0, _index.htmlEncodeByRegExp)(textareaValue); // @ts-ignore
|
|
245
245
|
|
|
246
|
-
if (submitType ===
|
|
246
|
+
if (submitType === 'submit' && submitStatus !== 2) {
|
|
247
247
|
// 发送
|
|
248
248
|
_this.props.onMblogSubmit(submitType, sentData);
|
|
249
|
-
} else if (submitType ===
|
|
249
|
+
} else if (submitType === 'cancel') {
|
|
250
250
|
// 取消
|
|
251
251
|
_this.props.onMblogSubmit(submitType);
|
|
252
252
|
}
|
|
@@ -323,9 +323,9 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
323
323
|
_this.state = {
|
|
324
324
|
uploadSuccessFilesPath: [],
|
|
325
325
|
isAllowSubmit: false,
|
|
326
|
-
localStroageKey:
|
|
326
|
+
localStroageKey: '',
|
|
327
327
|
// 本地存储key
|
|
328
|
-
textareaValue:
|
|
328
|
+
textareaValue: '',
|
|
329
329
|
isSendSMS: false,
|
|
330
330
|
visibility: 1,
|
|
331
331
|
isInputAt: false,
|
|
@@ -359,7 +359,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
359
359
|
if (submitStatus === 1) {
|
|
360
360
|
// 发送成功,清空内容
|
|
361
361
|
this.setState({
|
|
362
|
-
textareaValue:
|
|
362
|
+
textareaValue: '',
|
|
363
363
|
uploadSuccessFilesPath: [],
|
|
364
364
|
isSendSMS: false,
|
|
365
365
|
isAllowSubmit: false
|
|
@@ -379,7 +379,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
379
379
|
contentClassName = _this$props3.contentClassName,
|
|
380
380
|
isHasPlaceholder = _this$props3.isHasPlaceholder,
|
|
381
381
|
_this$props3$placehol = _this$props3.placeholderText,
|
|
382
|
-
placeholderText = _this$props3$placehol === void 0 ?
|
|
382
|
+
placeholderText = _this$props3$placehol === void 0 ? '有事需要提醒ta,请@ta' : _this$props3$placehol,
|
|
383
383
|
maxLength = _this$props3.maxLength,
|
|
384
384
|
autoResizing = _this$props3.autoResizing,
|
|
385
385
|
initialTextHeight = _this$props3.initialTextHeight,
|
|
@@ -387,36 +387,36 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
387
387
|
actionClassName = _this$props3.actionClassName,
|
|
388
388
|
isShowAttachment = _this$props3.isShowAttachment,
|
|
389
389
|
_this$props3$attachme = _this$props3.attachmentText,
|
|
390
|
-
attachmentText = _this$props3$attachme === void 0 ? (0, _getLocale.getLocale)(
|
|
390
|
+
attachmentText = _this$props3$attachme === void 0 ? (0, _getLocale.getLocale)('Mod_Annexes') : _this$props3$attachme,
|
|
391
391
|
attachmentTipText = _this$props3.attachmentTipText,
|
|
392
392
|
fileNumLimit = _this$props3.fileNumLimit,
|
|
393
393
|
attachmentPreviewBox = _this$props3.attachmentPreviewBox,
|
|
394
394
|
_this$props3$atAllTex = _this$props3.atAllText,
|
|
395
|
-
atAllText = _this$props3$atAllTex === void 0 ? (0, _getLocale.getLocale)(
|
|
395
|
+
atAllText = _this$props3$atAllTex === void 0 ? (0, _getLocale.getLocale)('Mod_AllColleagues') : _this$props3$atAllTex,
|
|
396
396
|
_this$props3$atAllVal = _this$props3.atAllValue,
|
|
397
|
-
atAllValue = _this$props3$atAllVal === void 0 ?
|
|
397
|
+
atAllValue = _this$props3$atAllVal === void 0 ? '@[所有同事:all_members] ' : _this$props3$atAllVal,
|
|
398
398
|
_this$props3$atAllTip = _this$props3.atAllTipText,
|
|
399
|
-
atAllTipText = _this$props3$atAllTip === void 0 ? (0, _getLocale.getLocale)(
|
|
399
|
+
atAllTipText = _this$props3$atAllTip === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Popup_Allcolleagues') : _this$props3$atAllTip,
|
|
400
400
|
isShowAt = _this$props3.isShowAt,
|
|
401
401
|
showAtAll = _this$props3.showAtAll,
|
|
402
402
|
_this$props3$atText = _this$props3.atText,
|
|
403
|
-
atText = _this$props3$atText === void 0 ? (0, _getLocale.getLocale)(
|
|
403
|
+
atText = _this$props3$atText === void 0 ? (0, _getLocale.getLocale)('Mod_colleague') : _this$props3$atText,
|
|
404
404
|
_this$props3$atTipTex = _this$props3.atTipText,
|
|
405
|
-
atTipText = _this$props3$atTipTex === void 0 ? (0, _getLocale.getLocale)(
|
|
405
|
+
atTipText = _this$props3$atTipTex === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Popup_Butt_Colleagues') : _this$props3$atTipTex,
|
|
406
406
|
userSelectorPopAlign = _this$props3.userSelectorPopAlign,
|
|
407
407
|
isShowEmotion = _this$props3.isShowEmotion,
|
|
408
408
|
_this$props3$emotionT = _this$props3.emotionText,
|
|
409
|
-
emotionText = _this$props3$emotionT === void 0 ? (0, _getLocale.getLocale)(
|
|
409
|
+
emotionText = _this$props3$emotionT === void 0 ? (0, _getLocale.getLocale)('Mod_Expressions') : _this$props3$emotionT,
|
|
410
410
|
emotionTipText = _this$props3.emotionTipText,
|
|
411
411
|
emotionsSelectorPopAlign = _this$props3.emotionsSelectorPopAlign,
|
|
412
412
|
isShowSendSms = _this$props3.isShowSendSms,
|
|
413
413
|
_this$props3$sendSmsT = _this$props3.sendSmsTipText,
|
|
414
|
-
sendSmsTipText = _this$props3$sendSmsT === void 0 ? (0, _getLocale.getLocale)(
|
|
414
|
+
sendSmsTipText = _this$props3$sendSmsT === void 0 ? (0, _getLocale.getLocale)('Tasks_Tab_MyS_Thecollenotified') : _this$props3$sendSmsT,
|
|
415
415
|
isShowRange = _this$props3.isShowRange,
|
|
416
416
|
isShowRangeDropDown = _this$props3.isShowRangeDropDown,
|
|
417
417
|
isShowBtnCancel = _this$props3.isShowBtnCancel,
|
|
418
418
|
_this$props3$submitTe = _this$props3.submitText,
|
|
419
|
-
submitText = _this$props3$submitTe === void 0 ? (0, _getLocale.getLocale)(
|
|
419
|
+
submitText = _this$props3$submitTe === void 0 ? (0, _getLocale.getLocale)('Mod_Publish') : _this$props3$submitTe,
|
|
420
420
|
setTextareaRef = _this$props3.setTextareaRef,
|
|
421
421
|
disableRangeSelect = _this$props3.disableRangeSelect,
|
|
422
422
|
showUser = _this$props3.showUser;
|
|
@@ -431,7 +431,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
431
431
|
isShowDragMask = _this$state2.isShowDragMask,
|
|
432
432
|
isAtAll = _this$state2.isAtAll;
|
|
433
433
|
var fSize = (0, _bsGlobal.getUploadMaxSize)();
|
|
434
|
-
var fTip = attachmentTipText || (0, _getLocale.getLocale)(
|
|
434
|
+
var fTip = attachmentTipText || (0, _getLocale.getLocale)('OKR_MyO_KRP_Draganddropu').replace('50MB', "".concat(fSize, "MB"));
|
|
435
435
|
var user = (0, _bsGlobal.getUserInfo)();
|
|
436
436
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
437
437
|
className: prefix
|
|
@@ -445,7 +445,8 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
445
445
|
},
|
|
446
446
|
name: user.Name,
|
|
447
447
|
color: user.UserAvatar.Color,
|
|
448
|
-
src: user.UserAvatar.Medium
|
|
448
|
+
src: user.UserAvatar.Medium,
|
|
449
|
+
userId: user.Id
|
|
449
450
|
})), /*#__PURE__*/_react["default"].createElement(_style.MBlogBox, {
|
|
450
451
|
className: className,
|
|
451
452
|
ref: "mblogbox",
|
|
@@ -523,7 +524,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
523
524
|
}
|
|
524
525
|
}), /*#__PURE__*/_react["default"].createElement(_style.PreviewBox, {
|
|
525
526
|
id: this.previewid
|
|
526
|
-
}), !(0, _platform.isPlatform)(
|
|
527
|
+
}), !(0, _platform.isPlatform)('wx') && isShowDragMask && /*#__PURE__*/_react["default"].createElement(_style.DragEffect, {
|
|
527
528
|
className: "tu-icon-inbox-upload"
|
|
528
529
|
})));
|
|
529
530
|
}
|
|
@@ -535,12 +536,12 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
535
536
|
exports["default"] = MBlog;
|
|
536
537
|
MBlog.defaultProps = {
|
|
537
538
|
// 样式相关
|
|
538
|
-
contentClassName:
|
|
539
|
+
contentClassName: '',
|
|
539
540
|
// 输入框class
|
|
540
|
-
actionClassName:
|
|
541
|
+
actionClassName: '',
|
|
541
542
|
// 功能栏class
|
|
542
543
|
// 输入相关
|
|
543
|
-
defaultContent:
|
|
544
|
+
defaultContent: '',
|
|
544
545
|
isHasPlaceholder: false,
|
|
545
546
|
maxLength: 2000,
|
|
546
547
|
autoFocus: false,
|
|
@@ -550,7 +551,7 @@ MBlog.defaultProps = {
|
|
|
550
551
|
// 附件
|
|
551
552
|
isShowAttachment: true,
|
|
552
553
|
// attachmentTipText: `<p>支持拖拽上传</p><p>单次最多支持上传20个</p><p>每个不超过50MB</p>`,
|
|
553
|
-
attachmentTipText:
|
|
554
|
+
attachmentTipText: '',
|
|
554
555
|
fileNumLimit: 20,
|
|
555
556
|
fileSizeLimit: 50,
|
|
556
557
|
// @同事
|
|
@@ -558,7 +559,7 @@ MBlog.defaultProps = {
|
|
|
558
559
|
// @所有同事
|
|
559
560
|
// @表情
|
|
560
561
|
isShowEmotion: true,
|
|
561
|
-
emotionTipText:
|
|
562
|
+
emotionTipText: '',
|
|
562
563
|
// @按钮相关
|
|
563
564
|
isShowSendSms: true,
|
|
564
565
|
isShowRange: true,
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
position: relative;
|
|
39
39
|
padding: 12px 12px;
|
|
40
40
|
width: 340px;
|
|
41
|
+
border: 1px solid #fff;
|
|
41
42
|
background: #ffffff;
|
|
42
43
|
box-shadow: 0px 4px 10px 0px rgba(127, 145, 180, 0.1);
|
|
43
44
|
border-radius: 12px;
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
.titaui-okr-flow--node-title {
|
|
127
|
-
max-width:
|
|
128
|
+
max-width: 270px;
|
|
128
129
|
margin-right: 54px;
|
|
129
130
|
margin-bottom: 4px;
|
|
130
131
|
line-height: 24px;
|
|
@@ -29,10 +29,9 @@ exports.nodeTypes = nodeTypes;
|
|
|
29
29
|
|
|
30
30
|
var getLayoutedElements = function getLayoutedElements(elements) {
|
|
31
31
|
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "horizontal";
|
|
32
|
-
var isHorizontal = direction === "horizontal";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
32
|
+
var isHorizontal = direction === "horizontal"; // const g = new dagre.graphlib.Graph({compound: true });
|
|
33
|
+
|
|
34
|
+
var g = new _dagre["default"].graphlib.Graph();
|
|
36
35
|
g.setGraph({
|
|
37
36
|
rankdir: isHorizontal ? "LR" : "TB",
|
|
38
37
|
nodesep: 12,
|
|
@@ -70,8 +69,8 @@ var getLayoutedElements = function getLayoutedElements(elements) {
|
|
|
70
69
|
targetPosition: isHorizontal ? "left" : "top",
|
|
71
70
|
sourcePosition: isHorizontal ? "right" : "bottom",
|
|
72
71
|
position: {
|
|
73
|
-
x: node.x - node.width / 2,
|
|
74
|
-
y: node.y - node.height / 2
|
|
72
|
+
x: node ? (node === null || node === void 0 ? void 0 : node.x) - (node === null || node === void 0 ? void 0 : node.width) / 2 : 0,
|
|
73
|
+
y: node ? (node === null || node === void 0 ? void 0 : node.y) - (node === null || node === void 0 ? void 0 : node.height) / 2 : 0
|
|
75
74
|
}
|
|
76
75
|
});
|
|
77
76
|
}
|
|
@@ -189,7 +189,7 @@ function PeriodSelector(_ref) {
|
|
|
189
189
|
whiteSpace: "nowrap"
|
|
190
190
|
}
|
|
191
191
|
}, (0, _common.formatPeriod)(selectedPeriod)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
192
|
-
className: "titaui-period-selector__down-
|
|
192
|
+
className: "tu-icon-caret-down titaui-period-selector__down-icon"
|
|
193
193
|
})))));
|
|
194
194
|
}
|
|
195
195
|
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
|
|
16
|
+
var _easyBem = _interopRequireDefault(require("easy-bem"));
|
|
17
|
+
|
|
18
|
+
require("./style.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
|
|
28
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
29
|
+
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
|
+
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
|
+
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
|
|
36
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
37
|
+
|
|
38
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
39
|
+
|
|
40
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
|
+
|
|
42
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43
|
+
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
+
|
|
46
|
+
var cn = (0, _easyBem["default"])('indiana-scroll-container');
|
|
47
|
+
var SCROLL_END_DEBOUNCE = 300;
|
|
48
|
+
var LEFT_BUTTON = 0;
|
|
49
|
+
|
|
50
|
+
var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
51
|
+
_inherits(ScrollContainer, _PureComponent);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(ScrollContainer);
|
|
54
|
+
|
|
55
|
+
function ScrollContainer(props) {
|
|
56
|
+
var _this;
|
|
57
|
+
|
|
58
|
+
_classCallCheck(this, ScrollContainer);
|
|
59
|
+
|
|
60
|
+
_this = _super.call(this, props);
|
|
61
|
+
|
|
62
|
+
_this.onEndScroll = function () {
|
|
63
|
+
_this.scrolling = false;
|
|
64
|
+
|
|
65
|
+
if (!_this.pressed && _this.started) {
|
|
66
|
+
_this.processEnd();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_this.onScroll = function (e) {
|
|
71
|
+
var container = _this.container.current; // Ignore the internal scrolls
|
|
72
|
+
|
|
73
|
+
if (container.scrollLeft !== _this.scrollLeft || container.scrollTop !== _this.scrollTop) {
|
|
74
|
+
_this.scrolling = true;
|
|
75
|
+
|
|
76
|
+
_this.processScroll(e);
|
|
77
|
+
|
|
78
|
+
_this.onEndScroll();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_this.onTouchStart = function (e) {
|
|
83
|
+
var nativeMobileScroll = _this.props.nativeMobileScroll;
|
|
84
|
+
|
|
85
|
+
if (_this.isDraggable(e.target)) {
|
|
86
|
+
_this.internal = true;
|
|
87
|
+
|
|
88
|
+
if (nativeMobileScroll && _this.scrolling) {
|
|
89
|
+
_this.pressed = true;
|
|
90
|
+
} else {
|
|
91
|
+
var touch = e.touches[0];
|
|
92
|
+
|
|
93
|
+
_this.processClick(e, touch.clientX, touch.clientY);
|
|
94
|
+
|
|
95
|
+
if (!nativeMobileScroll && _this.props.stopPropagation) {
|
|
96
|
+
e.stopPropagation();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
_this.onTouchEnd = function (e) {
|
|
103
|
+
var nativeMobileScroll = _this.props.nativeMobileScroll;
|
|
104
|
+
|
|
105
|
+
if (_this.pressed) {
|
|
106
|
+
if (_this.started && (!_this.scrolling || !nativeMobileScroll)) {
|
|
107
|
+
_this.processEnd();
|
|
108
|
+
} else {
|
|
109
|
+
_this.pressed = false;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
_this.forceUpdate();
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
_this.onTouchMove = function (e) {
|
|
117
|
+
var nativeMobileScroll = _this.props.nativeMobileScroll;
|
|
118
|
+
|
|
119
|
+
if (_this.pressed && (!nativeMobileScroll || !_this.isMobile)) {
|
|
120
|
+
var touch = e.touches[0];
|
|
121
|
+
|
|
122
|
+
if (touch) {
|
|
123
|
+
_this.processMove(e, touch.clientX, touch.clientY);
|
|
124
|
+
} // e.preventDefault(); // 处理无法拖动选中文字的问题,先屏蔽禁止默认事件
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if (_this.props.stopPropagation) {
|
|
128
|
+
e.stopPropagation();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
_this.onMouseDown = function (e) {
|
|
134
|
+
if (_this.isDraggable(e.target) && _this.isScrollable()) {
|
|
135
|
+
_this.internal = true;
|
|
136
|
+
|
|
137
|
+
if (_this.props.buttons.indexOf(e.button) !== -1) {
|
|
138
|
+
_this.processClick(e, e.clientX, e.clientY); // e.preventDefault();
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
if (_this.props.stopPropagation) {
|
|
142
|
+
e.stopPropagation();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
_this.onMouseMove = function (e) {
|
|
149
|
+
if (_this.pressed) {
|
|
150
|
+
_this.processMove(e, e.clientX, e.clientY); // e.preventDefault();
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
if (_this.props.stopPropagation) {
|
|
154
|
+
e.stopPropagation();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
_this.onMouseUp = function (e) {
|
|
160
|
+
if (_this.pressed) {
|
|
161
|
+
if (_this.started) {
|
|
162
|
+
_this.processEnd();
|
|
163
|
+
} else {
|
|
164
|
+
_this.internal = false;
|
|
165
|
+
_this.pressed = false;
|
|
166
|
+
|
|
167
|
+
_this.forceUpdate();
|
|
168
|
+
|
|
169
|
+
if (_this.props.onClick) {
|
|
170
|
+
_this.props.onClick(e);
|
|
171
|
+
}
|
|
172
|
+
} // e.preventDefault();
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
if (_this.props.stopPropagation) {
|
|
176
|
+
e.stopPropagation();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
_this.container = /*#__PURE__*/_react["default"].createRef();
|
|
182
|
+
_this.onEndScroll = (0, _lodash.debounce)(_this.onEndScroll, SCROLL_END_DEBOUNCE); // Is container scrolling now (for example by inertia)
|
|
183
|
+
|
|
184
|
+
_this.scrolling = false; // Is scrolling started
|
|
185
|
+
|
|
186
|
+
_this.started = false; // Is touch active or mouse pressed down
|
|
187
|
+
|
|
188
|
+
_this.pressed = false; // Is event internal
|
|
189
|
+
|
|
190
|
+
_this.internal = false; // Bind callbacks
|
|
191
|
+
|
|
192
|
+
_this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
|
|
193
|
+
return _this;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
_createClass(ScrollContainer, [{
|
|
197
|
+
key: "componentDidMount",
|
|
198
|
+
value: function componentDidMount() {
|
|
199
|
+
var nativeMobileScroll = this.props.nativeMobileScroll;
|
|
200
|
+
var container = this.container.current;
|
|
201
|
+
window.addEventListener('mouseup', this.onMouseUp, {
|
|
202
|
+
capture: true
|
|
203
|
+
});
|
|
204
|
+
window.addEventListener('mousemove', this.onMouseMove, {
|
|
205
|
+
capture: true
|
|
206
|
+
});
|
|
207
|
+
window.addEventListener('touchmove', this.onTouchMove, {
|
|
208
|
+
passive: false,
|
|
209
|
+
capture: true
|
|
210
|
+
});
|
|
211
|
+
window.addEventListener('touchend', this.onTouchEnd, {
|
|
212
|
+
capture: true
|
|
213
|
+
}); // due to https://github.com/facebook/react/issues/9809#issuecomment-414072263
|
|
214
|
+
|
|
215
|
+
container.addEventListener('touchstart', this.onTouchStart, {
|
|
216
|
+
passive: false
|
|
217
|
+
});
|
|
218
|
+
container.addEventListener('mousedown', this.onMouseDown, {
|
|
219
|
+
passive: false
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
if (nativeMobileScroll) {
|
|
223
|
+
// We should check if it's the mobile device after page was loaded
|
|
224
|
+
// to prevent breaking SSR
|
|
225
|
+
this.isMobile = this.isMobileDevice(); // If it's the mobile device, we should rerender to change styles
|
|
226
|
+
|
|
227
|
+
if (this.isMobile) {
|
|
228
|
+
this.forceUpdate();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}, {
|
|
233
|
+
key: "componentWillUnmount",
|
|
234
|
+
value: function componentWillUnmount() {
|
|
235
|
+
window.removeEventListener('mouseup', this.onMouseUp);
|
|
236
|
+
window.removeEventListener('mousemove', this.onMouseMove);
|
|
237
|
+
window.removeEventListener('touchmove', this.onTouchMove);
|
|
238
|
+
window.removeEventListener('touchend', this.onTouchEnd);
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
key: "getElement",
|
|
242
|
+
value: function getElement() {
|
|
243
|
+
return this.container.current;
|
|
244
|
+
}
|
|
245
|
+
}, {
|
|
246
|
+
key: "isMobileDevice",
|
|
247
|
+
value: function isMobileDevice() {
|
|
248
|
+
return typeof window.orientation !== 'undefined' || navigator.userAgent.indexOf('IEMobile') !== -1;
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "isDraggable",
|
|
252
|
+
value: function isDraggable(target) {
|
|
253
|
+
var ignoreElements = this.props.ignoreElements;
|
|
254
|
+
|
|
255
|
+
if (ignoreElements) {
|
|
256
|
+
var closest = target.closest(ignoreElements);
|
|
257
|
+
return closest === null || closest.contains(this.getElement());
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
}, {
|
|
263
|
+
key: "isScrollable",
|
|
264
|
+
value: function isScrollable() {
|
|
265
|
+
var container = this.container.current;
|
|
266
|
+
return container && (container.scrollWidth > container.clientWidth || container.scrollHeight > container.clientHeight);
|
|
267
|
+
} // Simulate 'onEndScroll' event that fires when scrolling is stopped
|
|
268
|
+
|
|
269
|
+
}, {
|
|
270
|
+
key: "processClick",
|
|
271
|
+
value: function processClick(e, clientX, clientY) {
|
|
272
|
+
var container = this.container.current;
|
|
273
|
+
this.scrollLeft = container.scrollLeft;
|
|
274
|
+
this.scrollTop = container.scrollTop;
|
|
275
|
+
this.clientX = clientX;
|
|
276
|
+
this.clientY = clientY;
|
|
277
|
+
this.pressed = true;
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
key: "processStart",
|
|
281
|
+
value: function processStart() {
|
|
282
|
+
var changeCursor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
283
|
+
var onStartScroll = this.props.onStartScroll;
|
|
284
|
+
this.started = true; // Add the class to change displayed cursor
|
|
285
|
+
|
|
286
|
+
if (changeCursor) {
|
|
287
|
+
document.body.classList.add('indiana-dragging');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (onStartScroll) {
|
|
291
|
+
onStartScroll({
|
|
292
|
+
external: !this.internal
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
this.forceUpdate();
|
|
297
|
+
} // Process native scroll (scrollbar, mobile scroll)
|
|
298
|
+
|
|
299
|
+
}, {
|
|
300
|
+
key: "processScroll",
|
|
301
|
+
value: function processScroll(e) {
|
|
302
|
+
if (this.started) {
|
|
303
|
+
var onScroll = this.props.onScroll;
|
|
304
|
+
|
|
305
|
+
if (onScroll) {
|
|
306
|
+
onScroll({
|
|
307
|
+
external: !this.internal
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
} else {
|
|
311
|
+
this.processStart(false);
|
|
312
|
+
}
|
|
313
|
+
} // Process non-native scroll
|
|
314
|
+
|
|
315
|
+
}, {
|
|
316
|
+
key: "processMove",
|
|
317
|
+
value: function processMove(e, newClientX, newClientY) {
|
|
318
|
+
var _this$props = this.props,
|
|
319
|
+
horizontal = _this$props.horizontal,
|
|
320
|
+
vertical = _this$props.vertical,
|
|
321
|
+
activationDistance = _this$props.activationDistance,
|
|
322
|
+
onScroll = _this$props.onScroll;
|
|
323
|
+
var container = this.container.current;
|
|
324
|
+
|
|
325
|
+
if (!this.started) {
|
|
326
|
+
if (horizontal && Math.abs(newClientX - this.clientX) > activationDistance || vertical && Math.abs(newClientY - this.clientY) > activationDistance) {
|
|
327
|
+
this.clientX = newClientX;
|
|
328
|
+
this.clientY = newClientY;
|
|
329
|
+
this.processStart();
|
|
330
|
+
}
|
|
331
|
+
} else {
|
|
332
|
+
if (horizontal) {
|
|
333
|
+
container.scrollLeft -= newClientX - this.clientX;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (vertical) {
|
|
337
|
+
container.scrollTop -= newClientY - this.clientY;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (onScroll) {
|
|
341
|
+
onScroll({
|
|
342
|
+
external: !this.internal
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
this.clientX = newClientX;
|
|
347
|
+
this.clientY = newClientY;
|
|
348
|
+
this.scrollLeft = container.scrollLeft;
|
|
349
|
+
this.scrollTop = container.scrollTop;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
key: "processEnd",
|
|
354
|
+
value: function processEnd() {
|
|
355
|
+
var onEndScroll = this.props.onEndScroll;
|
|
356
|
+
var container = this.container.current;
|
|
357
|
+
|
|
358
|
+
if (container && onEndScroll) {
|
|
359
|
+
onEndScroll({
|
|
360
|
+
external: !this.internal
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
this.pressed = false;
|
|
365
|
+
this.started = false;
|
|
366
|
+
this.scrolling = false;
|
|
367
|
+
this.internal = false;
|
|
368
|
+
document.body.classList.remove('indiana-dragging');
|
|
369
|
+
this.forceUpdate();
|
|
370
|
+
}
|
|
371
|
+
}, {
|
|
372
|
+
key: "getRef",
|
|
373
|
+
value: function getRef(el) {
|
|
374
|
+
;
|
|
375
|
+
[this.container, this.props.innerRef].forEach(function (ref) {
|
|
376
|
+
if (ref) {
|
|
377
|
+
if (typeof ref === 'function') {
|
|
378
|
+
ref(el);
|
|
379
|
+
} else {
|
|
380
|
+
;
|
|
381
|
+
ref.current = el;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}, {
|
|
387
|
+
key: "render",
|
|
388
|
+
value: function render() {
|
|
389
|
+
var _this$props2 = this.props,
|
|
390
|
+
children = _this$props2.children,
|
|
391
|
+
draggingClassName = _this$props2.draggingClassName,
|
|
392
|
+
className = _this$props2.className,
|
|
393
|
+
style = _this$props2.style,
|
|
394
|
+
hideScrollbars = _this$props2.hideScrollbars,
|
|
395
|
+
Component = _this$props2.component;
|
|
396
|
+
return /*#__PURE__*/_react["default"].createElement(Component, {
|
|
397
|
+
className: (0, _classnames["default"])(className, this.pressed && draggingClassName, cn({
|
|
398
|
+
dragging: this.pressed,
|
|
399
|
+
'hide-scrollbars': hideScrollbars,
|
|
400
|
+
'native-scroll': this.isMobile
|
|
401
|
+
})),
|
|
402
|
+
style: style,
|
|
403
|
+
ref: this.getRef,
|
|
404
|
+
onScroll: this.onScroll
|
|
405
|
+
}, children);
|
|
406
|
+
}
|
|
407
|
+
}]);
|
|
408
|
+
|
|
409
|
+
return ScrollContainer;
|
|
410
|
+
}(_react.PureComponent);
|
|
411
|
+
|
|
412
|
+
exports["default"] = ScrollContainer;
|
|
413
|
+
ScrollContainer.defaultProps = {
|
|
414
|
+
nativeMobileScroll: true,
|
|
415
|
+
hideScrollbars: true,
|
|
416
|
+
activationDistance: 10,
|
|
417
|
+
vertical: true,
|
|
418
|
+
horizontal: true,
|
|
419
|
+
stopPropagation: false,
|
|
420
|
+
style: {},
|
|
421
|
+
component: 'div',
|
|
422
|
+
buttons: [LEFT_BUTTON]
|
|
423
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.indiana-scroll-container {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.indiana-scroll-container--dragging {
|
|
6
|
+
scroll-behavior: auto !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.indiana-scroll-container--dragging > * {
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
cursor: grab;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.indiana-scroll-container--hide-scrollbars {
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
overflow: -moz-scrollbars-none;
|
|
17
|
+
-ms-overflow-style: none;
|
|
18
|
+
scrollbar-width: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.indiana-scroll-container--hide-scrollbars::-webkit-scrollbar {
|
|
22
|
+
display: none !important;
|
|
23
|
+
height: 0 !important;
|
|
24
|
+
width: 0 !important;
|
|
25
|
+
background: transparent !important;
|
|
26
|
+
-webkit-appearance: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.indiana-scroll-container--native-scroll {
|
|
30
|
+
overflow: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.indiana-dragging {
|
|
34
|
+
cursor: grab;
|
|
35
|
+
}
|
|
@@ -19,7 +19,7 @@ var Chart = function Chart(props) {
|
|
|
19
19
|
// });
|
|
20
20
|
// }, []);
|
|
21
21
|
var Chart = (_window = window) === null || _window === void 0 ? void 0 : (_window$SupersetChart = _window.SupersetChart) === null || _window$SupersetChart === void 0 ? void 0 : _window$SupersetChart.SupersetChart;
|
|
22
|
-
return
|
|
22
|
+
return Chart && /*#__PURE__*/_react["default"].createElement(Chart, props);
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
var _default = Chart;
|
package/lib/index.js
CHANGED
|
@@ -393,6 +393,12 @@ Object.defineProperty(exports, "RichEditor", {
|
|
|
393
393
|
return _richEditor["default"];
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
+
Object.defineProperty(exports, "ScrollContainer", {
|
|
397
|
+
enumerable: true,
|
|
398
|
+
get: function get() {
|
|
399
|
+
return _scrollContainer["default"];
|
|
400
|
+
}
|
|
401
|
+
});
|
|
396
402
|
Object.defineProperty(exports, "Scrollbar", {
|
|
397
403
|
enumerable: true,
|
|
398
404
|
get: function get() {
|
|
@@ -746,6 +752,8 @@ var _selectTags = _interopRequireDefault(require("./components/select-tags"));
|
|
|
746
752
|
|
|
747
753
|
var _surveyModel = _interopRequireDefault(require("./components/survey-model"));
|
|
748
754
|
|
|
755
|
+
var _scrollContainer = _interopRequireDefault(require("./components/scroll-container"));
|
|
756
|
+
|
|
749
757
|
var _tree = _interopRequireDefault(require("./components/tree"));
|
|
750
758
|
|
|
751
759
|
var _table = _interopRequireDefault(require("./components/table"));
|
|
@@ -107,7 +107,7 @@ function _default(props) {
|
|
|
107
107
|
var onConfirmHandler = function onConfirmHandler(checked) {
|
|
108
108
|
onShowKrClick(checked);
|
|
109
109
|
|
|
110
|
-
if (showCardKr) {
|
|
110
|
+
if (showCardKr && checked) {
|
|
111
111
|
_toast["default"].Warning('仅允许开启一项');
|
|
112
112
|
|
|
113
113
|
onShowCardKr(false);
|
|
@@ -117,7 +117,7 @@ function _default(props) {
|
|
|
117
117
|
var onhandleShowCardKr = function onhandleShowCardKr(checked) {
|
|
118
118
|
onShowCardKr(checked);
|
|
119
119
|
|
|
120
|
-
if (showkr) {
|
|
120
|
+
if (showkr && checked) {
|
|
121
121
|
_toast["default"].Warning('仅允许开启一项');
|
|
122
122
|
|
|
123
123
|
onShowKrClick(false);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
padding-left: 25px;
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
+
border-radius: 12px;
|
|
7
8
|
height: 76px;
|
|
8
9
|
background: #ffffff;
|
|
9
10
|
box-shadow: 0px 0px 8px 0px #e9eef3;
|
|
@@ -23,18 +24,6 @@
|
|
|
23
24
|
line-height: 28px;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
.titapage-okr-map-share-okr__header-title:after {
|
|
27
|
-
display: inline-block;
|
|
28
|
-
position: absolute;
|
|
29
|
-
content: '';
|
|
30
|
-
right: 0;
|
|
31
|
-
top: 0;
|
|
32
|
-
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(191, 199, 213, 0) 100%);
|
|
33
|
-
border-radius: 1px;
|
|
34
|
-
width: 1px;
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
27
|
.titapage-okr-map-share-okr__header-dark {
|
|
39
28
|
display: inline-block;
|
|
40
29
|
position: absolute;
|
|
@@ -71,6 +60,29 @@
|
|
|
71
60
|
right: 25px;
|
|
72
61
|
}
|
|
73
62
|
|
|
63
|
+
.titapage-okr-map-share-okr__header-showMore {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
position: absolute;
|
|
66
|
+
right: 110px;
|
|
67
|
+
padding: 0 12px;
|
|
68
|
+
height: 30px;
|
|
69
|
+
line-height: 30px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
color: #3f4755;
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.titapage-okr-map-share-okr__header-showMore::after {
|
|
76
|
+
position: absolute;
|
|
77
|
+
display: inline-block;
|
|
78
|
+
background: url("../../../images/line-down-arrow.svg") transparent no-repeat 50% 50%;
|
|
79
|
+
content: '';
|
|
80
|
+
height: 6px;
|
|
81
|
+
width: 10px;
|
|
82
|
+
right: 0;
|
|
83
|
+
top: calc(50% - 3px);
|
|
84
|
+
}
|
|
85
|
+
|
|
74
86
|
.titapage-okr-map__dark .titapage-okr-map-share-okr__header {
|
|
75
87
|
background: #3f4755;
|
|
76
88
|
box-shadow: none;
|
|
@@ -17,6 +17,10 @@ var _switch = _interopRequireDefault(require("../../../../../components/switch")
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
19
19
|
|
|
20
|
+
var _popup = _interopRequireDefault(require("../../../../../components/popup"));
|
|
21
|
+
|
|
22
|
+
var _toast = _interopRequireDefault(require("../../../../../components/toast"));
|
|
23
|
+
|
|
20
24
|
var _precls = _interopRequireDefault(require("../../../precls"));
|
|
21
25
|
|
|
22
26
|
require("./index.css");
|
|
@@ -31,6 +35,8 @@ function _default(props) {
|
|
|
31
35
|
var setDarkTheme = props.setDarkTheme,
|
|
32
36
|
darkTheme = props.darkTheme,
|
|
33
37
|
showkr = props.showkr,
|
|
38
|
+
showCardKr = props.showCardKr,
|
|
39
|
+
setShowCardKr = props.setShowCardKr,
|
|
34
40
|
setShowKr = props.setShowKr,
|
|
35
41
|
setDirection = props.setDirection,
|
|
36
42
|
onBtnClick = props.onBtnClick,
|
|
@@ -46,24 +52,58 @@ function _default(props) {
|
|
|
46
52
|
placement: "topRight",
|
|
47
53
|
rotate: direction == "horizontal" ? 0 : -90,
|
|
48
54
|
type: direction == "horizontal" ? "vertical" : "horizontal"
|
|
49
|
-
} //
|
|
50
|
-
]; // 获取地图数据
|
|
55
|
+
}]; // 获取地图数据
|
|
51
56
|
|
|
52
57
|
(0, _react.useEffect)(function () {// ...
|
|
53
58
|
}, []);
|
|
59
|
+
|
|
60
|
+
var onhandleShowCardKr = function onhandleShowCardKr(checked) {
|
|
61
|
+
if (showkr && checked) {
|
|
62
|
+
setShowKr(false);
|
|
63
|
+
|
|
64
|
+
_toast["default"].Warning('仅允许开启一项');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
setShowCardKr(checked);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var onConfirmHandler = function onConfirmHandler(checked) {
|
|
71
|
+
if (showCardKr && checked) {
|
|
72
|
+
setShowCardKr(false);
|
|
73
|
+
|
|
74
|
+
_toast["default"].Warning('仅允许开启一项');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
setShowKr(checked);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var popup = function popup() {
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__show-more-popup"))
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__header-action-showkr"))
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_switch["default"], {
|
|
86
|
+
label: (0, _getLocale.getLocale)("OKR_Db_KRDetails"),
|
|
87
|
+
checked: showCardKr,
|
|
88
|
+
onChange: onhandleShowCardKr
|
|
89
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__header-action-showkr"))
|
|
91
|
+
}, /*#__PURE__*/_react["default"].createElement(_switch["default"], {
|
|
92
|
+
label: (0, _getLocale.getLocale)("OKR_Ali_Butt_ExhibitionKRs"),
|
|
93
|
+
checked: showkr,
|
|
94
|
+
onChange: onConfirmHandler
|
|
95
|
+
})));
|
|
96
|
+
};
|
|
97
|
+
|
|
54
98
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
99
|
className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header"))
|
|
56
100
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
101
|
className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-title"))
|
|
58
|
-
}, (0, _getLocale.getLocale)("OKR_Menu_Title_Alignment")), /*#__PURE__*/_react["default"].createElement("
|
|
59
|
-
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
onChange: function onChange(checked) {
|
|
64
|
-
return setShowKr(checked);
|
|
65
|
-
}
|
|
66
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
|
+
}, (0, _getLocale.getLocale)("OKR_Menu_Title_Alignment")), /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
103
|
+
popup: popup
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-showMore"))
|
|
106
|
+
}, (0, _getLocale.getLocale)("OKR_Ali_Butt_Exhibitionmore"))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
107
|
className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-direction"))
|
|
68
108
|
}, /*#__PURE__*/_react["default"].createElement(_iconButtonList["default"], {
|
|
69
109
|
items: iconButtons,
|
|
@@ -83,25 +83,30 @@ function _default() {
|
|
|
83
83
|
showkr = _useState8[0],
|
|
84
84
|
setShowKr = _useState8[1];
|
|
85
85
|
|
|
86
|
-
var _useState9 = (0, _react.useState)(hashQuery.
|
|
86
|
+
var _useState9 = (0, _react.useState)(hashQuery.showCardKr),
|
|
87
87
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
showCardKr = _useState10[0],
|
|
89
|
+
setShowCardKr = _useState10[1];
|
|
90
90
|
|
|
91
|
-
var _useState11 = (0, _react.useState)(hashQuery.
|
|
91
|
+
var _useState11 = (0, _react.useState)(hashQuery.darkTheme),
|
|
92
92
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
darkTheme = _useState12[0],
|
|
94
|
+
setDarkTheme = _useState12[1];
|
|
95
95
|
|
|
96
|
-
var _useState13 = (0, _react.useState)(hashQuery.
|
|
96
|
+
var _useState13 = (0, _react.useState)(hashQuery.direction),
|
|
97
97
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
direction = _useState14[0],
|
|
99
|
+
setDirection = _useState14[1];
|
|
100
100
|
|
|
101
|
-
var _useState15 = (0, _react.useState)(
|
|
101
|
+
var _useState15 = (0, _react.useState)(hashQuery.rootNode),
|
|
102
102
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
rootNode = _useState16[0],
|
|
104
|
+
setRootNode = _useState16[1];
|
|
105
|
+
|
|
106
|
+
var _useState17 = (0, _react.useState)(false),
|
|
107
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
108
|
+
forceRender = _useState18[0],
|
|
109
|
+
setForceRender = _useState18[1];
|
|
105
110
|
|
|
106
111
|
var okrMapRef = (0, _react.useRef)();
|
|
107
112
|
|
|
@@ -144,9 +149,11 @@ function _default() {
|
|
|
144
149
|
className: (0, _classnames["default"])(_precls["default"], "".concat(_precls["default"], "-share"))
|
|
145
150
|
}, /*#__PURE__*/_react["default"].createElement(_header["default"], {
|
|
146
151
|
showkr: showkr,
|
|
152
|
+
showCardKr: showCardKr,
|
|
147
153
|
darkTheme: darkTheme,
|
|
148
154
|
direction: direction,
|
|
149
155
|
setShowKr: setShowKr,
|
|
156
|
+
setShowCardKr: setShowCardKr,
|
|
150
157
|
setDirection: setDirection,
|
|
151
158
|
onBtnClick: onMapActionsHandler,
|
|
152
159
|
setDarkTheme: setDarkTheme
|
|
@@ -158,6 +165,7 @@ function _default() {
|
|
|
158
165
|
ref: okrMapRef,
|
|
159
166
|
searchType: searchType,
|
|
160
167
|
showkr: showkr,
|
|
168
|
+
showCardKr: showCardKr,
|
|
161
169
|
direction: direction,
|
|
162
170
|
darkTheme: darkTheme
|
|
163
171
|
}, period, rootNode, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.titaui-number-select {
|
|
2
2
|
font-size: 14px;
|
|
3
3
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
4
|
-
color: #
|
|
4
|
+
color: #3f4755;
|
|
5
5
|
position: relative;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
|
|
23
23
|
.titaui-number-select--action-icon {
|
|
24
24
|
display: inline-block;
|
|
25
|
-
width:
|
|
26
|
-
height:
|
|
27
|
-
background: #
|
|
25
|
+
width: 16px;
|
|
26
|
+
height: 16px;
|
|
27
|
+
background: #bfc7d5;
|
|
28
28
|
border-radius: 10px;
|
|
29
29
|
text-align: center;
|
|
30
|
-
line-height:
|
|
30
|
+
line-height: 14px;
|
|
31
31
|
color: #fff;
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
vertical-align: middle;
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.titaui-number-select--action-icon-right {
|
|
42
|
-
line-height:
|
|
42
|
+
line-height: 16px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.titaui-number-select--action-icon:hover {
|
|
46
|
-
background: #
|
|
46
|
+
background: #2879ff;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.titaui-number-select--action-icon__disable {
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.titaui-number-select--action-icon__disable:hover {
|
|
54
|
-
background: #
|
|
54
|
+
background: #bfc7d5;
|
|
55
55
|
opacity: 0.4;
|
|
56
56
|
cursor: not-allowed;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.titaui-number-select--value {
|
|
60
|
-
margin: 0
|
|
60
|
+
margin: 0 4px;
|
|
61
61
|
vertical-align: middle;
|
|
62
62
|
-webkit-touch-callout: none;
|
|
63
63
|
-webkit-user-select: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.20",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"color": "4.2.1",
|
|
91
91
|
"cos-js-sdk-v5": "1.3.3",
|
|
92
92
|
"dayjs": "1.10.4",
|
|
93
|
+
"easy-bem": "^1.1.1",
|
|
93
94
|
"html2canvas": "1.3.2",
|
|
94
95
|
"less": "4.1.2",
|
|
95
96
|
"less-loader": "6.0.0",
|