@titaui/pc 1.9.107 → 1.9.111
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/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/content/index.css +112 -0
- package/lib/components/book-demo/components/pc/components/content/index.js +300 -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 +52 -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 +22 -0
- package/lib/components/book-demo/components/pc/index.js +135 -0
- package/lib/components/book-demo/constant.js +794 -0
- package/lib/components/book-demo/img/demo-close.svg +16 -0
- package/lib/components/book-demo/img/demo-learning.jpg +0 -0
- package/lib/components/book-demo/img/demo-okr.jpg +0 -0
- package/lib/components/book-demo/img/demo-performance.jpg +0 -0
- package/lib/components/book-demo/img/demo-universal.jpg +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 +32 -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/drop-selector/index.css +1 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +12 -6
- package/lib/components/dynamic/dynamic-item/index.js +7 -6
- package/lib/components/dynamic/dynamic-list/index.js +10 -6
- 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/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/nav-top/components/menu/index.css +1 -85
- 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/index.js +8 -0
- package/lib/pages/aha2021/index.js +30 -3
- package/lib/utils/bs-global.js +1 -0
- package/lib/utils/helpers.js +1 -0
- package/package.json +1 -3
|
@@ -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/index.js
CHANGED
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "Avatar", {
|
|
|
15
15
|
return _avatar["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "BookDemo", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _bookDemo["default"];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "Button", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function get() {
|
|
@@ -718,4 +724,6 @@ var _weeklyReport = _interopRequireDefault(require("./components/weekly-report")
|
|
|
718
724
|
|
|
719
725
|
var _uploadPhotoModal = _interopRequireDefault(require("./components/upload-photo-modal"));
|
|
720
726
|
|
|
727
|
+
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
728
|
+
|
|
721
729
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -21,6 +21,8 @@ var _invitePeople = _interopRequireDefault(require("../../components/invite-peop
|
|
|
21
21
|
|
|
22
22
|
var _helpCard = _interopRequireDefault(require("../../components/help-card"));
|
|
23
23
|
|
|
24
|
+
var _bookDemo = _interopRequireDefault(require("../../components/book-demo"));
|
|
25
|
+
|
|
24
26
|
var _platform = require("../../utils/platform");
|
|
25
27
|
|
|
26
28
|
require("./index.css");
|
|
@@ -31,13 +33,18 @@ var _hrHeader = _interopRequireDefault(require("../../components/hr-header"));
|
|
|
31
33
|
|
|
32
34
|
var _hrMessage = _interopRequireDefault(require("../../components/nav-top/components/user-message/hrMessage"));
|
|
33
35
|
|
|
36
|
+
var _interface = require("../../components/help-card/interface");
|
|
37
|
+
|
|
38
|
+
var _errorBoundary = _interopRequireDefault(require("../../components/error-boundary"));
|
|
39
|
+
|
|
40
|
+
var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
|
|
41
|
+
|
|
34
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
43
|
|
|
36
44
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
45
|
|
|
38
46
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
47
|
|
|
40
|
-
// import PointDemo from "../../components/point-demo/point-demo";
|
|
41
48
|
var preCls = "titaui-aha-2021";
|
|
42
49
|
|
|
43
50
|
function ContentTemplate(props) {
|
|
@@ -76,7 +83,23 @@ function PageLayout(props) {
|
|
|
76
83
|
// };
|
|
77
84
|
|
|
78
85
|
|
|
79
|
-
|
|
86
|
+
var getBookDemoVersion = function getBookDemoVersion() {
|
|
87
|
+
var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
|
|
88
|
+
|
|
89
|
+
if (menuVersion === _interface.ETrialVersion.OKR) {
|
|
90
|
+
return _bookDemo["default"].DemoType.TryOKR;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (menuVersion === _interface.ETrialVersion.Performance) {
|
|
94
|
+
return _bookDemo["default"].DemoType.TryPerformance;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return _bookDemo["default"].DemoType.UniversalBookDemo;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
return /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
101
|
+
errorLevel: _errorLevel["default"].P0
|
|
102
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
103
|
className: (0, _classnames["default"])(preCls)
|
|
81
104
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
105
|
className: (0, _classnames["default"])("".concat(preCls, "__header"))
|
|
@@ -100,7 +123,11 @@ function PageLayout(props) {
|
|
|
100
123
|
onClick: onClickKefu
|
|
101
124
|
})), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
125
|
className: "".concat(preCls, "__invite")
|
|
103
|
-
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null)
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null), /*#__PURE__*/_react["default"].createElement(_bookDemo["default"].BookDemoPC, {
|
|
127
|
+
autoShow: true,
|
|
128
|
+
visible: false,
|
|
129
|
+
type: getBookDemoVersion()
|
|
130
|
+
})));
|
|
104
131
|
}
|
|
105
132
|
|
|
106
133
|
var Aha2021Page = {
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.111",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -111,12 +111,10 @@
|
|
|
111
111
|
"rc-trigger": "^5.2.3",
|
|
112
112
|
"rc-upload": "^4.2.0-alpha.0",
|
|
113
113
|
"rc-util": "^5.13.1",
|
|
114
|
-
"react": "^17.0.2",
|
|
115
114
|
"react-collapse": "^5.1.0",
|
|
116
115
|
"react-content-loader": "^6.0.3",
|
|
117
116
|
"react-cropper": "^2.1.8",
|
|
118
117
|
"react-custom-scrollbars": "^4.2.1",
|
|
119
|
-
"react-dom": "^17.0.2",
|
|
120
118
|
"react-grid-layout": "^1.2.5",
|
|
121
119
|
"react-perfect-scrollbar": "^1.5.8",
|
|
122
120
|
"react-sizeme": "^3.0.1",
|