@titaui/pc 1.6.11 → 1.6.15
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/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -9
- package/lib/components/button/rect-btn/index.css +41 -8
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +2 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -2
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +0 -1
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic.js +4 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/help-card/image/canceled.svg +13 -0
- package/lib/components/help-card/image/helpzx.svg +8 -0
- package/lib/components/help-card/image/kefu.svg +18 -0
- package/lib/components/help-card/image/kefu1.svg +8 -0
- package/lib/components/help-card/image/okr-shequ.svg +14 -0
- package/lib/components/help-card/image/question.svg +20 -0
- package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
- package/lib/components/help-card/index.css +219 -0
- package/lib/components/help-card/index.js +286 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -2
- package/lib/components/menus/components/flip-menu-card/index.js +17 -15
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/index.js +4 -3
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +50 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +8 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +65 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.css +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/loading-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +9 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +45 -18
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +102 -2
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -3
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +3 -2
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/inform/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +184 -22
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +25 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +74 -21
- package/lib/components/nav-top/components/user-message/components/reply/index.css +27 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +129 -24
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +4 -8
- package/lib/components/nav-top/components/user-message/components/todos/index.css +25 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +147 -23
- package/lib/components/nav-top/components/user-message/constant.js +11 -1
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +37 -0
- package/lib/components/nav-top/components/user-message/index.js +86 -72
- package/lib/components/nav-top/components/user-message/msg/index.js +17 -24
- package/lib/components/nav-top/components/user-message/utils.js +14 -0
- package/lib/components/nav-top/components/user-own-menu/index.js +3 -4
- package/lib/components/nav-top/components/user-own-menu/utils.js +77 -0
- package/lib/components/nav-top/constant.js +1 -1
- package/lib/components/nav-top/index.js +12 -12
- package/lib/components/nav-top/request.apis.js +52 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +163 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +42 -0
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/photo-card/components/card/index.css +78 -105
- package/lib/components/photo-card/components/card/index.js +133 -40
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +12 -12
- package/lib/components/photo-card/index.js +17 -13
- package/lib/components/point-demo/drop-down-box/index.css +98 -0
- package/lib/components/point-demo/drop-down-box/index.js +159 -0
- package/lib/components/point-demo/image/demo-bcg.png +0 -0
- package/lib/components/point-demo/image/down.svg +14 -0
- package/lib/components/point-demo/image/icon-canceled.svg +7 -0
- package/lib/components/point-demo/image/logo.svg +64 -0
- package/lib/components/point-demo/index.css +348 -0
- package/lib/components/point-demo/index.js +657 -0
- package/lib/components/point-demo/input/index.css +74 -0
- package/lib/components/point-demo/input/index.js +176 -0
- package/lib/components/point-demo/point-demo.js +93 -0
- package/lib/components/point-demo/popup/index.css +7 -0
- package/lib/components/point-demo/popup/index.js +113 -0
- package/lib/components/point-demo/popup/placement.js +44 -0
- package/lib/components/point-demo/popup/rc-trigger.css +127 -0
- package/lib/components/tree/index.js +0 -2
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +22 -2
- package/lib/pages/aha2021/index.css +16 -1
- package/lib/pages/aha2021/index.js +15 -5
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/{components/button/export-button/index.js → pages/new-okr-list/header/create-okr.js} +24 -44
- package/lib/pages/new-okr-list/header/depart-title.js +19 -0
- package/lib/pages/new-okr-list/header/filter.js +58 -0
- package/lib/pages/new-okr-list/header/index.css +31 -0
- package/lib/pages/new-okr-list/header/index.js +94 -0
- package/lib/pages/new-okr-list/header/user-title.js +19 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +127 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/{components/button/admin-button/drop-down-arrow.js → pages/new-okr-list/keyword-search/index.js} +54 -47
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +48 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +57 -0
- package/lib/pages/new-okr-list/theme.css +3 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/utils.js +11 -7
- package/lib/pages/personal-info/index.js +5 -3
- package/lib/utils/bs-global.js +16 -1
- package/package.json +2 -1
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/export-button/index.css +0 -51
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
package/lib/utils/bs-global.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isWx = isWx;
|
|
7
|
-
exports.hasWebHead = exports.formatNum = exports.getAppHead = exports.getUploadMaxSize = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getTenantInfo = exports.getUserInfo = void 0;
|
|
7
|
+
exports.hasWebHead = exports.formatNum = exports.getAppHead = exports.getUploadMaxSize = exports.getSource = exports.getVersion = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getTenantInfo = exports.getUserInfo = void 0;
|
|
8
8
|
|
|
9
9
|
var _mockBsglobal = require("./mock-bsglobal");
|
|
10
10
|
|
|
@@ -36,6 +36,21 @@ var getOkrAdvancedSetting = function getOkrAdvancedSetting() {
|
|
|
36
36
|
|
|
37
37
|
exports.getOkrAdvancedSetting = getOkrAdvancedSetting;
|
|
38
38
|
|
|
39
|
+
var getVersion = function getVersion() {
|
|
40
|
+
// version 1 试用版
|
|
41
|
+
if (window.location.host.indexOf("127.0.0.1") !== -1) return _mockBsglobal.BSGlobal["tenantAuthentication"].Version;
|
|
42
|
+
return window.BSGlobal["tenantAuthentication"].Version;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.getVersion = getVersion;
|
|
46
|
+
|
|
47
|
+
var getSource = function getSource() {
|
|
48
|
+
var info = getBSGlobal("tenantInfo");
|
|
49
|
+
return info.Source;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.getSource = getSource;
|
|
53
|
+
|
|
39
54
|
var getUploadMaxSize = function getUploadMaxSize() {
|
|
40
55
|
var info = getBSGlobal("tenantInfo");
|
|
41
56
|
var isDingDing = info.Source == 861;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.15",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"rc-util": "^5.13.1",
|
|
88
88
|
"react-collapse": "^5.1.0",
|
|
89
89
|
"react-content-loader": "^6.0.3",
|
|
90
|
+
"react-custom-scrollbars": "^4.2.1",
|
|
90
91
|
"react-grid-layout": "^1.2.5",
|
|
91
92
|
"react-perfect-scrollbar": "^1.5.2",
|
|
92
93
|
"react-sizeme": "^3.0.1",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var preCls = "admin-button";
|
|
17
|
-
|
|
18
|
-
var _default = function _default(_ref) {
|
|
19
|
-
var onClick = _ref.onClick,
|
|
20
|
-
id = _ref.id,
|
|
21
|
-
children = _ref.children,
|
|
22
|
-
style = _ref.style;
|
|
23
|
-
|
|
24
|
-
var onHandleClick = function onHandleClick() {
|
|
25
|
-
onClick && onClick(id);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
|
-
className: (0, _classnames["default"])("".concat(preCls, "-default ").concat(preCls, "-btn")),
|
|
30
|
-
onClick: onHandleClick,
|
|
31
|
-
style: style
|
|
32
|
-
}, children);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
exports["default"] = _default;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
.admin-button {
|
|
2
|
-
box-sizing: border-box !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.admin-button-btn {
|
|
6
|
-
height: 32px;
|
|
7
|
-
min-width: 90px;
|
|
8
|
-
padding: 0 18px;
|
|
9
|
-
border-radius: 4px;
|
|
10
|
-
text-align: center;
|
|
11
|
-
line-height: 30px;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
box-sizing: border-box !important;
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.admin-button-primary {
|
|
19
|
-
background: #2879FF;
|
|
20
|
-
color: #FFFFFF;
|
|
21
|
-
line-height: 32px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.admin-button-primary:hover {
|
|
25
|
-
background: #5C8EFF;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.admin-button-secondary {
|
|
29
|
-
color: #2879FF;
|
|
30
|
-
border: 1px solid #2879FF;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.admin-button-secondary:hover {
|
|
34
|
-
background: #E9F1FF;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.admin-button-default, .admin-button-drop {
|
|
38
|
-
color: #3f4755;
|
|
39
|
-
border: 1px solid #E9ECF0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.admin-button-default:hover, .admin-button-drop:hover {
|
|
43
|
-
color: #2879FF;
|
|
44
|
-
border: 1px solid #2879FF;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.admin-button-drop {
|
|
48
|
-
position: relative;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.admin-button-drop:hover {
|
|
52
|
-
background-color: #E9F1FF;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.admin-button-drop .tu-icon-sort-down {
|
|
56
|
-
color: #3F4755;
|
|
57
|
-
font-size: 12px;
|
|
58
|
-
margin-left: 2px;
|
|
59
|
-
position: relative;
|
|
60
|
-
top: 1px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.admin-button-drop-wrapper {
|
|
64
|
-
min-width: 90px;
|
|
65
|
-
z-index: 2;
|
|
66
|
-
background: #FFFFFF;
|
|
67
|
-
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
68
|
-
border: 1px solid #E9ECF0;
|
|
69
|
-
padding: 16px 0 12px;
|
|
70
|
-
position: absolute;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.admin-button-drop-wrapper-item {
|
|
74
|
-
padding-left: 11px;
|
|
75
|
-
height: 36px;
|
|
76
|
-
line-height: 36px;
|
|
77
|
-
font-size: 14px;
|
|
78
|
-
font-weight: 400;
|
|
79
|
-
color: #3F4755;
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.admin-button-drop-wrapper-item:hover {
|
|
84
|
-
color: #2879FF;
|
|
85
|
-
background: #F7F8FA;
|
|
86
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _default2 = _interopRequireDefault(require("./default"));
|
|
11
|
-
|
|
12
|
-
var _dropDownArrow = _interopRequireDefault(require("./drop-down-arrow"));
|
|
13
|
-
|
|
14
|
-
var _primary = _interopRequireDefault(require("./primary"));
|
|
15
|
-
|
|
16
|
-
var _secondary = _interopRequireDefault(require("./secondary"));
|
|
17
|
-
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
|
-
var _excluded = ["type"];
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
-
|
|
28
|
-
var _default = function _default(_ref) {
|
|
29
|
-
var _ref$type = _ref.type,
|
|
30
|
-
type = _ref$type === void 0 ? "default" : _ref$type,
|
|
31
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
-
|
|
33
|
-
if (type == "default") return /*#__PURE__*/_react["default"].createElement(_default2["default"], restProps);
|
|
34
|
-
if (type == "dropArrow") return /*#__PURE__*/_react["default"].createElement(_dropDownArrow["default"], restProps);
|
|
35
|
-
if (type == "primary") return /*#__PURE__*/_react["default"].createElement(_primary["default"], restProps);
|
|
36
|
-
if (type == "secondary") return /*#__PURE__*/_react["default"].createElement(_secondary["default"], restProps);
|
|
37
|
-
return /*#__PURE__*/_react["default"].createElement(_default2["default"], restProps);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports["default"] = _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var preCls = "admin-button";
|
|
17
|
-
|
|
18
|
-
var _default = function _default(_ref) {
|
|
19
|
-
var onClick = _ref.onClick,
|
|
20
|
-
id = _ref.id,
|
|
21
|
-
children = _ref.children,
|
|
22
|
-
style = _ref.style;
|
|
23
|
-
|
|
24
|
-
var onHandleClick = function onHandleClick() {
|
|
25
|
-
onClick && onClick(id);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
|
-
className: (0, _classnames["default"])("".concat(preCls, "-secondary ").concat(preCls, "-btn")),
|
|
30
|
-
onClick: onHandleClick,
|
|
31
|
-
style: style
|
|
32
|
-
}, children);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
exports["default"] = _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.tita-export-btn {
|
|
2
|
-
width: 90px;
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.tita-export-btn .export-btn {
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
width: 90px;
|
|
9
|
-
height: 32px;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
background: #2879FF;
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
color: #FFFFFF;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.tita-export-btn .export-btn > img {
|
|
20
|
-
margin-right: 4px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.tita-export-btn .export-btn:hover {
|
|
24
|
-
background-color: #5C8EFF;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.tita-export-btn .export-label {
|
|
28
|
-
z-index: 2;
|
|
29
|
-
position: absolute;
|
|
30
|
-
left: -22px;
|
|
31
|
-
padding: 16px 0;
|
|
32
|
-
background: #FFFFFF;
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
35
|
-
border-radius: 8px;
|
|
36
|
-
border: 1px solid #F0F2F5;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.tita-export-btn .export-label .export-label-item {
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
padding: 0 20px;
|
|
43
|
-
font-weight: 400;
|
|
44
|
-
color: #3F4755;
|
|
45
|
-
line-height: 32px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.tita-export-btn .export-label .export-label-item:hover {
|
|
49
|
-
color: #2879FF;
|
|
50
|
-
background: #F7F8FA;
|
|
51
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var prefix = 'dynamic-task-project-icon';
|
|
17
|
-
|
|
18
|
-
var DynamicIcon = function DynamicIcon(_ref) {
|
|
19
|
-
var imgUrl = _ref.imgUrl,
|
|
20
|
-
background = _ref.background,
|
|
21
|
-
boxShadow = _ref.boxShadow;
|
|
22
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
23
|
-
className: (0, _classnames["default"])(prefix),
|
|
24
|
-
style: {
|
|
25
|
-
background: background,
|
|
26
|
-
boxShadow: boxShadow
|
|
27
|
-
}
|
|
28
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
29
|
-
className: prefix + '__icon',
|
|
30
|
-
src: imgUrl
|
|
31
|
-
}));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var _default = DynamicIcon;
|
|
35
|
-
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.menuData = void 0;
|
|
7
|
-
var menuData = [{
|
|
8
|
-
name: '动态',
|
|
9
|
-
id: '1',
|
|
10
|
-
hash: 'home?iTalentNavId=44229'
|
|
11
|
-
}, {
|
|
12
|
-
name: 'OKR',
|
|
13
|
-
id: '2',
|
|
14
|
-
hash: 'okr/manage?iTalentNavId=44231&iTalentNavCode=tita-okrmanage'
|
|
15
|
-
}, {
|
|
16
|
-
name: '项目',
|
|
17
|
-
id: '3',
|
|
18
|
-
hash: 'work?iTalentNavId=44237&iTalentNavCode=tita-work'
|
|
19
|
-
}, {
|
|
20
|
-
name: '绩效考核',
|
|
21
|
-
id: '4',
|
|
22
|
-
hash: 'performance?reactRouterName=self&iTalentNavId=44270'
|
|
23
|
-
}, {
|
|
24
|
-
name: '任务',
|
|
25
|
-
id: '5',
|
|
26
|
-
hash: 'plan?iTalentNavId=44236&iTalentNavCode=tita-plan'
|
|
27
|
-
}, {
|
|
28
|
-
name: '总结',
|
|
29
|
-
id: '6',
|
|
30
|
-
hash: 'daily?iTalentNavId=44238&iTalentNavCode=tita-daily'
|
|
31
|
-
}, {
|
|
32
|
-
name: '数据中心',
|
|
33
|
-
id: '7',
|
|
34
|
-
hash: 'home?iTalentNavId=44229'
|
|
35
|
-
}];
|
|
36
|
-
exports.menuData = menuData;
|