@titaui/pc 1.15.35 → 1.15.37
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/book-demo/components/pc/components/content/index.js +1 -6
- 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/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/expiration-reminder/img/emoji-wail.png +0 -0
- package/lib/components/expiration-reminder/index.css +11 -12
- package/lib/components/expiration-reminder/index.js +8 -8
- package/lib/components/mblog/components/MblogAction.js +3 -3
- 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/index.js +13 -0
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- 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/select/Option.js +3 -3
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- 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/UserItem.js +3 -3
- package/package.json +1 -1
- package/lib/components/expiration-reminder/img/emoji.svg +0 -16
|
@@ -178,12 +178,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
178
178
|
if (res.data.Code) {
|
|
179
179
|
(0, _request.sendBookDemoJson)((0, _utils.bookDemoTransformDataToJson)(result, source > 0 ? source : Source, _constant.DemoTypeTextMap[type], content, uid));
|
|
180
180
|
|
|
181
|
-
_toast["default"].Success("提交成功"
|
|
182
|
-
style: {
|
|
183
|
-
position: "fixed"
|
|
184
|
-
},
|
|
185
|
-
canClose: false
|
|
186
|
-
});
|
|
181
|
+
_toast["default"].Success("提交成功");
|
|
187
182
|
|
|
188
183
|
if (onSubmitSuccess) {
|
|
189
184
|
onSubmitSuccess();
|
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _temp));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var _this;
|
|
90
|
+
var _temp, _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
98
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _temp));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -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, [{
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var _this;
|
|
58
|
+
var _temp, _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, EReportList);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
66
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: '',
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _temp));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(EmotionsSelectorPop);
|
|
48
48
|
|
|
49
49
|
function EmotionsSelectorPop() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, EmotionsSelectorPop);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
59
59
|
setTimeout(function () {
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
_this.refs.pop.show(_this.refs.trigger);
|
|
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
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(EmotionsSelectorPop, [{
|
|
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
var _super = _createSuper(EReportList);
|
|
58
58
|
|
|
59
59
|
function EReportList() {
|
|
60
|
-
var _this;
|
|
60
|
+
var _temp, _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, EReportList);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
68
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
69
69
|
selectedPeriodValue: "",
|
|
70
70
|
showDatePick: false,
|
|
71
71
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _temp));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
Binary file
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
|
|
38
38
|
.titaui-expiration-reminder__description {
|
|
39
39
|
margin: 24px 0 28px;
|
|
40
|
-
font-size:
|
|
41
|
-
line-height:
|
|
42
|
-
color: #
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
line-height: 32px;
|
|
42
|
+
color: #3f4755;
|
|
43
43
|
text-align: center;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.titaui-expiration-reminder__description .titaui-text-btn {
|
|
47
|
-
font-size:
|
|
48
|
-
line-height:
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
line-height: 32px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.titaui-expiration-reminder__footer {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
|
|
55
55
|
.titaui-expiration-reminder__footer .titaui-rect-btn {
|
|
56
56
|
width: 356px;
|
|
57
|
-
height:
|
|
57
|
+
height: 48px;
|
|
58
58
|
margin: 0 auto 10px;
|
|
59
|
-
font-size:
|
|
59
|
+
font-size: 16px;
|
|
60
60
|
line-height: 24px;
|
|
61
61
|
border-radius: 26px;
|
|
62
62
|
}
|
|
@@ -93,12 +93,12 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.titaui-expiration-reminder__remain-day {
|
|
96
|
-
font-size:
|
|
96
|
+
font-size: 32px;
|
|
97
97
|
color: #2879ff;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.titaui-expiration-reminder__title {
|
|
101
|
-
font-size:
|
|
101
|
+
font-size: 24px;
|
|
102
102
|
font-weight: 600;
|
|
103
103
|
line-height: 34px;
|
|
104
104
|
color: #141C28;
|
|
@@ -106,7 +106,6 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.titaui-expiration-reminder__title img {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
left: -4px;
|
|
109
|
+
width: 28px;
|
|
110
|
+
margin-right: 4px;
|
|
112
111
|
}
|
|
@@ -31,7 +31,7 @@ var _mirroring = _interopRequireDefault(require("../mirroring"));
|
|
|
31
31
|
|
|
32
32
|
var _toast = _interopRequireDefault(require("../toast"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _emojiWail = _interopRequireDefault(require("./img/emoji-wail.png"));
|
|
35
35
|
|
|
36
36
|
var _qrcodeTrial = _interopRequireDefault(require("./img/qrcode-trial.png"));
|
|
37
37
|
|
|
@@ -161,7 +161,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
161
161
|
return setMirrorSwitch('on');
|
|
162
162
|
},
|
|
163
163
|
type: "primary",
|
|
164
|
-
text: " \u8054\u7CFB\u987E\u95EE "
|
|
164
|
+
text: " \u8BF7\u8054\u7CFB\u987E\u95EE "
|
|
165
165
|
}), /*#__PURE__*/_react["default"].createElement("span", null, "\u7D22\u53D6\u4F18\u60E0~")))
|
|
166
166
|
}), _defineProperty(_trialVersion, _utils.ApplicationState.Expired, {
|
|
167
167
|
closeEnable: false,
|
|
@@ -170,7 +170,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
170
170
|
title: /*#__PURE__*/_react["default"].createElement("h2", {
|
|
171
171
|
className: "".concat(prefixCls, "__title")
|
|
172
172
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
173
|
-
src:
|
|
173
|
+
src: _emojiWail["default"],
|
|
174
174
|
alt: "Emoji"
|
|
175
175
|
}), "\u60A8\u7684 Tita \u8BD5\u7528\u5DF2\u5230\u671F"),
|
|
176
176
|
content: /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -180,7 +180,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
180
180
|
return setMirrorSwitch('on');
|
|
181
181
|
},
|
|
182
182
|
type: "primary",
|
|
183
|
-
text: " \u8054\u7CFB\u987E\u95EE"
|
|
183
|
+
text: " \u8BF7\u8054\u7CFB\u987E\u95EE"
|
|
184
184
|
})))
|
|
185
185
|
}), _defineProperty(_trialVersion, "button", /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
186
186
|
onClick: showBookDemo,
|
|
@@ -203,7 +203,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
203
203
|
}, " ", Day, " "), "\u5929"),
|
|
204
204
|
content: /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
205
|
className: "".concat(prefixCls, "__description")
|
|
206
|
-
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u7EED\u8D39\u670D\u52A1 \u8054\u7CFB\u987E\u95EE"))
|
|
206
|
+
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u7EED\u8D39\u670D\u52A1 \u8BF7\u8054\u7CFB\u987E\u95EE"))
|
|
207
207
|
}), _defineProperty(_officialVersion, _utils.ApplicationState.Expired, {
|
|
208
208
|
closeEnable: false,
|
|
209
209
|
height: 466,
|
|
@@ -211,12 +211,12 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
211
211
|
title: /*#__PURE__*/_react["default"].createElement("h2", {
|
|
212
212
|
className: "".concat(prefixCls, "__title")
|
|
213
213
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
214
|
-
src:
|
|
214
|
+
src: _emojiWail["default"],
|
|
215
215
|
alt: "Emoji"
|
|
216
216
|
}), "\u60A8\u7684 Tita \u7CFB\u7EDF\u4F7F\u7528\u5DF2\u5230\u671F"),
|
|
217
217
|
content: /*#__PURE__*/_react["default"].createElement("div", {
|
|
218
218
|
className: "".concat(prefixCls, "__description")
|
|
219
|
-
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u9519\u8FC7\u4E86\u4E00\u5927\u6CE2\u4EA7\u54C1\u5347\u7EA7\u54E6~"), /*#__PURE__*/_react["default"].createElement("p", null, "\u4E86\u89E3 Tita \u65B0\u529F\u80FD \u9884\u7EA6\u987E\u95EE\u6F14\u793A"))
|
|
219
|
+
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u9519\u8FC7\u4E86\u4E00\u5927\u6CE2\u4EA7\u54C1\u5347\u7EA7\u54E6~"), /*#__PURE__*/_react["default"].createElement("p", null, "\u4E86\u89E3 Tita \u65B0\u529F\u80FD \u8BF7\u9884\u7EA6\u987E\u95EE\u6F14\u793A"))
|
|
220
220
|
}), _defineProperty(_officialVersion, "button", /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
221
221
|
onClick: function onClick() {
|
|
222
222
|
return setMirrorSwitch('on');
|
|
@@ -282,7 +282,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
282
282
|
className: "".concat(prefixCls, "__qrcode-title")
|
|
283
283
|
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("h3", {
|
|
284
284
|
className: "".concat(prefixCls, "__qrcode-subtitle")
|
|
285
|
-
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\
|
|
285
|
+
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u60A8\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
286
286
|
className: "".concat(prefixCls, "__qrcode-img"),
|
|
287
287
|
src: qrCode,
|
|
288
288
|
alt: "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B",
|
|
@@ -83,7 +83,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
83
|
var _super = _createSuper(MblogAction);
|
|
84
84
|
|
|
85
85
|
function MblogAction() {
|
|
86
|
-
var _this;
|
|
86
|
+
var _temp, _this;
|
|
87
87
|
|
|
88
88
|
_classCallCheck(this, MblogAction);
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
91
|
args[_key] = arguments[_key];
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
94
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
95
95
|
isSendSms: false,
|
|
96
96
|
// 是否短信通知
|
|
97
97
|
isShowConfirmPop: false
|
|
@@ -121,7 +121,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
121
121
|
isSendSms: false
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, _temp));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
_createClass(MblogAction, [{
|
package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js
CHANGED
|
@@ -81,7 +81,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
81
81
|
var _super = _createSuper(EditPop);
|
|
82
82
|
|
|
83
83
|
function EditPop() {
|
|
84
|
-
var _this;
|
|
84
|
+
var _temp, _this;
|
|
85
85
|
|
|
86
86
|
_classCallCheck(this, EditPop);
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
89
89
|
args[_key] = arguments[_key];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
92
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
93
93
|
value: _this.props.value,
|
|
94
94
|
showError: false,
|
|
95
95
|
errMsg: "",
|
|
@@ -152,7 +152,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
152
|
errMsg: (0, _i18nFrontTranslate.inputWordTrans)(value.length, maxLength),
|
|
153
153
|
disable: !!(maxLength && value.length > maxLength && disable)
|
|
154
154
|
});
|
|
155
|
-
},
|
|
155
|
+
}, _temp));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
_createClass(EditPop, [{
|
|
@@ -128,6 +128,19 @@ function OkrDetail(props) {
|
|
|
128
128
|
(0, _react.useEffect)(function () {
|
|
129
129
|
setActiveTabKey(props.activeTabKey);
|
|
130
130
|
}, [props.activeTabKey]);
|
|
131
|
+
(0, _react.useEffect)(function () {
|
|
132
|
+
if (okrId && okrInfo.feedId) {
|
|
133
|
+
window.titaTracker && window.titaTracker("discoveryAction").record({
|
|
134
|
+
"actionName": "查看okr",
|
|
135
|
+
"actionGroup": "okr推屏",
|
|
136
|
+
"productName": 'okr',
|
|
137
|
+
"requestPath": 'user-okr-action',
|
|
138
|
+
"feedId": okrInfo.feedId,
|
|
139
|
+
"action_id": 1,
|
|
140
|
+
"okr_id": okrId
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}, [okrId, okrInfo]);
|
|
131
144
|
|
|
132
145
|
var _useState9 = (0, _react.useState)({}),
|
|
133
146
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
@@ -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, [{
|
|
@@ -45,7 +45,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(RangeSelectorPop);
|
|
46
46
|
|
|
47
47
|
function RangeSelectorPop() {
|
|
48
|
-
var _this;
|
|
48
|
+
var _temp, _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, RangeSelectorPop);
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ var RangeSelectorPop = /*#__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.handleShowPop = function () {
|
|
56
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
57
57
|
var isDisabled = _this.props.isDisabled;
|
|
58
58
|
if (isDisabled) return; // @ts-ignore
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
61
61
|
}, _this.handleHide = function () {
|
|
62
62
|
// @ts-ignore
|
|
63
63
|
_this.refs.pop.hide();
|
|
64
|
-
},
|
|
64
|
+
}, _temp));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
_createClass(RangeSelectorPop, [{
|
|
@@ -46,7 +46,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
|
|
|
46
46
|
var _super = _createSuper(BlockSchema);
|
|
47
47
|
|
|
48
48
|
function BlockSchema() {
|
|
49
|
-
var _this;
|
|
49
|
+
var _temp, _this;
|
|
50
50
|
|
|
51
51
|
_classCallCheck(this, BlockSchema);
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
|
|
|
54
54
|
args[_key] = arguments[_key];
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false,
|
|
57
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _temp));
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
_createClass(BlockSchema, [{
|
|
@@ -75,7 +75,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
|
|
|
75
75
|
var _super2 = _createSuper(InlineSchema);
|
|
76
76
|
|
|
77
77
|
function InlineSchema() {
|
|
78
|
-
var _this2;
|
|
78
|
+
var _temp2, _this2;
|
|
79
79
|
|
|
80
80
|
_classCallCheck(this, InlineSchema);
|
|
81
81
|
|
|
@@ -83,7 +83,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
|
|
|
83
83
|
args[_key2] = arguments[_key2];
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true,
|
|
86
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _temp2));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
_createClass(InlineSchema, [{
|
|
@@ -104,7 +104,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
|
|
|
104
104
|
var _super3 = _createSuper(AtomSchema);
|
|
105
105
|
|
|
106
106
|
function AtomSchema() {
|
|
107
|
-
var _this3;
|
|
107
|
+
var _temp3, _this3;
|
|
108
108
|
|
|
109
109
|
_classCallCheck(this, AtomSchema);
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
|
|
|
112
112
|
args[_key3] = arguments[_key3];
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true,
|
|
115
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _temp3));
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
return _createClass(AtomSchema);
|
|
@@ -49,7 +49,7 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
49
49
|
var _super = _createSuper(BlockquoteSchema);
|
|
50
50
|
|
|
51
51
|
function BlockquoteSchema() {
|
|
52
|
-
var _this;
|
|
52
|
+
var _temp, _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, BlockquoteSchema);
|
|
55
55
|
|
|
@@ -57,9 +57,9 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
|
|
60
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
|
|
61
61
|
tag: "blockquote"
|
|
62
|
-
}],
|
|
62
|
+
}], _temp));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
_createClass(BlockquoteSchema, [{
|
|
@@ -80,7 +80,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
|
80
80
|
var _super2 = _createSuper(BlockquoteController);
|
|
81
81
|
|
|
82
82
|
function BlockquoteController() {
|
|
83
|
-
var _this2;
|
|
83
|
+
var _temp2, _this2;
|
|
84
84
|
|
|
85
85
|
_classCallCheck(this, BlockquoteController);
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
|
88
88
|
args[_key2] = arguments[_key2];
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
91
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
92
92
|
title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Quote'),
|
|
93
93
|
icon: 'tu-icon-text-quotel',
|
|
94
94
|
handler: function handler(editor) {
|
|
@@ -97,7 +97,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
|
97
97
|
active: function active(state) {
|
|
98
98
|
return (0, _util.isBlockActive)(state, PLUGIN_NAME);
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, _temp2));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
return _createClass(BlockquoteController);
|
|
@@ -111,7 +111,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
111
111
|
var _super3 = _createSuper(BlockquotePlugin);
|
|
112
112
|
|
|
113
113
|
function BlockquotePlugin() {
|
|
114
|
-
var _this3;
|
|
114
|
+
var _temp3, _this3;
|
|
115
115
|
|
|
116
116
|
_classCallCheck(this, BlockquotePlugin);
|
|
117
117
|
|
|
@@ -119,7 +119,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
119
119
|
args[_key3] = arguments[_key3];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController,
|
|
122
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _temp3));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
return _createClass(BlockquotePlugin);
|
|
@@ -49,7 +49,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
49
49
|
var _super = _createSuper(HeadingSchema);
|
|
50
50
|
|
|
51
51
|
function HeadingSchema() {
|
|
52
|
-
var _this;
|
|
52
|
+
var _temp, _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, HeadingSchema);
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
|
|
60
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
|
|
61
61
|
level: {
|
|
62
62
|
"default": 1
|
|
63
63
|
},
|
|
@@ -94,7 +94,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
94
94
|
attrs: {
|
|
95
95
|
level: 6
|
|
96
96
|
}
|
|
97
|
-
}],
|
|
97
|
+
}], _temp));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
_createClass(HeadingSchema, [{
|
|
@@ -117,7 +117,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
|
117
117
|
var _super2 = _createSuper(HeadingController);
|
|
118
118
|
|
|
119
119
|
function HeadingController() {
|
|
120
|
-
var _this2;
|
|
120
|
+
var _temp2, _this2;
|
|
121
121
|
|
|
122
122
|
_classCallCheck(this, HeadingController);
|
|
123
123
|
|
|
@@ -125,7 +125,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
|
125
125
|
args[_key2] = arguments[_key2];
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
|
|
128
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
|
|
129
129
|
title: (0, _getLocale.getLocale)('Rtx_HeadingONE'),
|
|
130
130
|
icon: 'tu-icon-text-H1',
|
|
131
131
|
handler: function handler(editor) {
|
|
@@ -161,7 +161,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
|
161
161
|
level: 3
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
}],
|
|
164
|
+
}], _temp2));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
return _createClass(HeadingController);
|
|
@@ -173,7 +173,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
173
173
|
var _super3 = _createSuper(HeadingPlugin);
|
|
174
174
|
|
|
175
175
|
function HeadingPlugin() {
|
|
176
|
-
var _this3;
|
|
176
|
+
var _temp3, _this3;
|
|
177
177
|
|
|
178
178
|
_classCallCheck(this, HeadingPlugin);
|
|
179
179
|
|
|
@@ -181,7 +181,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
181
181
|
args[_key3] = arguments[_key3];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController,
|
|
184
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _temp3));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
return _createClass(HeadingPlugin);
|