@titaui/pc 1.9.145 → 1.9.148
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.css +25 -22
- package/lib/components/book-demo/components/pc/components/content/index.js +18 -12
- package/lib/components/book-demo/components/pc/index.js +13 -4
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +9 -3
- package/package.json +1 -1
|
@@ -44,39 +44,20 @@
|
|
|
44
44
|
padding-right: 22px;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.titaui-book-demo-pc-content__right-form-privacy {
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
grid-column-start: 1;
|
|
51
|
-
grid-column-end: 3;
|
|
52
|
-
font-size: 12px;
|
|
53
|
-
line-height: 18px;
|
|
54
|
-
padding-bottom: 20px;
|
|
55
|
-
position: relative;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.titaui-book-demo-pc-content__right-form-privacy-aggre {
|
|
59
|
-
margin-left: 4px;
|
|
60
|
-
color: #3f4755;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.titaui-book-demo-pc-content__right-form-privacy-link {
|
|
64
|
-
margin-left: 4px;
|
|
65
|
-
color: #2879ff;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
47
|
.titaui-book-demo-pc-content__right-commit {
|
|
69
48
|
height: 88px;
|
|
70
49
|
background: #ffffff;
|
|
71
50
|
border-radius: 0px 0px 24px 0px;
|
|
72
51
|
display: flex;
|
|
73
52
|
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
flex-direction: column;
|
|
74
55
|
position: absolute;
|
|
75
56
|
bottom: 0;
|
|
76
57
|
}
|
|
77
58
|
|
|
78
59
|
.titaui-book-demo-pc-content__right-commit-btn {
|
|
79
|
-
margin-top:
|
|
60
|
+
margin-top: 12px;
|
|
80
61
|
width: 310px;
|
|
81
62
|
height: 40px;
|
|
82
63
|
background: #2879ff;
|
|
@@ -111,3 +92,25 @@
|
|
|
111
92
|
bottom: 76px;
|
|
112
93
|
right: 44px;
|
|
113
94
|
}
|
|
95
|
+
|
|
96
|
+
.titaui-book-demo-pc-content__privacy {
|
|
97
|
+
margin-top: 12px;
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
grid-column-start: 1;
|
|
101
|
+
grid-column-end: 3;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 18px;
|
|
104
|
+
padding-bottom: 8px;
|
|
105
|
+
position: relative;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.titaui-book-demo-pc-content__privacy-aggre {
|
|
109
|
+
margin-left: 4px;
|
|
110
|
+
color: #3f4755;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.titaui-book-demo-pc-content__privacy-link {
|
|
114
|
+
margin-left: 4px;
|
|
115
|
+
color: #2879ff;
|
|
116
|
+
}
|
|
@@ -336,17 +336,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
336
336
|
ref: formRef
|
|
337
337
|
}, data.formField.map(function (item) {
|
|
338
338
|
return renderItem(item);
|
|
339
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
340
|
-
className: "".concat(preCls, "__right-form-privacy")
|
|
341
|
-
}, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
342
|
-
onChange: handleChangeAggrePrivacyValue
|
|
343
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
344
|
-
className: "".concat(preCls, "__right-form-privacy-aggre")
|
|
345
|
-
}, "\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F "), /*#__PURE__*/_react["default"].createElement("a", {
|
|
346
|
-
href: "/Account/Register/ServiceTreaty?tenantId=0&isvId=10000",
|
|
347
|
-
target: "_blank",
|
|
348
|
-
className: "".concat(preCls, "__right-form-privacy-link")
|
|
349
|
-
}, "\u670D\u52A1\u53CA\u9690\u79C1\u6761\u6B3E")))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
339
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
340
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__right-commit--shadow"), isFormOverflow))
|
|
351
341
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
352
342
|
className: (0, _classnames["default"])("".concat(preCls, "__right-commit"))
|
|
@@ -356,7 +346,23 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
356
346
|
onClick: handleCommit
|
|
357
347
|
}, "\u63D0\u4EA4", /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
358
348
|
condition: isLoading
|
|
359
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u4E2D\u3002\u3002\u3002")))
|
|
349
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u4E2D\u3002\u3002\u3002"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
|
+
className: "".concat(preCls, "__privacy")
|
|
351
|
+
}, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
352
|
+
onChange: handleChangeAggrePrivacyValue
|
|
353
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
354
|
+
className: "".concat(preCls, "__privacy-aggre")
|
|
355
|
+
}, "\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F "), /*#__PURE__*/_react["default"].createElement("a", {
|
|
356
|
+
href: "https://okr.tita.com/#/privacy",
|
|
357
|
+
target: "_blank",
|
|
358
|
+
className: "".concat(preCls, "__privacy-link"),
|
|
359
|
+
rel: "noreferrer"
|
|
360
|
+
}, "\u300A\u9690\u79C1\u653F\u7B56\u300B"), "\u548C", /*#__PURE__*/_react["default"].createElement("a", {
|
|
361
|
+
target: "_blank",
|
|
362
|
+
className: "".concat(preCls, "__privacy-link"),
|
|
363
|
+
href: "https://okr.tita.com/#/userAgreement",
|
|
364
|
+
rel: "noreferrer"
|
|
365
|
+
}, "\u300A\u7528\u6237\u670D\u52A1\u534F\u8BAE\u300B")))));
|
|
360
366
|
};
|
|
361
367
|
|
|
362
368
|
BookDemoPCContent.defaultProps = {
|
|
@@ -73,10 +73,11 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
73
73
|
});
|
|
74
74
|
content += "source: ".concat(source || Source);
|
|
75
75
|
|
|
76
|
-
if (window.titaTracker) {
|
|
76
|
+
if (window.titaTracker && !localStorage.getItem("titaccc")) {
|
|
77
77
|
window.titaTracker("action").record({
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
productName: "预约演示",
|
|
79
|
+
actionGroup: "取消预约演示",
|
|
80
|
+
actionName: "\u53D6\u6D88\u9884\u7EA6\u6F14\u793A:\u586B\u5199\u60C5\u51B5\uFF1A".concat(content)
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -87,6 +88,14 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
87
88
|
}
|
|
88
89
|
};
|
|
89
90
|
|
|
91
|
+
var handleSuccessCloseBookDemo = function handleSuccessCloseBookDemo() {
|
|
92
|
+
setDialogVisible(false);
|
|
93
|
+
|
|
94
|
+
if (visibleChange) {
|
|
95
|
+
visibleChange(false);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
90
99
|
var handleChangeData = function handleChangeData(result) {
|
|
91
100
|
setData(result);
|
|
92
101
|
};
|
|
@@ -153,7 +162,7 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
153
162
|
onChange: handleChangeData,
|
|
154
163
|
source: source,
|
|
155
164
|
type: type,
|
|
156
|
-
onSubmitSuccess:
|
|
165
|
+
onSubmitSuccess: handleSuccessCloseBookDemo
|
|
157
166
|
}));
|
|
158
167
|
});
|
|
159
168
|
BookDemoPC.defaultProps = {
|
|
@@ -95,11 +95,11 @@ var DemoMenus = function DemoMenus(props) {
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
(0, _react.useEffect)(function () {
|
|
98
|
-
var menuHighlight = new _menuHighlight["default"](history);
|
|
98
|
+
var menuHighlight = new _menuHighlight["default"](history, isManager);
|
|
99
99
|
menuHighlight.highlight(function (menu) {
|
|
100
100
|
return setSelectedMenuKeys([menu]);
|
|
101
101
|
});
|
|
102
|
-
}, [history.location.pathname, history.location.search]);
|
|
102
|
+
}, [history.location.pathname, history.location.search, isManager]);
|
|
103
103
|
|
|
104
104
|
var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
|
|
105
105
|
var node = _ref.node;
|
|
@@ -14,11 +14,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
15
|
|
|
16
16
|
var _default = /*#__PURE__*/function () {
|
|
17
|
-
function _default(history) {
|
|
17
|
+
function _default(history, isManager) {
|
|
18
18
|
_classCallCheck(this, _default);
|
|
19
19
|
|
|
20
20
|
this.history = null;
|
|
21
21
|
this.history = history;
|
|
22
|
+
this.isManager = isManager;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
_createClass(_default, [{
|
|
@@ -32,7 +33,12 @@ var _default = /*#__PURE__*/function () {
|
|
|
32
33
|
var _this$history$locatio = this.history.location,
|
|
33
34
|
pathname = _this$history$locatio.pathname,
|
|
34
35
|
search = _this$history$locatio.search;
|
|
35
|
-
|
|
36
|
+
|
|
37
|
+
if (this.isManager === 1) {
|
|
38
|
+
return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?unassigned/);
|
|
36
42
|
}
|
|
37
43
|
}, {
|
|
38
44
|
key: "isAssigned",
|
|
@@ -40,7 +46,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
40
46
|
var _this$history$locatio2 = this.history.location,
|
|
41
47
|
pathname = _this$history$locatio2.pathname,
|
|
42
48
|
search = _this$history$locatio2.search;
|
|
43
|
-
return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?assigned/);
|
|
49
|
+
return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?assigned/));
|
|
44
50
|
}
|
|
45
51
|
}, {
|
|
46
52
|
key: "isReserved",
|