@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
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
background-color: transparent;
|
|
5
5
|
perspective: 1000px;
|
|
6
6
|
transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
|
|
7
|
-
opacity: 1;
|
|
8
7
|
will-change: opacity;
|
|
8
|
+
opacity: 1;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.titaui-flip-card__fixed-hide-icon {
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
position: fixed;
|
|
14
14
|
top: 74px;
|
|
15
15
|
left: -12px;
|
|
16
|
+
transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-flip-card__fixed-hide-icon:hover {
|
|
20
|
+
left: 0;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
.titaui-flip-card__fixed-hide-icon > div {
|
|
@@ -29,7 +34,6 @@
|
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
.titaui-flip-card__inner-front, .titaui-flip-card__inner-back {
|
|
32
|
-
position: absolute;
|
|
33
37
|
width: 100%;
|
|
34
38
|
height: 100%;
|
|
35
39
|
backface-visibility: hidden;
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
.titaui-flip-card__inner-back {
|
|
68
|
+
display: none;
|
|
64
69
|
transform: rotateY(180deg);
|
|
65
70
|
z-index: 10;
|
|
66
71
|
}
|
|
@@ -19,6 +19,8 @@ var _flipBackHeader = _interopRequireDefault(require("./flip-back-header"));
|
|
|
19
19
|
|
|
20
20
|
var _menuCloseBtn = _interopRequireDefault(require("../menu-close-btn"));
|
|
21
21
|
|
|
22
|
+
var _dragResize = _interopRequireDefault(require("../drag-resize"));
|
|
23
|
+
|
|
22
24
|
var _precls = _interopRequireDefault(require("./precls"));
|
|
23
25
|
|
|
24
26
|
require("./index.css");
|
|
@@ -71,16 +73,20 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
71
73
|
var flipBackRef = (0, _react.useRef)();
|
|
72
74
|
|
|
73
75
|
var goBackHandler = function goBackHandler() {
|
|
76
|
+
flipBackRef.current.style.position = 'absolute';
|
|
74
77
|
flipFrontRef.current.style.display = 'block';
|
|
75
78
|
setTimeout(function () {
|
|
79
|
+
flipFrontRef.current.style.position = 'relative';
|
|
76
80
|
flipBackRef.current.style.display = 'none';
|
|
77
81
|
}, 600);
|
|
78
82
|
setIsBack(false);
|
|
79
83
|
};
|
|
80
84
|
|
|
81
85
|
var nextHandler = function nextHandler() {
|
|
86
|
+
flipFrontRef.current.style.position = 'absolute';
|
|
82
87
|
flipBackRef.current.style.display = 'block';
|
|
83
88
|
setTimeout(function () {
|
|
89
|
+
flipBackRef.current.style.position = 'relative';
|
|
84
90
|
flipFrontRef.current.style.display = 'none';
|
|
85
91
|
}, 600);
|
|
86
92
|
setIsBack(true);
|
|
@@ -101,7 +107,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
101
107
|
setTimeout(function () {
|
|
102
108
|
// 1秒后隐藏菜单到左侧
|
|
103
109
|
setIsFloatHide(!isFloatHide);
|
|
104
|
-
}, !isFloat ?
|
|
110
|
+
}, !isFloat ? 400 : 0);
|
|
105
111
|
};
|
|
106
112
|
|
|
107
113
|
var onFixedHideIconMouseEnter = function onFixedHideIconMouseEnter() {
|
|
@@ -142,42 +148,38 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
142
148
|
|
|
143
149
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
150
|
ref: flipCardRef,
|
|
145
|
-
style: {
|
|
146
|
-
'width': defaultWidth
|
|
147
|
-
},
|
|
148
151
|
onMouseEnter: onFlipMouseEnterHandler,
|
|
149
152
|
onMouseLeave: onFlipMouseLeaveHandler,
|
|
150
153
|
className: (0, _classnames["default"])(_precls["default"], (_classNames = {}, _defineProperty(_classNames, "".concat(_precls["default"], "--is-back"), isBack), _defineProperty(_classNames, "".concat(_precls["default"], "--is-float"), isFloat), _defineProperty(_classNames, "".concat(_precls["default"], "--is-float-hide"), isFloatHide), _classNames))
|
|
154
|
+
}, /*#__PURE__*/_react["default"].createElement(_dragResize["default"], {
|
|
155
|
+
minWidth: defaultWidth - 10,
|
|
156
|
+
maxWidth: 600,
|
|
157
|
+
defaultWidth: defaultWidth
|
|
151
158
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
159
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner"))
|
|
153
160
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
161
|
ref: flipFrontRef,
|
|
155
162
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-front"))
|
|
156
163
|
}, /*#__PURE__*/_react["default"].createElement(_menuCard["default"], {
|
|
157
|
-
container: flipCardRef,
|
|
158
|
-
onMenuHide: onMenuHideHandler,
|
|
159
164
|
isFloat: isFloat,
|
|
160
165
|
isFloatHide: isFloatHide,
|
|
161
166
|
style: {
|
|
162
167
|
'padding': '28px 12px'
|
|
163
|
-
}
|
|
168
|
+
},
|
|
169
|
+
onMenuHide: onMenuHideHandler
|
|
164
170
|
}, children[0])), /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
171
|
ref: flipBackRef,
|
|
166
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back"))
|
|
167
|
-
style: {
|
|
168
|
-
'display': 'none'
|
|
169
|
-
}
|
|
172
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back"))
|
|
170
173
|
}, /*#__PURE__*/_react["default"].createElement(_menuCard["default"], {
|
|
171
|
-
container: flipCardRef,
|
|
172
|
-
onMenuHide: onMenuHideHandler,
|
|
173
174
|
isFloat: isFloat,
|
|
174
175
|
isFloatHide: isFloatHide,
|
|
175
176
|
style: {
|
|
176
177
|
'padding': '42px 12px 28px 12px'
|
|
177
|
-
}
|
|
178
|
+
},
|
|
179
|
+
onMenuHide: onMenuHideHandler
|
|
178
180
|
}, /*#__PURE__*/_react["default"].createElement(_flipBackHeader["default"], {
|
|
179
181
|
onClick: goBackHandler
|
|
180
|
-
}), children[1]))), isFloat && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement("span", {
|
|
182
|
+
}), children[1])))), isFloat && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement("span", {
|
|
181
183
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__fixed-hide-icon"))
|
|
182
184
|
}, /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
|
|
183
185
|
isClose: true,
|
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
-
var _dragResize = _interopRequireDefault(require("../drag-resize"));
|
|
13
|
-
|
|
14
12
|
var _menuCloseBtn = _interopRequireDefault(require("../menu-close-btn"));
|
|
15
13
|
|
|
16
14
|
var _precls = _interopRequireDefault(require("../../precls"));
|
|
@@ -30,7 +28,6 @@ var _default = function _default(props) {
|
|
|
30
28
|
|
|
31
29
|
var children = props.children,
|
|
32
30
|
style = props.style,
|
|
33
|
-
container = props.container,
|
|
34
31
|
onMenuHide = props.onMenuHide,
|
|
35
32
|
isFloat = props.isFloat,
|
|
36
33
|
isFloatHide = props.isFloatHide;
|
|
@@ -42,9 +39,7 @@ var _default = function _default(props) {
|
|
|
42
39
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
40
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-card"), (_classNames = {}, _defineProperty(_classNames, "".concat(_precls["default"], "__menu-card--is-float"), isFloat), _defineProperty(_classNames, "".concat(_precls["default"], "__menu-card--is-float-hide"), isFloatHide), _classNames)),
|
|
44
41
|
style: _objectSpread({}, style)
|
|
45
|
-
}, children, /*#__PURE__*/_react["default"].createElement(
|
|
46
|
-
container: container
|
|
47
|
-
}), !isFloat && /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
|
|
42
|
+
}, children, !isFloat && /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
|
|
48
43
|
isAutoShow: true,
|
|
49
44
|
onClick: onHideHandler
|
|
50
45
|
}));
|
|
@@ -27,9 +27,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
27
|
|
|
28
28
|
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; }
|
|
29
29
|
|
|
30
|
-
var switcherIconHandler = function switcherIconHandler(
|
|
31
|
-
var expanded = _ref.expanded,
|
|
32
|
-
isLeaf = _ref.isLeaf;
|
|
30
|
+
var switcherIconHandler = function switcherIconHandler() {
|
|
33
31
|
return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
34
32
|
};
|
|
35
33
|
|
|
@@ -44,6 +42,9 @@ var _default = function _default(props) {
|
|
|
44
42
|
|
|
45
43
|
var beforeSelectHandler = function beforeSelectHandler(node) {
|
|
46
44
|
if (node.nodeType == 'group-name') return false;
|
|
45
|
+
if (node.nodeType == 'loading') return false;
|
|
46
|
+
if (node.nodeType == 'no-follower') return false;
|
|
47
|
+
if (node.nodeType == 'company-all') return false;
|
|
47
48
|
return true;
|
|
48
49
|
};
|
|
49
50
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.titaui-menus-tree__avatar-img {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
line-height: 24px;
|
|
4
|
+
width: 24px;
|
|
5
|
+
height: 24px;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-menus-tree__avatar-img > img {
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-menus-tree__avatar-name {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
width: 24px;
|
|
20
|
+
height: 24px;
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
margin-right: 8px;
|
|
24
|
+
color: white;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-menus-tree__avatar-name-slice {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: 24px;
|
|
31
|
+
height: 24px;
|
|
32
|
+
text-indent: 6px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.titaui-menus-tree__avatar-name-slice > span {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
width: 12px;
|
|
40
|
+
text-indent: 0;
|
|
41
|
+
text-align: left;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.titaui-menus-tree__avatar-username {
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
color: #3f4755;
|
|
49
|
+
line-height: 20px;
|
|
50
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _precls = _interopRequireDefault(require("../../precls"));
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
|
|
26
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
|
|
28
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
29
|
+
|
|
30
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
|
+
|
|
32
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
|
+
|
|
34
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
|
|
36
|
+
var _default = function _default(props) {
|
|
37
|
+
var user = props.user;
|
|
38
|
+
|
|
39
|
+
var _useState = (0, _react.useState)(function () {
|
|
40
|
+
return !!user.avatar.medium;
|
|
41
|
+
}),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
43
|
+
hasAvatar = _useState2[0];
|
|
44
|
+
|
|
45
|
+
var renderImgAvatar = function renderImgAvatar() {
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__avatar-img"), "noselect")
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
49
|
+
style: {
|
|
50
|
+
'width': 24,
|
|
51
|
+
'height': 24,
|
|
52
|
+
'verticalAlign': "top"
|
|
53
|
+
},
|
|
54
|
+
src: user.avatar.medium
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var renderTextAvatar = function renderTextAvatar() {
|
|
59
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
60
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__avatar-name"), "noselect"),
|
|
61
|
+
style: {
|
|
62
|
+
'backgroundColor': user.avatar.color
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__avatar-name-slice"))
|
|
66
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, user.name)));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, hasAvatar ? renderImgAvatar() : renderTextAvatar());
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
exports["default"] = _default;
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _precls = _interopRequireDefault(require("../../precls"));
|
|
13
15
|
|
|
14
16
|
var _context = require("../../../../context");
|
|
@@ -30,7 +32,7 @@ var ComponyNode = function ComponyNode() {
|
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
-
className: "".concat(_precls["default"], "__compony-node"),
|
|
35
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__compony-node"), 'noselect'),
|
|
34
36
|
onClick: gotoDepartTree
|
|
35
37
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
36
38
|
className: "tu-icon-OKR-gongsi-m"
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
15
|
+
|
|
14
16
|
var _precls = _interopRequireDefault(require("../../precls"));
|
|
15
17
|
|
|
16
18
|
require("./index.css");
|
|
@@ -37,8 +39,7 @@ var DepartNode = function DepartNode(props) {
|
|
|
37
39
|
var onExpand = props.onExpand,
|
|
38
40
|
data = props.data,
|
|
39
41
|
_props$level = props.level,
|
|
40
|
-
level = _props$level === void 0 ? 0 : _props$level
|
|
41
|
-
title = props.title;
|
|
42
|
+
level = _props$level === void 0 ? 0 : _props$level;
|
|
42
43
|
var hasChild = data.hasChild;
|
|
43
44
|
|
|
44
45
|
var _useState = (0, _react.useState)(false),
|
|
@@ -52,7 +53,7 @@ var DepartNode = function DepartNode(props) {
|
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
-
className: "".concat(_precls["default"], "__depart-node"),
|
|
56
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__depart-node"), 'noselect'),
|
|
56
57
|
style: {
|
|
57
58
|
paddingLeft: 12 + level * 10
|
|
58
59
|
}
|
|
@@ -60,7 +61,10 @@ var DepartNode = function DepartNode(props) {
|
|
|
60
61
|
className: "tu-icon-biaoqian-bumen"
|
|
61
62
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
62
63
|
className: "".concat(_precls["default"], "__depart-node-title")
|
|
63
|
-
},
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
65
|
+
name: data.name,
|
|
66
|
+
id: data.id
|
|
67
|
+
})), !isOpen && hasChild && /*#__PURE__*/_react["default"].createElement("span", {
|
|
64
68
|
className: (0, _classnames["default"])("tu-icon-APP-xi", "".concat(_precls["default"], "__depart-node-expand")),
|
|
65
69
|
onClick: handleExpand
|
|
66
70
|
}), isOpen && /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.titaui-menus-tree__follower-node {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
height: 40px;
|
|
5
|
+
line-height: 40px;
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-menus-tree__follower-node:hover .titaui-menus-tree__follower-node-cancel {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-menus-tree__follower-node:hover .titaui-menus-tree__follower-node-username {
|
|
16
|
+
color: #2879ff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-menus-tree__follower-node-username {
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
color: #3f4755;
|
|
24
|
+
line-height: 20px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-menus-tree__follower-node-cancel {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
position: absolute;
|
|
34
|
+
right: 5px;
|
|
35
|
+
opacity: 0;
|
|
36
|
+
transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
|
|
37
|
+
will-change: opacity;
|
|
38
|
+
color: #a4acb9;
|
|
39
|
+
border: 5px solid transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-menus-tree__follower-node-cancel > span {
|
|
43
|
+
color: #a4acb9 !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-menus-tree__follower-node-cancel:hover > span {
|
|
47
|
+
color: #f05e5e !important;
|
|
48
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
15
|
+
|
|
16
|
+
var _context = require("../../../../context");
|
|
17
|
+
|
|
18
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
19
|
+
|
|
20
|
+
var _precls = _interopRequireDefault(require("../../precls"));
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
var _default = function _default(props) {
|
|
31
|
+
var user = props.data,
|
|
32
|
+
_props$level = props.level,
|
|
33
|
+
level = _props$level === void 0 ? 0 : _props$level;
|
|
34
|
+
|
|
35
|
+
var _useContext = (0, _react.useContext)(_context.OkrMenusContext),
|
|
36
|
+
onRemoveConcerner = _useContext.onRemoveConcerner;
|
|
37
|
+
|
|
38
|
+
var onCancelFollowHandler = function onCancelFollowHandler() {
|
|
39
|
+
onRemoveConcerner(user);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__follower-node")),
|
|
44
|
+
style: {
|
|
45
|
+
'paddingLeft': 12 + level * 10
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
48
|
+
user: user
|
|
49
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
50
|
+
style: {
|
|
51
|
+
'width': "calc(100% - ".concat(12 + 13 + level * 10, "px)")
|
|
52
|
+
},
|
|
53
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__follower-node-username"), "noselect")
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
55
|
+
name: user.name,
|
|
56
|
+
id: user.userId
|
|
57
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__follower-node-cancel")),
|
|
59
|
+
onClick: onCancelFollowHandler
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
|
+
className: "tu-icon-cross"
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports["default"] = _default;
|
|
@@ -187,6 +187,77 @@
|
|
|
187
187
|
background-image: url("../images/okr-menu/rw-zx.svg");
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
.titaui-menus-tree__no-follower-node {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
text-align: left;
|
|
194
|
+
height: 40px;
|
|
195
|
+
line-height: 40px;
|
|
196
|
+
border-radius: 12px;
|
|
197
|
+
padding: 0 8px;
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
cursor: default;
|
|
202
|
+
color: #89919F;
|
|
203
|
+
font-size: 14px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.titaui-menus-tree__no-follower-node:hover .titaui-menus-tree__menu-item-node-title {
|
|
207
|
+
color: #2879ff;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.titaui-menus-tree__no-follower-node-indent {
|
|
211
|
+
display: inline-block;
|
|
212
|
+
width: 16px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.titaui-menus-tree__no-follower-node-title {
|
|
216
|
+
font-size: 14px;
|
|
217
|
+
color: #3f4755;
|
|
218
|
+
line-height: 22px;
|
|
219
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.titaui-menus-tree__loading-node {
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
text-align: left;
|
|
227
|
+
height: 40px;
|
|
228
|
+
line-height: 40px;
|
|
229
|
+
border-radius: 12px;
|
|
230
|
+
padding: 0 8px;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: center;
|
|
234
|
+
cursor: default;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.titaui-menus-tree__loading-node:hover .titaui-menus-tree__menu-item-node-title {
|
|
238
|
+
color: #2879ff;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.titaui-menus-tree__loading-node-indent {
|
|
242
|
+
display: inline-block;
|
|
243
|
+
width: 16px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.titaui-menus-tree__loading-node-title {
|
|
247
|
+
font-size: 14px;
|
|
248
|
+
color: #3f4755;
|
|
249
|
+
line-height: 22px;
|
|
250
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
251
|
+
font-weight: 400;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.titaui-menus-tree__loading-node-icon {
|
|
255
|
+
width: 96px;
|
|
256
|
+
height: 20px;
|
|
257
|
+
background: url(../images/loading-node.gif) transparent no-repeat 50% 50%;
|
|
258
|
+
background-size: contain;
|
|
259
|
+
}
|
|
260
|
+
|
|
190
261
|
.titaui-menus-tree__company-all-node {
|
|
191
262
|
display: flex;
|
|
192
263
|
align-items: center;
|
|
@@ -357,4 +428,5 @@
|
|
|
357
428
|
height: 14px;
|
|
358
429
|
width: 14px;
|
|
359
430
|
background: url(../images/user-concern-add.svg) transparent no-repeat 50% 50%;
|
|
431
|
+
border: 5px solid transparent;
|
|
360
432
|
}
|
|
@@ -23,6 +23,12 @@ var _userNode = _interopRequireDefault(require("./user-node"));
|
|
|
23
23
|
|
|
24
24
|
var _companyAllNode = _interopRequireDefault(require("./company-all-node"));
|
|
25
25
|
|
|
26
|
+
var _noFollowerNode = _interopRequireDefault(require("./no-follower-node"));
|
|
27
|
+
|
|
28
|
+
var _followerNode = _interopRequireDefault(require("./follower-node"));
|
|
29
|
+
|
|
30
|
+
var _loadingNode = _interopRequireDefault(require("./loading-node"));
|
|
31
|
+
|
|
26
32
|
require("./index.css");
|
|
27
33
|
|
|
28
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -34,6 +40,19 @@ var _default = function _default(node, level, _ref) {
|
|
|
34
40
|
renderSwitcher = _ref.renderSwitcher;
|
|
35
41
|
|
|
36
42
|
switch (node.nodeType) {
|
|
43
|
+
case 'loading':
|
|
44
|
+
return /*#__PURE__*/_react["default"].createElement(_loadingNode["default"], null);
|
|
45
|
+
|
|
46
|
+
case 'follower':
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement(_followerNode["default"], _extends({}, node, {
|
|
48
|
+
level: level,
|
|
49
|
+
onExpand: onExpand,
|
|
50
|
+
renderSwitcher: renderSwitcher
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
case 'no-follower':
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement(_noFollowerNode["default"], null);
|
|
55
|
+
|
|
37
56
|
case 'company-all':
|
|
38
57
|
return /*#__PURE__*/_react["default"].createElement(_companyAllNode["default"], node);
|
|
39
58
|
|
|
@@ -9,25 +9,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
|
+
|
|
12
14
|
require("./index.css");
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var _default = function _default(_ref) {
|
|
19
|
-
var onClick = _ref.onClick,
|
|
20
|
-
id = _ref.id,
|
|
21
|
-
children = _ref.children;
|
|
22
|
-
|
|
23
|
-
var onHandleClick = function onHandleClick() {
|
|
24
|
-
onClick && onClick(id);
|
|
25
|
-
};
|
|
26
|
-
|
|
18
|
+
var _default = function _default() {
|
|
27
19
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
-
className: (0, _classnames["default"])("".concat(
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__loading-node"))
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__loading-node-icon"))
|
|
23
|
+
}));
|
|
31
24
|
};
|
|
32
25
|
|
|
33
26
|
exports["default"] = _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = function _default() {
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__no-follower-node"))
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u6682\u65E0\u5173\u6CE8\u7684\u4EBA"));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports["default"] = _default;
|