@titaui/pc 1.9.104 → 1.9.107-beta.2
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/.eslintrc.js +2 -2
- package/lib/components/book-demo/components/h5/index.css +0 -0
- package/lib/components/book-demo/components/h5/index.js +19 -0
- package/lib/components/book-demo/components/pc/components/checkbox/index.css +47 -0
- package/lib/components/book-demo/components/pc/components/checkbox/index.js +104 -0
- package/lib/components/book-demo/components/pc/components/drop-select/index.css +41 -0
- package/lib/components/book-demo/components/pc/components/drop-select/index.js +82 -0
- package/lib/components/book-demo/components/pc/components/error-info/index.css +6 -0
- package/lib/components/book-demo/components/pc/components/error-info/index.js +24 -0
- package/lib/components/book-demo/components/pc/components/input/index.css +40 -0
- package/lib/components/book-demo/components/pc/components/input/index.js +93 -0
- package/lib/components/book-demo/components/pc/components/phone/index.css +40 -0
- package/lib/components/book-demo/components/pc/components/phone/index.js +93 -0
- package/lib/components/book-demo/components/pc/components/verify-code/index.css +41 -0
- package/lib/components/book-demo/components/pc/components/verify-code/index.js +136 -0
- package/lib/components/book-demo/components/pc/index.css +128 -0
- package/lib/components/book-demo/components/pc/index.js +395 -0
- package/lib/components/book-demo/constant.js +774 -0
- package/lib/components/book-demo/img/learning.jpg +0 -0
- package/lib/components/book-demo/img/okr.jpg +0 -0
- package/lib/components/book-demo/img/performance.jpg +0 -0
- package/lib/components/book-demo/img/universal.jpg +0 -0
- package/lib/components/book-demo/index.css +0 -0
- package/lib/components/book-demo/index.js +22 -0
- package/lib/components/book-demo/interface.js +17 -0
- package/lib/components/book-demo/utils.js +16 -0
- 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/dialog/index.css +6 -6
- 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/grid-layout/essay-component/index.js +1 -1
- package/lib/components/help-card/index.js +72 -45
- package/lib/components/help-card/interface.js +19 -0
- 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-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/index.js +8 -0
- package/lib/pages/aha2021/index.js +22 -2
- package/lib/utils/bs-global.js +1 -0
- package/lib/utils/helpers.js +1 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _pc = _interopRequireDefault(require("./components/pc"));
|
|
9
|
+
|
|
10
|
+
var _h = _interopRequireDefault(require("./components/h5"));
|
|
11
|
+
|
|
12
|
+
var _interface = require("./interface");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var BookDemo = {
|
|
17
|
+
BookDemoPC: _pc["default"],
|
|
18
|
+
BookDemoH5: _h["default"],
|
|
19
|
+
DemoType: _interface.EDemoType
|
|
20
|
+
};
|
|
21
|
+
var _default = BookDemo;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EDemoType = void 0;
|
|
7
|
+
var EDemoType;
|
|
8
|
+
exports.EDemoType = EDemoType;
|
|
9
|
+
|
|
10
|
+
(function (EDemoType) {
|
|
11
|
+
EDemoType[EDemoType["UniversalBookDemo"] = 1] = "UniversalBookDemo";
|
|
12
|
+
EDemoType[EDemoType["TryOKR"] = 2] = "TryOKR";
|
|
13
|
+
EDemoType[EDemoType["OfficalSiteOKR"] = 3] = "OfficalSiteOKR";
|
|
14
|
+
EDemoType[EDemoType["TryPerformance"] = 4] = "TryPerformance";
|
|
15
|
+
EDemoType[EDemoType["OfficalSitePerformance"] = 5] = "OfficalSitePerformance";
|
|
16
|
+
EDemoType[EDemoType["Learning"] = 6] = "Learning";
|
|
17
|
+
})(EDemoType || (exports.EDemoType = EDemoType = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getTypeData = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _constant = require("./constant");
|
|
9
|
+
|
|
10
|
+
var getTypeData = function getTypeData(type) {
|
|
11
|
+
return _constant.bookTypeInfo[type];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.getTypeData = getTypeData;
|
|
15
|
+
var _default = getTypeData;
|
|
16
|
+
exports["default"] = _default;
|
|
@@ -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, [{
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
.titaui-dialog {
|
|
18
18
|
border-radius: 24px;
|
|
19
|
-
overflow: hidden;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
.titaui-dialog.rc-dialog {
|
|
@@ -39,6 +38,7 @@
|
|
|
39
38
|
.titaui-dialog .rc-dialog-content {
|
|
40
39
|
box-shadow: none;
|
|
41
40
|
border: none;
|
|
41
|
+
border-radius: 24px;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.titaui-dialog .rc-dialog-title {
|
|
@@ -105,14 +105,14 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.titaui-dialog__btn-ok-not-allowed {
|
|
108
|
-
background: #
|
|
109
|
-
border-color: #
|
|
108
|
+
background: #93bcff;
|
|
109
|
+
border-color: #93bcff;
|
|
110
110
|
cursor: not-allowed;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.titaui-dialog__btn-ok-not-allowed:hover {
|
|
114
|
-
background: #
|
|
115
|
-
border-color: #
|
|
114
|
+
background: #93bcff;
|
|
115
|
+
border-color: #93bcff;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.titaui-dialog__btn-ok-loading-icon {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.titaui-dialog__btn-cancel {
|
|
128
|
-
border: 1px solid #
|
|
128
|
+
border: 1px solid #dfe3ea;
|
|
129
129
|
color: #6f7886;
|
|
130
130
|
transition: 0.2s all;
|
|
131
131
|
}
|
|
@@ -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, [{
|
|
@@ -65,7 +65,7 @@ function OkrEssay(props) {
|
|
|
65
65
|
}, [essayTypeId]);
|
|
66
66
|
return /*#__PURE__*/_react["default"].createElement(_commenComponents.CardContainer, {
|
|
67
67
|
styles: {
|
|
68
|
-
padding: "12px 12px
|
|
68
|
+
padding: "12px 12px 0px 16px"
|
|
69
69
|
},
|
|
70
70
|
_className: _className
|
|
71
71
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _bookDemo = _interopRequireDefault(require("../book-demo"));
|
|
17
17
|
|
|
18
18
|
var _openData = require("../../utils/open-data");
|
|
19
19
|
|
|
@@ -23,6 +23,18 @@ var _requestApi = require("./request-api");
|
|
|
23
23
|
|
|
24
24
|
var _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
25
25
|
|
|
26
|
+
var _kefu = _interopRequireDefault(require("./image/kefu1.svg"));
|
|
27
|
+
|
|
28
|
+
var _yuyueyanshi = _interopRequireDefault(require("./image/yuyueyanshi.svg"));
|
|
29
|
+
|
|
30
|
+
var _helpzx = _interopRequireDefault(require("./image/helpzx.svg"));
|
|
31
|
+
|
|
32
|
+
var _upgrade = _interopRequireDefault(require("./image/upgrade.svg"));
|
|
33
|
+
|
|
34
|
+
var _okrShequ = _interopRequireDefault(require("./image/okr-shequ.svg"));
|
|
35
|
+
|
|
36
|
+
var _interface = require("./interface");
|
|
37
|
+
|
|
26
38
|
require("./index.css");
|
|
27
39
|
|
|
28
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -60,30 +72,39 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
60
72
|
pageNum = _useState4[0],
|
|
61
73
|
setPageNum = _useState4[1];
|
|
62
74
|
|
|
63
|
-
var _useState5 = (0, _react.useState)(
|
|
75
|
+
var _useState5 = (0, _react.useState)([]),
|
|
64
76
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
guessList = _useState6[0],
|
|
78
|
+
setGuessList = _useState6[1];
|
|
67
79
|
|
|
68
80
|
var _useState7 = (0, _react.useState)([]),
|
|
69
81
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
recommendList = _useState8[0],
|
|
83
|
+
setRecommendList = _useState8[1];
|
|
72
84
|
|
|
73
|
-
var _useState9 = (0, _react.useState)(
|
|
85
|
+
var _useState9 = (0, _react.useState)(0),
|
|
74
86
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var _useState11 = (0, _react.useState)(0),
|
|
79
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
80
|
-
guessQuestionNum = _useState12[0],
|
|
81
|
-
setGuessQuestionNum = _useState12[1];
|
|
87
|
+
guessQuestionNum = _useState10[0],
|
|
88
|
+
setGuessQuestionNum = _useState10[1];
|
|
82
89
|
|
|
83
|
-
var
|
|
84
|
-
var
|
|
90
|
+
var bookDemoRef = (0, _react.useRef)();
|
|
91
|
+
var isTrial = (0, _bsGlobal.getVersion)() === 1;
|
|
85
92
|
var kefuUrl = isTrial ? "https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true" : "https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true";
|
|
86
93
|
|
|
94
|
+
var getBookDemoVersion = function getBookDemoVersion() {
|
|
95
|
+
var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
|
|
96
|
+
|
|
97
|
+
if (menuVersion === _interface.ETrialVersion.OKR) {
|
|
98
|
+
return _bookDemo["default"].DemoType.TryOKR;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (menuVersion === _interface.ETrialVersion.Performance) {
|
|
102
|
+
return _bookDemo["default"].DemoType.TryPerformance;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return _bookDemo["default"].DemoType.UniversalBookDemo;
|
|
106
|
+
};
|
|
107
|
+
|
|
87
108
|
var handleSkip = function handleSkip(url) {
|
|
88
109
|
setVisible(false);
|
|
89
110
|
window.open(url);
|
|
@@ -108,14 +129,28 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
108
129
|
|
|
109
130
|
var handlePoint = function handlePoint() {
|
|
110
131
|
setVisible(false);
|
|
111
|
-
setPointVisible(true); // @ts-ignore
|
|
112
132
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
133
|
+
if (bookDemoRef.current) {
|
|
134
|
+
bookDemoRef.current.show();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (window.titaTracker) {
|
|
138
|
+
window.titaTracker("action").record({
|
|
139
|
+
actionName: "申请演示",
|
|
140
|
+
actionGroup: "试用版-申请演示",
|
|
141
|
+
productName: "系统内-申请演示"
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var handleClickTracker = function handleClickTracker(title) {
|
|
147
|
+
if (window.titaTracker) {
|
|
148
|
+
window.titaTracker("action").record({
|
|
149
|
+
actionName: "Tita\u5C0F\u52A9\u624B__".concat(title),
|
|
150
|
+
actionGroup: "Tita小助手",
|
|
151
|
+
productName: "Tita小助手"
|
|
152
|
+
});
|
|
153
|
+
}
|
|
119
154
|
};
|
|
120
155
|
|
|
121
156
|
var handleHelpCenter = function handleHelpCenter() {
|
|
@@ -150,16 +185,6 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
150
185
|
handleClickTracker("升级通知");
|
|
151
186
|
};
|
|
152
187
|
|
|
153
|
-
var handleClickTracker = function handleClickTracker(title) {
|
|
154
|
-
// @ts-ignore
|
|
155
|
-
window.titaTracker // @ts-ignore
|
|
156
|
-
&& window.titaTracker("action").record({
|
|
157
|
-
actionName: "Tita\u5C0F\u52A9\u624B__".concat(title),
|
|
158
|
-
actionGroup: "Tita小助手",
|
|
159
|
-
productName: "Tita小助手"
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
|
|
163
188
|
var chageBatch = function chageBatch() {
|
|
164
189
|
if (guessQuestionNum > pageNum * 3) {
|
|
165
190
|
setPageNum(pageNum + 1);
|
|
@@ -169,12 +194,12 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
169
194
|
};
|
|
170
195
|
|
|
171
196
|
var renderKefu = function renderKefu() {
|
|
172
|
-
if ((0, _openData.isPlatform)("feishu") || (0, _openData.isPlatform)("dd") || (0, _openData.isWxTrial)()) return;
|
|
197
|
+
if ((0, _openData.isPlatform)("feishu") || (0, _openData.isPlatform)("dd") || (0, _openData.isWxTrial)()) return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
173
198
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
199
|
className: "".concat(preCls, "__footer-item"),
|
|
175
200
|
onClick: handleCustomerService
|
|
176
201
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
177
|
-
src:
|
|
202
|
+
src: _kefu["default"],
|
|
178
203
|
alt: "\u8054\u7CFB\u5BA2\u670D"
|
|
179
204
|
}), "\u8054\u7CFB\u5BA2\u670D");
|
|
180
205
|
};
|
|
@@ -201,13 +226,13 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
201
226
|
className: "tu-icon-gengxin1"
|
|
202
227
|
}), "\u6362\u4E00\u6279")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
203
228
|
className: "".concat(preCls, "__body-item-content")
|
|
204
|
-
}, guessList.map(function (item
|
|
229
|
+
}, guessList.map(function (item) {
|
|
205
230
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
206
231
|
className: "".concat(preCls, "__body-item-content-item"),
|
|
207
232
|
onClick: function onClick() {
|
|
208
233
|
return handleSkip(item.questionUrl);
|
|
209
234
|
},
|
|
210
|
-
key:
|
|
235
|
+
key: item.questionUrl + item.questionName
|
|
211
236
|
}, item.questionName);
|
|
212
237
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
213
238
|
className: "".concat(preCls, "__body-item")
|
|
@@ -217,13 +242,13 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
217
242
|
className: "".concat(preCls, "__body-item-title-left")
|
|
218
243
|
}, "\u63A8\u8350\u67E5\u770B")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
219
244
|
className: "".concat(preCls, "__body-item-content")
|
|
220
|
-
}, recommendList.map(function (item
|
|
245
|
+
}, recommendList.map(function (item) {
|
|
221
246
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
222
247
|
className: "".concat(preCls, "__body-item-content-item"),
|
|
223
248
|
onClick: function onClick() {
|
|
224
249
|
return handleSkip(item.questionUrl);
|
|
225
250
|
},
|
|
226
|
-
key:
|
|
251
|
+
key: item.questionUrl + item.questionName
|
|
227
252
|
}, item.questionName);
|
|
228
253
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
254
|
className: "".concat(preCls, "__footer")
|
|
@@ -231,25 +256,25 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
231
256
|
className: "".concat(preCls, "__footer-item"),
|
|
232
257
|
onClick: handlePoint
|
|
233
258
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
234
|
-
src:
|
|
259
|
+
src: _yuyueyanshi["default"],
|
|
235
260
|
alt: "\u9884\u7EA6\u6F14\u793A"
|
|
236
261
|
}), "\u9884\u7EA6\u6F14\u793A"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
237
262
|
className: "".concat(preCls, "__footer-item"),
|
|
238
263
|
onClick: handleHelpCenter
|
|
239
264
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
240
|
-
src:
|
|
265
|
+
src: _helpzx["default"],
|
|
241
266
|
alt: "\u5E2E\u52A9\u4E2D\u5FC3"
|
|
242
267
|
}), "\u5E2E\u52A9\u4E2D\u5FC3"), !isTrial && /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
268
|
className: "".concat(preCls, "__footer-item"),
|
|
244
269
|
onClick: handleUpgrade
|
|
245
270
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
246
|
-
src:
|
|
271
|
+
src: _upgrade["default"],
|
|
247
272
|
alt: "\u5347\u7EA7\u901A\u77E5"
|
|
248
273
|
}), "\u5347\u7EA7\u901A\u77E5"), !(0, _openData.isPlatform)("feishu") && /*#__PURE__*/_react["default"].createElement("div", {
|
|
249
274
|
className: "".concat(preCls, "__footer-item"),
|
|
250
275
|
onClick: handleKnowledgeCommunity
|
|
251
276
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
252
|
-
src:
|
|
277
|
+
src: _okrShequ["default"],
|
|
253
278
|
alt: "\u77E5\u8BC6\u793E\u533A"
|
|
254
279
|
}), "\u77E5\u8BC6\u793E\u533A"), renderKefu()));
|
|
255
280
|
};
|
|
@@ -279,8 +304,10 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
279
304
|
className: (0, _classnames["default"])("home-fixed-kefu-image", {
|
|
280
305
|
"home-fixed-kefu-canceled": visible
|
|
281
306
|
})
|
|
282
|
-
})))),
|
|
283
|
-
|
|
307
|
+
})))), /*#__PURE__*/_react["default"].createElement(_bookDemo["default"].BookDemoPC, {
|
|
308
|
+
visible: false,
|
|
309
|
+
ref: bookDemoRef,
|
|
310
|
+
type: getBookDemoVersion()
|
|
284
311
|
}));
|
|
285
312
|
};
|
|
286
313
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.ETrialVersion = void 0;
|
|
7
|
+
var ETrialVersion;
|
|
8
|
+
exports.ETrialVersion = ETrialVersion;
|
|
9
|
+
|
|
10
|
+
(function (ETrialVersion) {
|
|
11
|
+
ETrialVersion[ETrialVersion["OKR"] = 9] = "OKR";
|
|
12
|
+
ETrialVersion[ETrialVersion["Performance"] = 8] = "Performance";
|
|
13
|
+
ETrialVersion[ETrialVersion["Pro"] = 6] = "Pro";
|
|
14
|
+
})(ETrialVersion || (exports.ETrialVersion = ETrialVersion = {}));
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
ETrialVersion: ETrialVersion
|
|
18
|
+
};
|
|
19
|
+
exports["default"] = _default;
|
|
@@ -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, [{
|
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, [{
|