@titaui/pc 1.6.25 → 1.6.29
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/drawer/index.js +1 -1
- package/lib/components/dynamic/constant.js +30 -30
- package/lib/components/dynamic/dynamic-item/components/header/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +5 -7
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-liking/index.css +1 -0
- package/lib/components/dynamic/dynamic-list/index.js +2 -2
- package/lib/components/dynamic/dynamic-topping/index.css +1 -0
- package/lib/components/dynamic/dynamic.css +2 -2
- package/lib/components/dynamic/dynamic.js +3 -4
- package/lib/components/dynamic/new-ui.css +3 -3
- package/lib/components/help-card/index.css +3 -1
- package/lib/components/help-card/index.js +23 -8
- package/lib/components/help-card/request-api.js +2 -1
- package/lib/components/invite-people/index.css +3 -3
- package/lib/components/menus/components/flip-menu-card/index.css +39 -0
- package/lib/components/menus/components/flip-menu-card/index.js +31 -11
- package/lib/components/menus/components/menu-card/index.css +0 -18
- package/lib/components/menus/components/menu-card/index.js +6 -19
- package/lib/components/menus/components/menu-close-btn/index.js +2 -1
- package/lib/components/menus/components/menu-tree/index.css +2 -0
- package/lib/components/menus/components/menu-tree/index.js +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +3 -3
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +35 -8
- package/lib/components/menus/export-modules/{depart-menus → okr-menus/depart-menus}/helper.js +0 -0
- package/lib/components/menus/export-modules/{depart-menus → okr-menus/depart-menus}/index.css +0 -0
- package/lib/components/menus/export-modules/{depart-menus → okr-menus/depart-menus}/index.js +16 -27
- package/lib/components/menus/export-modules/okr-menus/index.js +38 -25
- package/lib/components/menus/export-modules/{subordinate-menus → okr-menus/subordinate-menus}/helper.js +0 -0
- package/lib/components/menus/export-modules/{subordinate-menus → okr-menus/subordinate-menus}/index.js +7 -16
- package/lib/components/menus/index.js +2 -6
- package/lib/components/menus/request-apis.js +2 -3
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.js +2 -2
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +90 -16
- package/lib/components/nav-top/components/user-message/components/remind/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +2 -1
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/tab-title/index.css +1 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +1 -1
- package/lib/components/nav-top/components/user-message/constant.js +25 -2
- package/lib/components/nav-top/components/user-message/index.js +4 -4
- package/lib/components/nav-top/components/user-message/utils.js +9 -3
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.css +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +1 -0
- package/lib/components/okrcase-library/new-ui.css +5 -2
- package/lib/components/photo-card/components/card/index.js +1 -1
- package/lib/components/photo-card/index.css +6 -0
- package/lib/components/photo-card/index.js +14 -9
- package/lib/components/scrollbar/index.css +3 -0
- package/lib/components/scrollbar/index.js +29 -0
- package/lib/components/scrollbar/simplebar/helpers.js +59 -0
- package/lib/components/scrollbar/simplebar/index.js +89 -0
- package/lib/components/scrollbar/simplebar/scrollbar-width.js +45 -0
- package/lib/components/scrollbar/simplebar/simplebar.js +852 -0
- package/lib/components/scrollbar/simplebar-react.js +163 -0
- package/lib/pages/aha2021/index.css +2 -2
- package/lib/pages/aha2021/index.js +5 -21
- package/lib/pages/like-ranking/index.js +6 -2
- package/lib/pages/like-ranking/new-ui.css +202 -0
- package/lib/pages/new-okr-list/header/comments.js +9 -2
- package/lib/pages/new-okr-list/header/create-okr.js +5 -0
- package/lib/pages/new-okr-list/header/filter.js +9 -3
- package/lib/pages/new-okr-list/header/index.css +8 -2
- package/lib/pages/new-okr-list/header/index.js +9 -1
- package/lib/pages/new-okr-list/index.js +49 -3
- package/lib/pages/new-okr-list/list/index.js +1 -2
- package/lib/pages/personal-info/components/base-info/index.css +5 -0
- package/lib/pages/personal-info/components/base-info/index.js +3 -1
- package/lib/pages/personal-info/index.css +1 -0
- package/package.json +1 -1
- package/lib/components/dynamic/components/condition-render/index.js +0 -20
|
@@ -156,7 +156,7 @@ function DrawerHeader(_ref) {
|
|
|
156
156
|
icon: "tu-icon-10",
|
|
157
157
|
children: collapsedActions
|
|
158
158
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
-
className: "titaui-drawer-header-close tu-icon-
|
|
159
|
+
className: "titaui-drawer-header-close tu-icon-canceled",
|
|
160
160
|
onClick: function onClick() {
|
|
161
161
|
drawer && drawer.close();
|
|
162
162
|
}
|
|
@@ -10,19 +10,19 @@ var _ObjTypeMapText;
|
|
|
10
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
|
|
12
12
|
var OkrRiskMapping = {
|
|
13
|
-
0:
|
|
13
|
+
0: "normal",
|
|
14
14
|
// 正常推进
|
|
15
|
-
1:
|
|
15
|
+
1: "normal",
|
|
16
16
|
// 正常推进
|
|
17
|
-
2:
|
|
17
|
+
2: "risk",
|
|
18
18
|
// 注意风险
|
|
19
|
-
3:
|
|
19
|
+
3: "delay",
|
|
20
20
|
// 已有风险
|
|
21
|
-
4:
|
|
21
|
+
4: "end",
|
|
22
22
|
// kr及o全都完成
|
|
23
|
-
5:
|
|
23
|
+
5: "delay",
|
|
24
24
|
// 延期完成
|
|
25
|
-
6:
|
|
25
|
+
6: "normal" // 正常推进
|
|
26
26
|
|
|
27
27
|
};
|
|
28
28
|
exports.OkrRiskMapping = OkrRiskMapping;
|
|
@@ -66,33 +66,33 @@ exports.EObjType = EObjType;
|
|
|
66
66
|
EObjType[EObjType["KanBan"] = 66] = "KanBan";
|
|
67
67
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
68
68
|
|
|
69
|
-
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project,
|
|
69
|
+
var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, "项目"), _defineProperty(_ObjTypeMapText, EObjType.Task, "任务"), _defineProperty(_ObjTypeMapText, EObjType.O, "目标"), _defineProperty(_ObjTypeMapText, EObjType.Kr, "关键成果"), _defineProperty(_ObjTypeMapText, EObjType.MileStone, "里程碑"), _defineProperty(_ObjTypeMapText, EObjType.KanBan, "看板"), _ObjTypeMapText);
|
|
70
70
|
exports.ObjTypeMapText = ObjTypeMapText;
|
|
71
71
|
var ObjectType = {
|
|
72
|
-
1:
|
|
73
|
-
4:
|
|
74
|
-
5:
|
|
75
|
-
6:
|
|
76
|
-
7:
|
|
77
|
-
8:
|
|
78
|
-
10:
|
|
79
|
-
11:
|
|
80
|
-
12:
|
|
81
|
-
62:
|
|
82
|
-
65:
|
|
83
|
-
70:
|
|
84
|
-
79:
|
|
85
|
-
80:
|
|
86
|
-
42:
|
|
72
|
+
1: "公告/分享",
|
|
73
|
+
4: "项目",
|
|
74
|
+
5: "绩效考核表",
|
|
75
|
+
6: "绩效目标",
|
|
76
|
+
7: "任务",
|
|
77
|
+
8: "日报(总结)",
|
|
78
|
+
10: "Feed",
|
|
79
|
+
11: "计划",
|
|
80
|
+
12: "计划表的操作记录",
|
|
81
|
+
62: "目标",
|
|
82
|
+
65: "关键成果",
|
|
83
|
+
70: "复盘",
|
|
84
|
+
79: "关键成果进展",
|
|
85
|
+
80: "公告",
|
|
86
|
+
42: "打赏"
|
|
87
87
|
};
|
|
88
88
|
exports.ObjectType = ObjectType;
|
|
89
89
|
var EStatusStatus2ClassType = {
|
|
90
|
-
2:
|
|
91
|
-
1:
|
|
92
|
-
4:
|
|
93
|
-
3:
|
|
94
|
-
6:
|
|
95
|
-
0:
|
|
96
|
-
5:
|
|
90
|
+
2: "tu-icon-finished",
|
|
91
|
+
1: "tu-icon-running",
|
|
92
|
+
4: "tu-icon-canceled",
|
|
93
|
+
3: "tu-icon-deferred",
|
|
94
|
+
6: "tu-icon-paused",
|
|
95
|
+
0: "tu-icon-notstart",
|
|
96
|
+
5: "tu-icon-jiantou-right"
|
|
97
97
|
};
|
|
98
98
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -23,7 +23,7 @@ var _popDownNotification = require("../../../../pop-down-notification");
|
|
|
23
23
|
|
|
24
24
|
var _openData = require("../../../../../utils/open-data");
|
|
25
25
|
|
|
26
|
-
var _conditionRender = _interopRequireDefault(require("
|
|
26
|
+
var _conditionRender = _interopRequireDefault(require("../../../../condition-render"));
|
|
27
27
|
|
|
28
28
|
var _tooltip = require("../../../../tooltip");
|
|
29
29
|
|
|
@@ -21,7 +21,7 @@ var _constant = require("../../constant");
|
|
|
21
21
|
|
|
22
22
|
var _dynamicRelative = _interopRequireDefault(require("./img/dynamic-relative.svg"));
|
|
23
23
|
|
|
24
|
-
var _conditionRender = _interopRequireDefault(require("
|
|
24
|
+
var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
|
|
25
25
|
|
|
26
26
|
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
27
27
|
|
|
@@ -41,8 +41,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
44
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
|
-
|
|
46
44
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
45
|
|
|
48
46
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -52,8 +50,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
52
50
|
var prefix = "titaui-dynamic-relative-item";
|
|
53
51
|
|
|
54
52
|
var DynamicRelative = function DynamicRelative(_ref) {
|
|
55
|
-
var _classNames;
|
|
56
|
-
|
|
57
53
|
var data = _ref.data,
|
|
58
54
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
55
|
|
|
@@ -64,7 +60,6 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
64
60
|
relateObjName = data.relateObjName,
|
|
65
61
|
relateObjId = data.relateObjId,
|
|
66
62
|
objCycleName = data.objCycleName,
|
|
67
|
-
status = data.status,
|
|
68
63
|
objPrincipalUser = data.objPrincipalUser,
|
|
69
64
|
rObjprincipalUser = data.rObjprincipalUser,
|
|
70
65
|
rObjCycleName = data.rObjCycleName,
|
|
@@ -167,7 +162,10 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
167
162
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
163
|
className: prefix + "__obj-base-info"
|
|
169
164
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
170
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon",
|
|
165
|
+
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", {
|
|
166
|
+
"tu-icon-renwu-s": objType === _constant.EObjType.Task,
|
|
167
|
+
"tu-icon-project-s": objType === _constant.EObjType.Project
|
|
168
|
+
})
|
|
171
169
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
170
|
className: prefix + "__obj-title",
|
|
173
171
|
onClick: function onClick() {
|
|
@@ -53,7 +53,7 @@ var _avatar = require("../../avatar");
|
|
|
53
53
|
|
|
54
54
|
var _context = require("../context");
|
|
55
55
|
|
|
56
|
-
var _conditionRender = _interopRequireDefault(require("
|
|
56
|
+
var _conditionRender = _interopRequireDefault(require("../../condition-render"));
|
|
57
57
|
|
|
58
58
|
var _auth = require("../../../utils/auth");
|
|
59
59
|
|
|
@@ -13,7 +13,7 @@ var _dynamicItem = _interopRequireDefault(require("../dynamic-item"));
|
|
|
13
13
|
|
|
14
14
|
var _dynamicEmpty = _interopRequireDefault(require("../img/dynamic-empty.png"));
|
|
15
15
|
|
|
16
|
-
var _conditionRender = _interopRequireDefault(require("
|
|
16
|
+
var _conditionRender = _interopRequireDefault(require("../../condition-render"));
|
|
17
17
|
|
|
18
18
|
require("./index.css");
|
|
19
19
|
|
|
@@ -49,7 +49,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
49
49
|
}, "\u6682\u65E0\u52A8\u6001\u4FE1\u606F"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
50
50
|
condition: data.length !== 0
|
|
51
51
|
}, /*#__PURE__*/_react["default"].createElement(_rcQueueAnim["default"], {
|
|
52
|
-
type:
|
|
52
|
+
type: "bottom",
|
|
53
53
|
delay: 0,
|
|
54
54
|
duration: 500
|
|
55
55
|
}, data.map(function (item, index) {
|
|
@@ -188,8 +188,8 @@
|
|
|
188
188
|
display: flex;
|
|
189
189
|
align-items: center;
|
|
190
190
|
justify-content: center;
|
|
191
|
-
width:
|
|
192
|
-
height:
|
|
191
|
+
width: 42px;
|
|
192
|
+
height: 42px;
|
|
193
193
|
background: rgba(255, 255, 255, 0.86);
|
|
194
194
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
195
195
|
border-radius: 50%;
|
|
@@ -29,7 +29,7 @@ var _dynamicLiking = _interopRequireDefault(require("./dynamic-liking"));
|
|
|
29
29
|
|
|
30
30
|
var _dynamicLoading = _interopRequireDefault(require("./img/dynamic-loading.gif"));
|
|
31
31
|
|
|
32
|
-
var _conditionRender = _interopRequireDefault(require("
|
|
32
|
+
var _conditionRender = _interopRequireDefault(require("../condition-render"));
|
|
33
33
|
|
|
34
34
|
var _util = require("./util");
|
|
35
35
|
|
|
@@ -252,9 +252,8 @@ var Dynamic = function Dynamic() {
|
|
|
252
252
|
contentRef.current.scrollTo({
|
|
253
253
|
top: 0,
|
|
254
254
|
left: 0,
|
|
255
|
-
behavior:
|
|
255
|
+
behavior: "smooth"
|
|
256
256
|
});
|
|
257
|
-
;
|
|
258
257
|
}, []);
|
|
259
258
|
|
|
260
259
|
var resetValue = function resetValue() {
|
|
@@ -284,7 +283,7 @@ var Dynamic = function Dynamic() {
|
|
|
284
283
|
setActiveFirstLevelTabKey(data[0].CodeId);
|
|
285
284
|
}
|
|
286
285
|
|
|
287
|
-
var nowSecondLevelTabExist = localSecondLevelTabKey && nowFirstLevelLocalMenu.ChildMenus.find(function (item) {
|
|
286
|
+
var nowSecondLevelTabExist = localSecondLevelTabKey && nowFirstLevelLocalMenu && nowFirstLevelLocalMenu.ChildMenus.find(function (item) {
|
|
288
287
|
return item.CodeId === Number(localSecondLevelTabKey);
|
|
289
288
|
});
|
|
290
289
|
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
flex: 1;
|
|
74
74
|
overflow: auto;
|
|
75
75
|
overflow: overlay;
|
|
76
|
-
padding:
|
|
76
|
+
padding: 78px 0 0 0;
|
|
77
77
|
box-sizing: border-box;
|
|
78
78
|
background: #f0f4fa;
|
|
79
79
|
}
|
|
@@ -192,8 +192,8 @@
|
|
|
192
192
|
display: flex;
|
|
193
193
|
align-items: center;
|
|
194
194
|
justify-content: center;
|
|
195
|
-
width:
|
|
196
|
-
height:
|
|
195
|
+
width: 42px;
|
|
196
|
+
height: 42px;
|
|
197
197
|
background: rgba(255, 255, 255, 0.86);
|
|
198
198
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
199
199
|
border-radius: 50%;
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.help-card__header-avatar {
|
|
52
|
+
box-sizing: border-box;
|
|
52
53
|
width: 36px;
|
|
53
54
|
height: 36px;
|
|
54
55
|
background: url("./image/kefu-logo.png");
|
|
55
|
-
background-size:
|
|
56
|
+
background-size: 34px;
|
|
56
57
|
border: 1px solid #FFFFFF;
|
|
57
58
|
margin-right: 12px;
|
|
58
59
|
border-radius: 50%;
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
font-weight: 400;
|
|
112
113
|
color: #89919F;
|
|
113
114
|
line-height: 22px;
|
|
115
|
+
user-select: none;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
.help-card__body-item-title-right:hover {
|
|
@@ -55,7 +55,7 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
55
55
|
visible = _useState2[0],
|
|
56
56
|
setVisible = _useState2[1];
|
|
57
57
|
|
|
58
|
-
var _useState3 = (0, _react.useState)(
|
|
58
|
+
var _useState3 = (0, _react.useState)(1),
|
|
59
59
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
60
|
pageNum = _useState4[0],
|
|
61
61
|
setPageNum = _useState4[1];
|
|
@@ -75,6 +75,11 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
75
75
|
recommendList = _useState10[0],
|
|
76
76
|
setRecommendList = _useState10[1];
|
|
77
77
|
|
|
78
|
+
var _useState11 = (0, _react.useState)(0),
|
|
79
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
80
|
+
guessQuestionNum = _useState12[0],
|
|
81
|
+
setGuessQuestionNum = _useState12[1];
|
|
82
|
+
|
|
78
83
|
var isTrial = (0, _bsGlobal.getVersion)() == 1;
|
|
79
84
|
var userId = window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0;
|
|
80
85
|
var kefuUrl = isTrial ? "https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true" : "https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true";
|
|
@@ -85,15 +90,21 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
85
90
|
};
|
|
86
91
|
|
|
87
92
|
(0, _react.useEffect)(function () {
|
|
93
|
+
if (!visible) return;
|
|
88
94
|
(0, _requestApi.getQuestionList)(pageNum).then(function (res) {
|
|
89
95
|
var _res$Data$questions = res.Data.questions,
|
|
90
96
|
recommendQuestion = _res$Data$questions.recommendQuestion,
|
|
91
97
|
guessQuestion = _res$Data$questions.guessQuestion;
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
var num = res.Data.questionTypeCount.guessQuestion;
|
|
99
|
+
setGuessQuestionNum(num);
|
|
100
|
+
|
|
101
|
+
if (recommendQuestion.length > 0) {
|
|
102
|
+
setRecommendList(recommendQuestion || []);
|
|
103
|
+
}
|
|
104
|
+
|
|
94
105
|
setGuessList(guessQuestion || []);
|
|
95
106
|
});
|
|
96
|
-
}, [pageNum]);
|
|
107
|
+
}, [pageNum, visible]);
|
|
97
108
|
|
|
98
109
|
var handlePoint = function handlePoint() {
|
|
99
110
|
setVisible(false);
|
|
@@ -128,7 +139,11 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
128
139
|
};
|
|
129
140
|
|
|
130
141
|
var chageBatch = function chageBatch() {
|
|
131
|
-
|
|
142
|
+
if (guessQuestionNum > pageNum * 3) {
|
|
143
|
+
setPageNum(pageNum + 1);
|
|
144
|
+
} else {
|
|
145
|
+
setPageNum(1);
|
|
146
|
+
}
|
|
132
147
|
};
|
|
133
148
|
|
|
134
149
|
var popupContent = function popupContent() {
|
|
@@ -147,10 +162,10 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
147
162
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
163
|
className: "".concat(preCls, "__body-item-title-left")
|
|
149
164
|
}, "\u731C\u4F60\u60F3\u95EE"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
-
className: "".concat(preCls, "__body-item-title-right")
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
|
-
className: "tu-icon-gengxin1",
|
|
165
|
+
className: "".concat(preCls, "__body-item-title-right"),
|
|
153
166
|
onClick: chageBatch
|
|
167
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
168
|
+
className: "tu-icon-gengxin1"
|
|
154
169
|
}), "\u6362\u4E00\u6279")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
170
|
className: "".concat(preCls, "__body-item-content")
|
|
156
171
|
}, guessList.map(function (item, key) {
|
|
@@ -21,12 +21,13 @@ var requestDomain = function requestDomain() {
|
|
|
21
21
|
|
|
22
22
|
var getQuestionList = function getQuestionList(pageNum) {
|
|
23
23
|
var source = (0, _bsGlobal.getSource)();
|
|
24
|
+
var version = (0, _bsGlobal.getVersion)();
|
|
24
25
|
|
|
25
26
|
if (source !== 860 || source !== 861 || source !== 862) {
|
|
26
27
|
source = 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/const/question?source=").concat(source, "&pageSize=", 3, "&pageNum=").concat(pageNum)).then(function (res) {
|
|
30
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/const/question?source=").concat(source, "&pageSize=", 3, "&pageNum=").concat(pageNum, "&version=").concat(version)).then(function (res) {
|
|
30
31
|
return res.data;
|
|
31
32
|
});
|
|
32
33
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.titaui-invite-people {
|
|
2
|
-
width:
|
|
3
|
-
height:
|
|
2
|
+
width: 42px;
|
|
3
|
+
height: 42px;
|
|
4
4
|
background: url("./img/invite-people.png") no-repeat;
|
|
5
|
-
background-size:
|
|
5
|
+
background-size: 42px;
|
|
6
6
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
border-radius: 50%;
|
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
|
|
7
7
|
will-change: opacity;
|
|
8
8
|
opacity: 1;
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titaui-flip-card__top-right-hide-icon {
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: -14px;
|
|
15
|
+
top: 6px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-flip-card__top-right-hide-icon--none {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-flip-card:hover .titaui-flip-card__top-right-hide-icon {
|
|
23
|
+
opacity: 1;
|
|
9
24
|
}
|
|
10
25
|
|
|
11
26
|
.titaui-flip-card__fixed-hide-icon {
|
|
@@ -64,12 +79,36 @@
|
|
|
64
79
|
z-index: 1;
|
|
65
80
|
}
|
|
66
81
|
|
|
82
|
+
.titaui-flip-card__inner-front-content {
|
|
83
|
+
border-radius: 12px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.titaui-flip-card__inner-front-content--is-float {
|
|
87
|
+
box-shadow: 0 1px 10px #cccccc66;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.titaui-flip-card__inner-front-content--is-float-hide {
|
|
91
|
+
box-shadow: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
67
94
|
.titaui-flip-card__inner-back {
|
|
68
95
|
display: none;
|
|
69
96
|
transform: rotateY(180deg);
|
|
70
97
|
z-index: 10;
|
|
71
98
|
}
|
|
72
99
|
|
|
100
|
+
.titaui-flip-card__inner-back-content {
|
|
101
|
+
border-radius: 12px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.titaui-flip-card__inner-back-content--is-float {
|
|
105
|
+
box-shadow: 0 1px 10px #cccccc66;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.titaui-flip-card__inner-back-content--is-float-hide {
|
|
109
|
+
box-shadow: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
73
112
|
.titaui-flip-card__inner-back-action {
|
|
74
113
|
position: absolute;
|
|
75
114
|
display: flex;
|
|
@@ -46,7 +46,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
46
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
|
|
48
48
|
var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
49
|
-
var _classNames;
|
|
49
|
+
var _classNames, _classNames2, _classNames3;
|
|
50
50
|
|
|
51
51
|
var children = props.children,
|
|
52
52
|
defaultWidth = props.defaultWidth,
|
|
@@ -67,31 +67,49 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
67
67
|
isFloatHide = _useState6[0],
|
|
68
68
|
setIsFloatHide = _useState6[1];
|
|
69
69
|
|
|
70
|
+
var _useState7 = (0, _react.useState)(false),
|
|
71
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
72
|
+
isHideTopRightIcon = _useState8[0],
|
|
73
|
+
setIsHideTopRightIcon = _useState8[1];
|
|
74
|
+
|
|
70
75
|
var hideFloatRef = (0, _react.useRef)();
|
|
71
76
|
var flipCardRef = (0, _react.useRef)();
|
|
72
77
|
var flipFrontRef = (0, _react.useRef)();
|
|
73
78
|
var flipBackRef = (0, _react.useRef)();
|
|
74
79
|
|
|
75
80
|
var goBackHandler = function goBackHandler() {
|
|
81
|
+
setMenuHideIcon(true);
|
|
76
82
|
flipBackRef.current.style.position = 'absolute';
|
|
77
83
|
flipFrontRef.current.style.display = 'block';
|
|
78
84
|
setTimeout(function () {
|
|
79
85
|
flipFrontRef.current.style.position = 'relative';
|
|
80
86
|
flipBackRef.current.style.display = 'none';
|
|
87
|
+
setMenuHideIcon(false);
|
|
81
88
|
}, 600);
|
|
82
89
|
setIsBack(false);
|
|
83
90
|
};
|
|
84
91
|
|
|
85
92
|
var nextHandler = function nextHandler() {
|
|
93
|
+
setMenuHideIcon(true);
|
|
86
94
|
flipFrontRef.current.style.position = 'absolute';
|
|
87
95
|
flipBackRef.current.style.display = 'block';
|
|
88
96
|
setTimeout(function () {
|
|
89
97
|
flipBackRef.current.style.position = 'relative';
|
|
90
98
|
flipFrontRef.current.style.display = 'none';
|
|
99
|
+
setMenuHideIcon(false);
|
|
91
100
|
}, 600);
|
|
92
101
|
setIsBack(true);
|
|
93
102
|
};
|
|
94
103
|
|
|
104
|
+
var setMenuHideIcon = function setMenuHideIcon(isHide) {
|
|
105
|
+
if (isHide === false && isFloat) return; // 如果是浮动状态则不能显示隐藏按钮
|
|
106
|
+
|
|
107
|
+
setIsHideTopRightIcon(isHide);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
(0, _react.useEffect)(function () {
|
|
111
|
+
setMenuHideIcon(isFloat);
|
|
112
|
+
}, [isFloat]);
|
|
95
113
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
96
114
|
return {
|
|
97
115
|
'next': nextHandler,
|
|
@@ -172,26 +190,28 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
172
190
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
191
|
ref: flipFrontRef,
|
|
174
192
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-front"))
|
|
193
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
194
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-front-content"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(_precls["default"], "__inner-front-content--is-float"), isFloat), _defineProperty(_classNames2, "".concat(_precls["default"], "__inner-front-content--is-float-hide"), isFloatHide), _classNames2))
|
|
175
195
|
}, /*#__PURE__*/_react["default"].createElement(_menuCard["default"], {
|
|
176
|
-
isFloat: isFloat,
|
|
177
|
-
isFloatHide: isFloatHide,
|
|
178
196
|
style: {
|
|
179
197
|
'padding': '28px 12px 28px 12px'
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
}, children[0])), /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
+
}
|
|
199
|
+
}, children[0]))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
200
|
ref: flipBackRef,
|
|
184
201
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back"))
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
203
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back-content"), (_classNames3 = {}, _defineProperty(_classNames3, "".concat(_precls["default"], "__inner-back-content--is-float"), isFloat), _defineProperty(_classNames3, "".concat(_precls["default"], "__inner-back-content--is-float-hide"), isFloatHide), _classNames3))
|
|
185
204
|
}, /*#__PURE__*/_react["default"].createElement(_menuCard["default"], {
|
|
186
|
-
isFloat: isFloat,
|
|
187
|
-
isFloatHide: isFloatHide,
|
|
188
205
|
style: {
|
|
189
206
|
'padding': '42px 12px 28px 12px'
|
|
190
|
-
}
|
|
191
|
-
onMenuHide: onMenuHideHandler
|
|
207
|
+
}
|
|
192
208
|
}, /*#__PURE__*/_react["default"].createElement(_flipBackHeader["default"], {
|
|
193
209
|
onClick: goBackHandler
|
|
194
|
-
}), children[1]))))),
|
|
210
|
+
}), children[1]))))), !isHideTopRightIcon && /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
|
|
211
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__top-right-hide-icon")),
|
|
212
|
+
isAutoShow: true,
|
|
213
|
+
onClick: onMenuHideHandler
|
|
214
|
+
})), isFloat && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
215
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__fixed-hide-icon"))
|
|
196
216
|
}, /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
|
|
197
217
|
isClose: true,
|
|
@@ -9,21 +9,3 @@
|
|
|
9
9
|
border-radius: 12px;
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
.titaui-menus__menu-card--is-float {
|
|
14
|
-
box-shadow: 0 1px 10px #cccccc66;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.titaui-menus__menu-card--is-float-hide {
|
|
18
|
-
box-shadow: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-menus__menu-card .titaui-menus--hide-icon {
|
|
22
|
-
position: absolute;
|
|
23
|
-
right: -14px;
|
|
24
|
-
top: 6px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.titaui-menus__menu-card:hover .titaui-menus--hide-icon {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
}
|
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
-
var _menuCloseBtn = _interopRequireDefault(require("../menu-close-btn"));
|
|
13
|
-
|
|
14
12
|
var _precls = _interopRequireDefault(require("../../precls"));
|
|
15
13
|
|
|
16
14
|
require("./index.css");
|
|
@@ -24,25 +22,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
24
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
23
|
|
|
26
24
|
var _default = function _default(props) {
|
|
27
|
-
var _classNames;
|
|
28
|
-
|
|
29
25
|
var children = props.children,
|
|
30
|
-
style = props.style
|
|
31
|
-
onMenuHide = props.onMenuHide,
|
|
32
|
-
isFloat = props.isFloat,
|
|
33
|
-
isFloatHide = props.isFloatHide;
|
|
34
|
-
|
|
35
|
-
var onHideHandler = function onHideHandler() {
|
|
36
|
-
onMenuHide();
|
|
37
|
-
};
|
|
38
|
-
|
|
26
|
+
style = props.style;
|
|
39
27
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-card")
|
|
41
|
-
style: _objectSpread({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}));
|
|
28
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-card")),
|
|
29
|
+
style: _objectSpread({
|
|
30
|
+
'height': 'auto'
|
|
31
|
+
}, style)
|
|
32
|
+
}, children);
|
|
46
33
|
};
|
|
47
34
|
|
|
48
35
|
exports["default"] = _default;
|
|
@@ -23,13 +23,14 @@ var _default = function _default(props) {
|
|
|
23
23
|
isAutoShow = _props$isAutoShow === void 0 ? true : _props$isAutoShow,
|
|
24
24
|
_props$isClose = props.isClose,
|
|
25
25
|
isClose = _props$isClose === void 0 ? false : _props$isClose,
|
|
26
|
+
className = props.className,
|
|
26
27
|
onMouseEnter = props.onMouseEnter,
|
|
27
28
|
onMouseLeave = props.onMouseLeave;
|
|
28
29
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
30
|
onClick: onClick,
|
|
30
31
|
onMouseEnter: onMouseEnter,
|
|
31
32
|
onMouseLeave: onMouseLeave,
|
|
32
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon"), _defineProperty({}, "".concat(_precls["default"], "--hide-icon--show"), !isAutoShow))
|
|
33
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon"), className, _defineProperty({}, "".concat(_precls["default"], "--hide-icon--show"), !isAutoShow))
|
|
33
34
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
35
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon--hover"))
|
|
35
36
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
.titaui-menus-tree .rc-tree-treenode-selected {
|
|
6
6
|
background: #e9f1ff;
|
|
7
7
|
border-radius: 12px;
|
|
8
|
+
font-weight: 500;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title {
|
|
11
12
|
color: #2879ff;
|
|
13
|
+
font-weight: 500;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.titaui-menus-tree .rc-tree-indent {
|