@titaui/pc 1.9.107 → 1.9.108
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/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/online-broadcast/data.js +25 -186
- 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/nav-top/components/menu/index.css +0 -84
- package/lib/components/nav-top/components/menu/index.js +13 -66
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.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/range-selector-pop/RangeSelectorPop.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/lib/utils/bs-global.js +1 -0
- package/lib/utils/helpers.js +1 -0
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _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, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
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
|
|
90
|
+
var _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, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
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
|
|
52
|
+
var _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, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -3,35 +3,37 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.onlineBroadcastData = void 0;
|
|
7
|
-
|
|
8
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
9
|
-
|
|
6
|
+
exports.onlineBroadcastData = exports["default"] = void 0;
|
|
7
|
+
// import { getBSGlobal } from "../../../utils/bs-global";
|
|
10
8
|
// 上线预报定义1
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
9
|
+
// const source = getBSGlobal("tenantInfo").Source;
|
|
10
|
+
// let href = "";
|
|
11
|
+
// if (source === 860) {
|
|
12
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697696";
|
|
13
|
+
// } else if (source === 861) {
|
|
14
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697725";
|
|
15
|
+
// } else if (source === 862) {
|
|
16
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697712";
|
|
17
|
+
// } else {
|
|
18
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
|
|
19
|
+
// }
|
|
24
20
|
var onlineBroadcastData = [{
|
|
21
|
+
hasOnline: true,
|
|
22
|
+
preContent: "「考核」支持建立企业指标库",
|
|
23
|
+
preHref: "https://wiki.tita.com/x/vYGeAQ",
|
|
24
|
+
isNew: true,
|
|
25
|
+
date: "2/17"
|
|
26
|
+
}, {
|
|
25
27
|
hasOnline: true,
|
|
26
28
|
preContent: "「OKR」支持手动进行目标打分",
|
|
27
29
|
preHref: "https://wiki.tita.com/x/GYCeAQ",
|
|
28
|
-
isNew:
|
|
30
|
+
isNew: false,
|
|
29
31
|
date: "1/12"
|
|
30
32
|
}, {
|
|
31
33
|
hasOnline: true,
|
|
32
34
|
preContent: "「考核」支持批量公布考核结果 ",
|
|
33
35
|
preHref: "https://wiki.tita.com/x/L4CeAQ",
|
|
34
|
-
isNew:
|
|
36
|
+
isNew: false,
|
|
35
37
|
date: "1/11"
|
|
36
38
|
}, {
|
|
37
39
|
hasOnline: true,
|
|
@@ -57,170 +59,7 @@ var onlineBroadcastData = [{
|
|
|
57
59
|
preHref: "https://wiki.tita.com/x/6YBrAQ",
|
|
58
60
|
isNew: false,
|
|
59
61
|
date: "12/7"
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
isNew: false,
|
|
65
|
-
date: "12/1"
|
|
66
|
-
}, {
|
|
67
|
-
hasOnline: true,
|
|
68
|
-
preContent: "绩效仪表盘和报表全新推出",
|
|
69
|
-
preHref: "https://wiki.tita.com/x/GIRBAQ",
|
|
70
|
-
isNew: false,
|
|
71
|
-
date: "11/17"
|
|
72
|
-
}, {
|
|
73
|
-
hasOnline: true,
|
|
74
|
-
preContent: "OKR 新版动态升级",
|
|
75
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=23822341",
|
|
76
|
-
isNew: false,
|
|
77
|
-
date: "10/15"
|
|
78
|
-
}, {
|
|
79
|
-
hasOnline: true,
|
|
80
|
-
preContent: "OKR 新增双月与半年度周期",
|
|
81
|
-
preHref: "https://wiki.tita.com/help/tita-upgrade/tita-com-21070135.html",
|
|
82
|
-
isNew: false,
|
|
83
|
-
date: "09/30"
|
|
84
|
-
}, {
|
|
85
|
-
hasOnline: true,
|
|
86
|
-
preContent: "考核指标支持指定不同评价人",
|
|
87
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=21069992",
|
|
88
|
-
isNew: false,
|
|
89
|
-
date: "09/15"
|
|
90
|
-
}, {
|
|
91
|
-
hasOnline: true,
|
|
92
|
-
preContent: "考核支持设置流程到期时间",
|
|
93
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=15697933",
|
|
94
|
-
isNew: false,
|
|
95
|
-
date: "08/30"
|
|
96
|
-
}, {
|
|
97
|
-
hasOnline: true,
|
|
98
|
-
preContent: "OKR列表支持排序方式选择",
|
|
99
|
-
preHref: href,
|
|
100
|
-
isNew: false,
|
|
101
|
-
date: "08/03"
|
|
102
|
-
}, {
|
|
103
|
-
hasOnline: true,
|
|
104
|
-
preContent: "OKR移动端协作体验大跃进",
|
|
105
|
-
preHref: "https://wiki.tita.com/x/t4bv",
|
|
106
|
-
isNew: false,
|
|
107
|
-
date: "07/22"
|
|
108
|
-
}, {
|
|
109
|
-
hasOnline: true,
|
|
110
|
-
preContent: "日报总结支持一键纳入考核",
|
|
111
|
-
preHref: "https://wiki.tita.com/x/qobv",
|
|
112
|
-
isNew: false,
|
|
113
|
-
date: "07/22"
|
|
114
|
-
}, {
|
|
115
|
-
hasOnline: true,
|
|
116
|
-
preContent: "OKR地图支持导出啦",
|
|
117
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=15697485",
|
|
118
|
-
isNew: false,
|
|
119
|
-
date: "07/13"
|
|
120
|
-
}, {
|
|
121
|
-
hasOnline: true,
|
|
122
|
-
preContent: "OKR详情页升级啦~",
|
|
123
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=15697233",
|
|
124
|
-
isNew: false,
|
|
125
|
-
date: "06/28"
|
|
126
|
-
}, {
|
|
127
|
-
hasOnline: true,
|
|
128
|
-
preContent: "考核内置系统考核模板",
|
|
129
|
-
preHref: "https://wiki.tita.com/x/bYXv",
|
|
130
|
-
isNew: false,
|
|
131
|
-
date: "06/26"
|
|
132
|
-
}, {
|
|
133
|
-
hasOnline: true,
|
|
134
|
-
preContent: "OKR列表上可以查看进展啦",
|
|
135
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=15697158",
|
|
136
|
-
isNew: false,
|
|
137
|
-
date: "06/21"
|
|
138
|
-
}, {
|
|
139
|
-
hasOnline: true,
|
|
140
|
-
preContent: "考核活动支持复制啦",
|
|
141
|
-
preHref: "https://wiki.tita.com/x/O4Hv",
|
|
142
|
-
isNew: false,
|
|
143
|
-
date: "06/09"
|
|
144
|
-
}, {
|
|
145
|
-
hasOnline: true,
|
|
146
|
-
preContent: "OKR列表升级版,重磅来袭",
|
|
147
|
-
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=15696214",
|
|
148
|
-
isNew: false,
|
|
149
|
-
date: "05/31"
|
|
150
|
-
} // {
|
|
151
|
-
// hasOnline: true,
|
|
152
|
-
// preContent: "OKR 目标移动端全新改版",
|
|
153
|
-
// preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=15696230",
|
|
154
|
-
// isNew: false,
|
|
155
|
-
// // date: '03/30'
|
|
156
|
-
// },
|
|
157
|
-
// {
|
|
158
|
-
// hasOnline: true,
|
|
159
|
-
// preContent: "人员群组功能重磅来袭",
|
|
160
|
-
// preHref: "https://docs.tita.com/tita-com-update-20210324/",
|
|
161
|
-
// isNew: true,
|
|
162
|
-
// date: '03/25'
|
|
163
|
-
// },
|
|
164
|
-
// {
|
|
165
|
-
// hasOnline: true,
|
|
166
|
-
// preContent: "绩效等级支持根据比例分布",
|
|
167
|
-
// preHref: "https://docs.tita.com/tita-com-update-20210324/",
|
|
168
|
-
// isNew: true,
|
|
169
|
-
// date: '03/25'
|
|
170
|
-
// },
|
|
171
|
-
// {
|
|
172
|
-
// hasOnline: true,
|
|
173
|
-
// preContent: "绩效考核流程升级",
|
|
174
|
-
// preHref: "https://docs.tita.com/tita-com-update-20210304/",
|
|
175
|
-
// isNew: false,
|
|
176
|
-
// },
|
|
177
|
-
// {
|
|
178
|
-
// hasOnline: true,
|
|
179
|
-
// preContent: "考核流程支持自定义配置",
|
|
180
|
-
// preHref: "https://docs.tita.com/tita-com-update-20210213/",
|
|
181
|
-
// isNew: false,
|
|
182
|
-
// },
|
|
183
|
-
// {
|
|
184
|
-
// hasOnline: true,
|
|
185
|
-
// preContent: "OKR 列表又双叒叕更新啦",
|
|
186
|
-
// preHref: "https://docs.tita.com/tita-com-update-20201217/",
|
|
187
|
-
// isNew: false,
|
|
188
|
-
// },
|
|
189
|
-
// {
|
|
190
|
-
// hasOnline: true,
|
|
191
|
-
// preContent: "「绩效考核」全新上线",
|
|
192
|
-
// preHref: "https://docs.tita.com/tita-com-update-20201214/",
|
|
193
|
-
// isNew: false,
|
|
194
|
-
// },
|
|
195
|
-
// {
|
|
196
|
-
// hasOnline: true,
|
|
197
|
-
// preContent: "OKR 聚焦周期,交互更便捷",
|
|
198
|
-
// preHref: "https://docs.tita.com/tita-com-update-20201014/",
|
|
199
|
-
// isNew: false,
|
|
200
|
-
// },
|
|
201
|
-
// {
|
|
202
|
-
// hasOnline: true,
|
|
203
|
-
// preContent: "OKR仪表盘重磅来袭",
|
|
204
|
-
// preHref: "https://docs.tita.com/tita-com-update-20200930/",
|
|
205
|
-
// isNew: false,
|
|
206
|
-
// },
|
|
207
|
-
// {
|
|
208
|
-
// hasOnline: true,
|
|
209
|
-
// preContent: "OKR复盘支持导出啦",
|
|
210
|
-
// preHref: "https://docs.tita.com/tita-com-update-20200824/",
|
|
211
|
-
// isNew: false,
|
|
212
|
-
// },
|
|
213
|
-
// {
|
|
214
|
-
// hasOnline: true,
|
|
215
|
-
// preContent: "目标OKR支持添加查看关注的人",
|
|
216
|
-
// preHref: "https://docs.tita.com/tita-com-update-20200731/",
|
|
217
|
-
// isNew: false,
|
|
218
|
-
// },
|
|
219
|
-
// {
|
|
220
|
-
// hasOnline: true,
|
|
221
|
-
// preContent: "目标新增OKR案例库",
|
|
222
|
-
// preHref: "https://docs.tita.com/tita-com-update-20200728/",
|
|
223
|
-
// isNew: false,
|
|
224
|
-
// }
|
|
225
|
-
];
|
|
226
|
-
exports.onlineBroadcastData = onlineBroadcastData;
|
|
62
|
+
}];
|
|
63
|
+
exports.onlineBroadcastData = onlineBroadcastData;
|
|
64
|
+
var _default = onlineBroadcastData;
|
|
65
|
+
exports["default"] = _default;
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var
|
|
58
|
+
var _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, (
|
|
66
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: "",
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -176,7 +176,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
176
176
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
177
177
|
}
|
|
178
178
|
})));
|
|
179
|
-
},
|
|
179
|
+
}, _assertThisInitialized(_this)));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
_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
|
|
50
|
+
var _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, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
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
|
|
60
|
+
var _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, (
|
|
68
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -83,7 +83,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
83
|
var _super = _createSuper(MblogAction);
|
|
84
84
|
|
|
85
85
|
function MblogAction() {
|
|
86
|
-
var
|
|
86
|
+
var _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, (
|
|
94
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
_createClass(MblogAction, [{
|
|
@@ -93,90 +93,6 @@
|
|
|
93
93
|
position: relative;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.titaui-nav-top-menu__tips {
|
|
97
|
-
position: relative;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.titaui-nav-top-menu__tips-new {
|
|
101
|
-
width: 36px;
|
|
102
|
-
height: 26px;
|
|
103
|
-
position: absolute;
|
|
104
|
-
top: 6px;
|
|
105
|
-
right: -8px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.titaui-nav-top-menu__tips-box {
|
|
109
|
-
width: 308px;
|
|
110
|
-
height: 142px;
|
|
111
|
-
box-sizing: border-box;
|
|
112
|
-
padding: 16px;
|
|
113
|
-
background: #2879ff;
|
|
114
|
-
box-shadow: 0px -4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
115
|
-
border: 1px solid #eff0f1;
|
|
116
|
-
border-radius: 12px;
|
|
117
|
-
z-index: 99;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.titaui-nav-top-menu__tips-box-title {
|
|
121
|
-
display: block;
|
|
122
|
-
font-size: 14px;
|
|
123
|
-
color: #ffffff;
|
|
124
|
-
line-height: 22px;
|
|
125
|
-
font-weight: 600;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.titaui-nav-top-menu__tips-box-content {
|
|
129
|
-
font-size: 12px;
|
|
130
|
-
color: #ffffff;
|
|
131
|
-
line-height: 18px;
|
|
132
|
-
margin-top: 10px;
|
|
133
|
-
margin-left: 20px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.titaui-nav-top-menu__tips-box-ok {
|
|
137
|
-
height: 28px;
|
|
138
|
-
margin-top: 8px;
|
|
139
|
-
margin-left: 210px;
|
|
140
|
-
background: #ffffff;
|
|
141
|
-
box-shadow: 0px -4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
142
|
-
border-radius: 14px;
|
|
143
|
-
box-sizing: border-box;
|
|
144
|
-
padding: 3px 17px;
|
|
145
|
-
font-size: 14px;
|
|
146
|
-
color: #2879FF;
|
|
147
|
-
line-height: 22px;
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.titaui-nav-top-menu__tips-triangle {
|
|
152
|
-
position: absolute;
|
|
153
|
-
top: -4px;
|
|
154
|
-
left: 50%;
|
|
155
|
-
margin-left: -4px;
|
|
156
|
-
width: 0;
|
|
157
|
-
height: 0;
|
|
158
|
-
border-left: 5px solid transparent;
|
|
159
|
-
border-right: 5px solid transparent;
|
|
160
|
-
border-bottom: 5px solid #fff;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.titaui-nav-top-menu__tips-triangle::after {
|
|
164
|
-
content: "";
|
|
165
|
-
width: 0;
|
|
166
|
-
height: 0;
|
|
167
|
-
position: absolute;
|
|
168
|
-
left: -4px;
|
|
169
|
-
top: 2px;
|
|
170
|
-
border-left: solid 4px transparent;
|
|
171
|
-
border-right: solid 4px transparent;
|
|
172
|
-
border-bottom: solid 4px #2879ff;
|
|
173
|
-
z-index: 99;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.titaui-nav-top-menu__tips-hide {
|
|
177
|
-
display: none;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
96
|
.titaui-nav-top-menu .rc-overflow-item {
|
|
181
97
|
position: relative;
|
|
182
98
|
}
|
|
@@ -19,8 +19,6 @@ var _popup = _interopRequireDefault(require("../../../popup"));
|
|
|
19
19
|
|
|
20
20
|
var _conditionRender = _interopRequireDefault(require("../../../../components/condition-render"));
|
|
21
21
|
|
|
22
|
-
var _new = _interopRequireDefault(require("./img/new.png"));
|
|
23
|
-
|
|
24
22
|
require("./index.css");
|
|
25
23
|
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,7 +41,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
43
41
|
|
|
44
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
43
|
|
|
46
|
-
var prefix =
|
|
44
|
+
var prefix = 'titaui-nav-top-menu';
|
|
47
45
|
var popupAlign = {
|
|
48
46
|
offset: [0, 5],
|
|
49
47
|
overflow: {
|
|
@@ -62,13 +60,8 @@ var Menu = function Menu(_ref) {
|
|
|
62
60
|
popupVisible = _useState2[0],
|
|
63
61
|
setPopupVisible = _useState2[1];
|
|
64
62
|
|
|
65
|
-
var _useState3 = (0, _react.useState)(false),
|
|
66
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
67
|
-
isKnow = _useState4[0],
|
|
68
|
-
setIsKonw = _useState4[1];
|
|
69
|
-
|
|
70
63
|
var containerRef = (0, _react.useRef)();
|
|
71
|
-
var apiPath = (0, _bsGlobal.getBSGlobal)(
|
|
64
|
+
var apiPath = (0, _bsGlobal.getBSGlobal)('apiPath');
|
|
72
65
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
73
66
|
|
|
74
67
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
@@ -77,60 +70,23 @@ var Menu = function Menu(_ref) {
|
|
|
77
70
|
|
|
78
71
|
var handleTracker = function handleTracker(menu) {
|
|
79
72
|
// @ts-ignore
|
|
80
|
-
window.titaTracker // @ts-ignore
|
|
81
|
-
|
|
73
|
+
window.titaTracker && // @ts-ignore
|
|
74
|
+
window.titaTracker('action').record({
|
|
82
75
|
actionName: "\u5BFC\u822A\u83DC\u5355__".concat(menu.title),
|
|
83
|
-
actionGroup:
|
|
84
|
-
productName:
|
|
76
|
+
actionGroup: '导航菜单',
|
|
77
|
+
productName: '导航菜单'
|
|
85
78
|
});
|
|
86
79
|
};
|
|
87
80
|
|
|
88
|
-
var handleClick = function handleClick() {
|
|
89
|
-
setIsKonw(true);
|
|
90
|
-
localStorage.setItem("isKonwLearning".concat(userId), "".concat(userId));
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
var popupAlign2 = {
|
|
94
|
-
offset: [104, -5],
|
|
95
|
-
overflow: {
|
|
96
|
-
adjustX: true,
|
|
97
|
-
adjustY: true
|
|
98
|
-
},
|
|
99
|
-
targetOffset: [0, 0]
|
|
100
|
-
};
|
|
101
|
-
|
|
102
81
|
var handleClickToLearning = function handleClickToLearning() {
|
|
103
|
-
window.open("".concat(apiPath, "/").concat(userId, "/eLearningHome#/"),
|
|
82
|
+
window.open("".concat(apiPath, "/").concat(userId, "/eLearningHome#/"), '_self');
|
|
104
83
|
};
|
|
105
84
|
|
|
106
|
-
(0, _react.useEffect)(function () {
|
|
107
|
-
var isKnow = localStorage.getItem("isKonwLearning".concat(userId));
|
|
108
|
-
|
|
109
|
-
if (isKnow) {
|
|
110
|
-
setIsKonw(true);
|
|
111
|
-
}
|
|
112
|
-
}, []);
|
|
113
|
-
|
|
114
|
-
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
-
className: "".concat(prefix, "__tips")
|
|
116
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
-
className: (0, _classnames["default"])("".concat(prefix, "__tips-box"), _defineProperty({}, "".concat(prefix, "__tips-hide"), isKnow))
|
|
118
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
119
|
-
className: "".concat(prefix, "__tips-box-title")
|
|
120
|
-
}, "\uD83C\uDF89 Tita Learning \u4E0A\u7EBF\u5566"), /*#__PURE__*/_react["default"].createElement("p", {
|
|
121
|
-
className: "".concat(prefix, "__tips-box-content")
|
|
122
|
-
}, "OKR \u5B66\u4E60\u8D44\u6599\uFF0COKR \u63A8\u8FDB\u65B9\u6CD5\uFF0COKR\u6559\u7EC3\u5728\u7EBF\u6307\u5BFC\uFF0C\u901A\u901A\u90FD\u5728\u8FD9\u91CC\uFF01\u5FEB\u6765\u770B\u770B\u5427\uFF01"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
-
className: "".concat(prefix, "__tips-box-ok"),
|
|
124
|
-
onClick: handleClick
|
|
125
|
-
}, "\u597D\u54D2")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
-
className: (0, _classnames["default"])("".concat(prefix, "__tips-triangle"), _defineProperty({}, "".concat(prefix, "__tips-hide"), isKnow))
|
|
127
|
-
}));
|
|
128
|
-
|
|
129
85
|
var renderRawItem = function renderRawItem(menu) {
|
|
130
86
|
return /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"].Item, {
|
|
131
87
|
component: "span"
|
|
132
88
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
133
|
-
condition: menu.title !==
|
|
89
|
+
condition: menu.title !== 'Learning'
|
|
134
90
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
135
91
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId == menu.id)),
|
|
136
92
|
href: "".concat(menu.href),
|
|
@@ -139,23 +95,14 @@ var Menu = function Menu(_ref) {
|
|
|
139
95
|
return handleTracker(menu);
|
|
140
96
|
}
|
|
141
97
|
}, menu.title)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
142
|
-
condition: menu.title ===
|
|
143
|
-
}, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
144
|
-
popupVisible: !isKnow,
|
|
145
|
-
popup: popup,
|
|
146
|
-
mask: false,
|
|
147
|
-
action: ["focus"],
|
|
148
|
-
popupAlign: popupAlign2
|
|
98
|
+
condition: menu.title === 'Learning'
|
|
149
99
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
150
100
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId == menu.id)),
|
|
151
101
|
onClick: function onClick() {
|
|
152
102
|
handleTracker(menu);
|
|
153
103
|
handleClickToLearning();
|
|
154
104
|
}
|
|
155
|
-
}, menu.title))
|
|
156
|
-
src: _new["default"],
|
|
157
|
-
className: "".concat(prefix, "__tips-new")
|
|
158
|
-
})));
|
|
105
|
+
}, menu.title)));
|
|
159
106
|
};
|
|
160
107
|
|
|
161
108
|
var renderRest = function renderRest(items) {
|
|
@@ -168,14 +115,14 @@ var Menu = function Menu(_ref) {
|
|
|
168
115
|
className: "".concat(prefix, "__hide-menus")
|
|
169
116
|
}, items.map(function (menu) {
|
|
170
117
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
171
|
-
condition: menu.title !==
|
|
118
|
+
condition: menu.title !== 'Learning'
|
|
172
119
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
173
120
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId == menu.id)),
|
|
174
121
|
href: "".concat(menu.href),
|
|
175
122
|
key: menu.id,
|
|
176
123
|
target: "_self"
|
|
177
124
|
}, menu.title)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
178
|
-
condition: menu.title ===
|
|
125
|
+
condition: menu.title === 'Learning'
|
|
179
126
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
180
127
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId == menu.id)),
|
|
181
128
|
href: "".concat(apiPath, "/").concat(userId, "/eLearningHome#/"),
|
|
@@ -191,7 +138,7 @@ var Menu = function Menu(_ref) {
|
|
|
191
138
|
popupPlacement: "bottomLeft",
|
|
192
139
|
popupAlign: popupAlign
|
|
193
140
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
194
|
-
className: (0, _classnames["default"])(
|
|
141
|
+
className: (0, _classnames["default"])('tu-icon-diot', "".concat(prefix, "__more-icon"), _defineProperty({}, "".concat(prefix, "__more-icon--active"), isActiveHideMeun))
|
|
195
142
|
}));
|
|
196
143
|
};
|
|
197
144
|
|
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
|
|
84
|
+
var _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, (
|
|
92
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
_createClass(EditPop, [{
|
|
@@ -45,7 +45,7 @@ var ReviewItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(ReviewItem);
|
|
46
46
|
|
|
47
47
|
function ReviewItem() {
|
|
48
|
-
var
|
|
48
|
+
var _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, (
|
|
56
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
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
|
|
52
|
+
var _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, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
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
|
|
48
|
+
var _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, (
|
|
56
|
+
return _possibleConstructorReturn(_this, (_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
|
+
}, _assertThisInitialized(_this)));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
_createClass(RangeSelectorPop, [{
|
|
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(Option);
|
|
48
48
|
|
|
49
49
|
function Option() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, Option);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
|
|
59
59
|
e.stopPropagation();
|
|
60
60
|
e.nativeEvent.stopImmediatePropagation();
|
|
61
61
|
var onSelect = _this.props.onSelect;
|
|
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
height: _this.props.height,
|
|
66
66
|
lineHeight: _this.props.height
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, _assertThisInitialized(_this)));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
_createClass(Option, [{
|
|
@@ -37,7 +37,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
37
37
|
var _super = _createSuper(ErrorBoundary);
|
|
38
38
|
|
|
39
39
|
function ErrorBoundary() {
|
|
40
|
-
var
|
|
40
|
+
var _this;
|
|
41
41
|
|
|
42
42
|
_classCallCheck(this, ErrorBoundary);
|
|
43
43
|
|
|
@@ -45,7 +45,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
45
45
|
args[_key] = arguments[_key];
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
return _possibleConstructorReturn(_this, (
|
|
48
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
49
49
|
hasError: false
|
|
50
50
|
}, _this.renderError = function (e) {
|
|
51
51
|
var errorTemplate = _this.props.errorTemplate;
|
|
@@ -55,7 +55,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
// fallback
|
|
56
56
|
return errorTemplate && typeof errorTemplate === "function" ? errorTemplate(e) : /*#__PURE__*/_react["default"].createElement("h5", null, "\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A", e.message);
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, _assertThisInitialized(_this)));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
_createClass(ErrorBoundary, [{
|
|
@@ -45,7 +45,7 @@ var AnimateChild = /*#__PURE__*/function (_Component) {
|
|
|
45
45
|
var _super = _createSuper(AnimateChild);
|
|
46
46
|
|
|
47
47
|
function AnimateChild() {
|
|
48
|
-
var
|
|
48
|
+
var _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, AnimateChild);
|
|
51
51
|
|
|
@@ -53,14 +53,14 @@ var AnimateChild = /*#__PURE__*/function (_Component) {
|
|
|
53
53
|
args[_key] = arguments[_key];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
return _possibleConstructorReturn(_this, (
|
|
56
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.componentWillEnter = function (done) {
|
|
57
57
|
_this.transition("enter", done);
|
|
58
58
|
}, _this.componentWillLeave = function (done) {
|
|
59
59
|
_this.transition("leave", done);
|
|
60
60
|
}, _this.transition = function (animationType, done) {
|
|
61
61
|
var name = _typeof(_this.props.transitionName) === "object" ? _this.props.transitionName[animationType] : "".concat(_this.props.transitionName, "-").concat(animationType);
|
|
62
62
|
(0, _animate["default"])((0, _reactDom.findDOMNode)(_assertThisInitialized(_this)), name, done);
|
|
63
|
-
},
|
|
63
|
+
}, _assertThisInitialized(_this)));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
_createClass(AnimateChild, [{
|
|
@@ -45,7 +45,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(Avatar);
|
|
46
46
|
|
|
47
47
|
function Avatar() {
|
|
48
|
-
var
|
|
48
|
+
var _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, Avatar);
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
|
53
53
|
args[_key] = arguments[_key];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
return _possibleConstructorReturn(_this, (
|
|
56
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.renderImgAvatar = function () {
|
|
57
57
|
var src = _this.props.src;
|
|
58
58
|
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
59
59
|
style: {
|
|
@@ -103,7 +103,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
|
103
103
|
height: size.width,
|
|
104
104
|
background: color
|
|
105
105
|
}, cuttedName);
|
|
106
|
-
},
|
|
106
|
+
}, _assertThisInitialized(_this)));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
_createClass(Avatar, [{
|
|
@@ -47,7 +47,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(StatelessDropdown);
|
|
48
48
|
|
|
49
49
|
function StatelessDropdown() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, StatelessDropdown);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.renderLabel = function () {
|
|
59
59
|
if (_this.props.labelText) {
|
|
60
60
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
61
|
className: "drop-down-label"
|
|
@@ -63,7 +63,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
return "";
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(StatelessDropdown, [{
|
|
@@ -41,7 +41,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
|
|
|
41
41
|
var _super = _createSuper(CircleProgress);
|
|
42
42
|
|
|
43
43
|
function CircleProgress() {
|
|
44
|
-
var
|
|
44
|
+
var _this;
|
|
45
45
|
|
|
46
46
|
_classCallCheck(this, CircleProgress);
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
|
|
|
49
49
|
args[_key] = arguments[_key];
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
return _possibleConstructorReturn(_this, (
|
|
52
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getTextContent = function () {
|
|
53
53
|
var _this$props = _this.props,
|
|
54
54
|
formatText = _this$props.formatText,
|
|
55
55
|
percent = _this$props.percent;
|
|
@@ -59,7 +59,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
return percent + getLocale("OKR_MyO_Pop_Upd_Percentage");
|
|
62
|
-
},
|
|
62
|
+
}, _assertThisInitialized(_this)));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
_createClass(CircleProgress, [{
|
|
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(Option);
|
|
48
48
|
|
|
49
49
|
function Option() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, Option);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
|
|
59
59
|
e.stopPropagation();
|
|
60
60
|
e.nativeEvent.stopImmediatePropagation();
|
|
61
61
|
var onSelect = _this.props.onSelect;
|
|
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
height: _this.props.height,
|
|
66
66
|
lineHeight: _this.props.height
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, _assertThisInitialized(_this)));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
_createClass(Option, [{
|
|
@@ -52,7 +52,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
52
52
|
var _super = _createSuper(UserSelectorPop);
|
|
53
53
|
|
|
54
54
|
function UserSelectorPop() {
|
|
55
|
-
var
|
|
55
|
+
var _this;
|
|
56
56
|
|
|
57
57
|
_classCallCheck(this, UserSelectorPop);
|
|
58
58
|
|
|
@@ -60,7 +60,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
60
60
|
args[_key] = arguments[_key];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
return _possibleConstructorReturn(_this, (
|
|
63
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function (e) {
|
|
64
64
|
if (_this.props.stopPropagation && !!e) {
|
|
65
65
|
e.stopPropagation();
|
|
66
66
|
e.nativeEvent.stopImmediatePropagation();
|
|
@@ -74,7 +74,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
74
|
}, _this.show = function (el) {
|
|
75
75
|
// @ts-ignore
|
|
76
76
|
_this.refs.pop.show(el);
|
|
77
|
-
},
|
|
77
|
+
}, _assertThisInitialized(_this)));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
_createClass(UserSelectorPop, [{
|
|
@@ -61,7 +61,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
|
|
|
61
61
|
var _super = _createSuper(MutiMode);
|
|
62
62
|
|
|
63
63
|
function MutiMode() {
|
|
64
|
-
var
|
|
64
|
+
var _this;
|
|
65
65
|
|
|
66
66
|
_classCallCheck(this, MutiMode);
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
|
|
|
69
69
|
args[_key] = arguments[_key];
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
return _possibleConstructorReturn(_this, (
|
|
72
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleDepartment = function (d) {
|
|
73
73
|
var _this$props = _this.props,
|
|
74
74
|
selectedDept = _this$props.selectedDept,
|
|
75
75
|
onSelectDept = _this$props.onSelectDept;
|
|
@@ -90,7 +90,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
90
|
});
|
|
91
91
|
if (!filterdUsers.length) return;
|
|
92
92
|
onSelectUser(filterdUsers);
|
|
93
|
-
},
|
|
93
|
+
}, _assertThisInitialized(_this)));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
_createClass(MutiMode, [{
|
|
@@ -47,7 +47,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(UserItem);
|
|
48
48
|
|
|
49
49
|
function UserItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, UserItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleClick = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
onClick = _this$props.onClick,
|
|
61
61
|
user = _this$props.user;
|
|
@@ -71,7 +71,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
71
71
|
}
|
|
72
72
|
}, keyword)];
|
|
73
73
|
}));
|
|
74
|
-
},
|
|
74
|
+
}, _assertThisInitialized(_this)));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
_createClass(UserItem, [{
|
package/lib/utils/bs-global.js
CHANGED
|
@@ -46,6 +46,7 @@ exports.getSource = getSource;
|
|
|
46
46
|
|
|
47
47
|
var getUploadMaxSize = function getUploadMaxSize() {
|
|
48
48
|
var info = getBSGlobal("tenantInfo");
|
|
49
|
+
if (info.Id === 352728) return 150;
|
|
49
50
|
var isDingDing = info.Source === 861;
|
|
50
51
|
var isDingZhi = window.dingZhiSize && window.dingZhiSize.indexOf(info.Id) !== -1;
|
|
51
52
|
if (isDingDing) return 20;
|
package/lib/utils/helpers.js
CHANGED
|
@@ -25,6 +25,7 @@ function cssSupport(attr, value) {
|
|
|
25
25
|
|
|
26
26
|
function getUploadMaxSize() {
|
|
27
27
|
var info = (0, _bsGlobal.getBSGlobal)("tenantInfo");
|
|
28
|
+
if (info.Id === 352728) return 150;
|
|
28
29
|
var isDingDing = info.Source === 861;
|
|
29
30
|
var isDingZhi = window.dingZhiSize && window.dingZhiSize.indexOf(info.Id) !== -1;
|
|
30
31
|
if (isDingDing) return 20;
|