zmdms-webui 2.2.6 → 2.2.7
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/dist/es/applayoutheader/setting/userInfo.js +5 -3
- package/dist/es/applayoutsider/menu/SearchInput.js +6 -4
- package/dist/es/applayoutsider/menu/index.js +1 -1
- package/dist/es/dynamicsetting/dynamicDrawer.js +1 -1
- package/dist/less/components/Alert/style/index.less +53 -0
- package/dist/less/components/Alert/style/style.less +4 -0
- package/dist/less/components/AppLayout/style/index.less +546 -0
- package/dist/less/components/AppLayout/style/style.less +2 -0
- package/dist/less/components/AppLayout/style.less +5 -0
- package/dist/less/components/AuthLoading/style/index.less +15 -0
- package/dist/less/components/AuthLoading/style/style.less +2 -0
- package/dist/less/components/Button/style/index.less +160 -0
- package/dist/less/components/Button/style/style.less +5 -0
- package/dist/less/components/Cascader/style/index.less +9 -0
- package/dist/less/components/Cascader/style/style.less +2 -0
- package/dist/less/components/Collapse/style/index.less +117 -0
- package/dist/less/components/Collapse/style/style.less +2 -0
- package/dist/less/components/Container/style/index.less +64 -0
- package/dist/less/components/Container/style/style.less +2 -0
- package/dist/less/components/DatePicker/style/index.less +7 -0
- package/dist/less/components/DatePicker/style/style.less +4 -0
- package/dist/less/components/Descriptions/style/index.less +32 -0
- package/dist/less/components/Descriptions/style/style.less +5 -0
- package/dist/less/components/DetailList/style/index.less +105 -0
- package/dist/less/components/DetailList/style/style.less +2 -0
- package/dist/less/components/Differences/style/index.less +5 -0
- package/dist/less/components/Differences/style/style.less +2 -0
- package/dist/less/components/DynamicSetting/style/index.less +96 -0
- package/dist/less/components/DynamicSetting/style/style.less +2 -0
- package/dist/less/components/ElectronSignatures/style/index.less +331 -0
- package/dist/less/components/ElectronSignatures/style/style.less +1 -0
- package/dist/less/components/Footer/style/index.less +28 -0
- package/dist/less/components/Footer/style/style.less +2 -0
- package/dist/less/components/Form/style/index.less +145 -0
- package/dist/less/components/Form/style/style.less +5 -0
- package/dist/less/components/FormItem/style/index.less +456 -0
- package/dist/less/components/FormItem/style/style.less +2 -0
- package/dist/less/components/Input/style/index.less +15 -0
- package/dist/less/components/Input/style/style.less +4 -0
- package/dist/less/components/InputNumber/style/index.less +30 -0
- package/dist/less/components/InputNumber/style/style.less +4 -0
- package/dist/less/components/LeftContent/style/index.less +62 -0
- package/dist/less/components/LeftContent/style/style.less +2 -0
- package/dist/less/components/Login/style/index.less +63 -0
- package/dist/less/components/Login/style/style.less +2 -0
- package/dist/less/components/Message/style/index.less +19 -0
- package/dist/less/components/Message/style/style.less +2 -0
- package/dist/less/components/MicroLoading/style/index.less +15 -0
- package/dist/less/components/MicroLoading/style/style.less +2 -0
- package/dist/less/components/Modal/style/index.less +43 -0
- package/dist/less/components/Modal/style/style.less +2 -0
- package/dist/less/components/NotAuthPage/style/index.less +0 -0
- package/dist/less/components/NotAuthPage/style/style.less +2 -0
- package/dist/less/components/NotRoutePage/style/index.less +0 -0
- package/dist/less/components/NotRoutePage/style/style.less +2 -0
- package/dist/less/components/Pagination/style/index.less +107 -0
- package/dist/less/components/Pagination/style/style.less +5 -0
- package/dist/less/components/Placeholder/style/index.less +3 -0
- package/dist/less/components/Placeholder/style/style.less +2 -0
- package/dist/less/components/Print/style/index.less +65 -0
- package/dist/less/components/Print/style/style.less +3 -0
- package/dist/less/components/Select/style/index.less +55 -0
- package/dist/less/components/Select/style/style.less +4 -0
- package/dist/less/components/Table/style/index.less +362 -0
- package/dist/less/components/Table/style/style.less +4 -0
- package/dist/less/components/Tabs/style/index.less +118 -0
- package/dist/less/components/Tabs/style/style.less +4 -0
- package/dist/less/components/Tag/style/index.less +3 -0
- package/dist/less/components/Tag/style/style.less +4 -0
- package/dist/less/components/Title/style/index.less +54 -0
- package/dist/less/components/Title/style/style.less +2 -0
- package/dist/less/components/Tree/style/index.less +58 -0
- package/dist/less/components/Tree/style/style.less +4 -0
- package/dist/less/components/TreeSelect/style/index.less +0 -0
- package/dist/less/components/TreeSelect/style/style.less +4 -0
- package/dist/less/components/UploadList/style/index.less +61 -0
- package/dist/less/components/UploadList/style/style.less +4 -0
- package/dist/less/components/Watermark/style/index.less +7 -0
- package/dist/less/components/Watermark/style/style.less +3 -0
- package/dist/less/components/ZtTransfer/style/index.less +136 -0
- package/dist/less/components/ZtTransfer/style/style.less +2 -0
- package/dist/less/styles/default.less +95 -0
- package/dist/less/styles/index.less +86 -0
- package/dist/less/styles/reset.less +189 -0
- package/package.json +2 -1
|
@@ -2,6 +2,7 @@ import { __assign, __awaiter, __generator } from '../../_virtual/_tslib.js';
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useContext, useState, useMemo } from 'react';
|
|
4
4
|
import { LayoutHeaderContext } from '../LayoutHeaderContext.js';
|
|
5
|
+
import { useLatest } from 'ahooks';
|
|
5
6
|
import LogoutOutlined from '../../node_modules/@ant-design/icons/es/icons/LogoutOutlined.js';
|
|
6
7
|
import UnlockOutlined from '../../node_modules/@ant-design/icons/es/icons/UnlockOutlined.js';
|
|
7
8
|
import UserOutlined from '../../node_modules/@ant-design/icons/es/icons/UserOutlined.js';
|
|
@@ -11,6 +12,7 @@ var UserInfo = function (_a) {
|
|
|
11
12
|
var logout = _a.logout, updatePassword = _a.updatePassword;
|
|
12
13
|
var userInfo = useContext(LayoutHeaderContext).userInfo;
|
|
13
14
|
var _b = useState(false), spinning = _b[0], setSpinning = _b[1];
|
|
15
|
+
var logoutLatest = useLatest(logout);
|
|
14
16
|
var items = useMemo(function () {
|
|
15
17
|
var items = [
|
|
16
18
|
{
|
|
@@ -20,11 +22,11 @@ var UserInfo = function (_a) {
|
|
|
20
22
|
switch (_a.label) {
|
|
21
23
|
case 0:
|
|
22
24
|
setSpinning(true);
|
|
23
|
-
if (!
|
|
25
|
+
if (!logoutLatest.current) return [3 /*break*/, 4];
|
|
24
26
|
_a.label = 1;
|
|
25
27
|
case 1:
|
|
26
28
|
_a.trys.push([1, 3, , 4]);
|
|
27
|
-
return [4 /*yield*/,
|
|
29
|
+
return [4 /*yield*/, logoutLatest.current()];
|
|
28
30
|
case 2:
|
|
29
31
|
_a.sent();
|
|
30
32
|
return [3 /*break*/, 4];
|
|
@@ -55,7 +57,7 @@ var UserInfo = function (_a) {
|
|
|
55
57
|
]);
|
|
56
58
|
}
|
|
57
59
|
return items;
|
|
58
|
-
}, [updatePassword]);
|
|
60
|
+
}, [updatePassword, logoutLatest]);
|
|
59
61
|
return (jsxs(Fragment, { children: [jsx(Dropdown, __assign({ menu: { items: items }, trigger: ["click"], placement: "bottomLeft" }, { children: jsxs("div", __assign({ className: "user-operation" }, { children: [jsx(UserOutlined, {}), jsx("span", { children: userInfo === null || userInfo === void 0 ? void 0 : userInfo.realName })] })) })), spinning && jsx(Spin, { spinning: true, tip: "\u9000\u51FA\u767B\u5F55\u4E2D", className: "logout-spin" })] }));
|
|
60
62
|
};
|
|
61
63
|
|
|
@@ -7,10 +7,11 @@ import { MENU_SEARCH_KEY } from './constants.js';
|
|
|
7
7
|
import MemoInput from '../../input/input.js';
|
|
8
8
|
import SearchOutlined from '../../node_modules/@ant-design/icons/es/icons/SearchOutlined.js';
|
|
9
9
|
|
|
10
|
-
var SearchInput = function () {
|
|
11
|
-
var
|
|
12
|
-
var _b = useState(),
|
|
13
|
-
var _c =
|
|
10
|
+
var SearchInput = function (_a) {
|
|
11
|
+
var setVisible = _a.setVisible;
|
|
12
|
+
var _b = useState("菜单搜索"), placeholderText = _b[0], setPlaceholderText = _b[1];
|
|
13
|
+
var _c = useState(), searchValue = _c[0], setSearchValue = _c[1];
|
|
14
|
+
var _d = useContext(LayoutMenuContext), userSubMenus = _d.userSubMenus, setMainMenuSelectedKeys = _d.setMainMenuSelectedKeys, setInnerUserSubMenus = _d.setInnerUserSubMenus;
|
|
14
15
|
var onSearch = useMemoizedFn(function () {
|
|
15
16
|
if (!searchValue) {
|
|
16
17
|
return;
|
|
@@ -32,6 +33,7 @@ var SearchInput = function () {
|
|
|
32
33
|
}
|
|
33
34
|
});
|
|
34
35
|
});
|
|
36
|
+
setVisible(true);
|
|
35
37
|
setMainMenuSelectedKeys === null || setMainMenuSelectedKeys === void 0 ? void 0 : setMainMenuSelectedKeys([MENU_SEARCH_KEY]);
|
|
36
38
|
setInnerUserSubMenus(function (pre) {
|
|
37
39
|
var _a;
|
|
@@ -27,7 +27,7 @@ var MenuCom = function (props) {
|
|
|
27
27
|
var _a;
|
|
28
28
|
(_a = subMenu.current) === null || _a === void 0 ? void 0 : _a.setVisible(false);
|
|
29
29
|
}, []);
|
|
30
|
-
return (jsxs("div", __assign({ className: "zmdms-menu", onMouseLeave: onMouseLeave }, { children: [jsx(Logo, { logo: logo, showLine: visible && !hideSubMenuBg, style: logoStyle }), isShowSearchInput && jsx(SearchInput, {}), jsx(MainMenu, { onMouseEnter: onMouseEnter, addTab: addTab, getPrefixByAppId: getPrefixByAppId, subMenu: subMenu, hideSubMenuBg: hideSubMenuBg, menuItemLine: menuItemLine }), jsx(SubMenu, { ref: subMenu, marginLeft: width, subMenuWidth: subMenuWidth, layoutSiderRef: layoutSiderRef, addTab: addTab, getPrefixByAppId: getPrefixByAppId, subMenuLogo: subMenuLogo, visible: visible, setVisible: setVisible, defaultFixed: defaultFixed, hideSubMenuBg: hideSubMenuBg, subMenuItemLine: subMenuItemLine, openOnlyHasSubmenus: openOnlyHasSubmenus })] })));
|
|
30
|
+
return (jsxs("div", __assign({ className: "zmdms-menu", onMouseLeave: onMouseLeave }, { children: [jsx(Logo, { logo: logo, showLine: visible && !hideSubMenuBg, style: logoStyle }), isShowSearchInput && jsx(SearchInput, { setVisible: setVisible }), jsx(MainMenu, { onMouseEnter: onMouseEnter, addTab: addTab, getPrefixByAppId: getPrefixByAppId, subMenu: subMenu, hideSubMenuBg: hideSubMenuBg, menuItemLine: menuItemLine }), jsx(SubMenu, { ref: subMenu, marginLeft: width, subMenuWidth: subMenuWidth, layoutSiderRef: layoutSiderRef, addTab: addTab, getPrefixByAppId: getPrefixByAppId, subMenuLogo: subMenuLogo, visible: visible, setVisible: setVisible, defaultFixed: defaultFixed, hideSubMenuBg: hideSubMenuBg, subMenuItemLine: subMenuItemLine, openOnlyHasSubmenus: openOnlyHasSubmenus })] })));
|
|
31
31
|
};
|
|
32
32
|
var Menu = memo(MenuCom);
|
|
33
33
|
|
|
@@ -118,7 +118,7 @@ var DynamicDrawer = function (props, ref) {
|
|
|
118
118
|
return __spreadArray(__spreadArray(__spreadArray([], leftList, true), middleList, true), rightList, true);
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
}, [setTempDynamicList
|
|
121
|
+
}, [setTempDynamicList]);
|
|
122
122
|
// 确认
|
|
123
123
|
var onSureHandle = function () {
|
|
124
124
|
onSure && onSure(tempDynamicList);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.zt-alert {
|
|
2
|
+
border-radius: @border-radius;
|
|
3
|
+
border: none;
|
|
4
|
+
> .anticon {
|
|
5
|
+
font-size: 16px;
|
|
6
|
+
margin-right: 10px;
|
|
7
|
+
}
|
|
8
|
+
&.ant-alert-with-description {
|
|
9
|
+
padding: 8px 15px;
|
|
10
|
+
> .anticon {
|
|
11
|
+
margin-top: 2px;
|
|
12
|
+
font-size: 24px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
&.zt-alert--margin-top {
|
|
16
|
+
margin-top: @margin-base;
|
|
17
|
+
}
|
|
18
|
+
&.zt-alert--margin-bottom {
|
|
19
|
+
margin-bottom: @margin-base;
|
|
20
|
+
}
|
|
21
|
+
&.ant-alert-success {
|
|
22
|
+
background-color: @active-color;
|
|
23
|
+
color: #fff;
|
|
24
|
+
.anticon {
|
|
25
|
+
color: #fff;
|
|
26
|
+
}
|
|
27
|
+
.ant-alert-message {
|
|
28
|
+
color: #fff;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&.ant-alert-error {
|
|
32
|
+
background-color: @stress-color;
|
|
33
|
+
color: #fff;
|
|
34
|
+
.anticon {
|
|
35
|
+
color: #fff;
|
|
36
|
+
margin-top: 1px;
|
|
37
|
+
}
|
|
38
|
+
.ant-alert-message {
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
&.ant-alert-info,
|
|
43
|
+
&.ant-alert-warning {
|
|
44
|
+
background-color: @global-color;
|
|
45
|
+
color: @global-text-color;
|
|
46
|
+
.anticon {
|
|
47
|
+
color: @global-text-color;
|
|
48
|
+
}
|
|
49
|
+
.ant-alert-message {
|
|
50
|
+
color: @global-text-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
.zmdms-container {
|
|
2
|
+
background-color: @content-bg;
|
|
3
|
+
.zmdms-sider {
|
|
4
|
+
background-color: @primary-color;
|
|
5
|
+
// background-image: url("../../assets/img/common/menu_bg.jpg");
|
|
6
|
+
background-size: 100% auto;
|
|
7
|
+
z-index: 102;
|
|
8
|
+
background-repeat: no-repeat;
|
|
9
|
+
background-size: cover;
|
|
10
|
+
}
|
|
11
|
+
.zmdms-content {
|
|
12
|
+
background-color: @content-bg;
|
|
13
|
+
}
|
|
14
|
+
// 头部内容
|
|
15
|
+
.zmdms-content--header {
|
|
16
|
+
padding: 0;
|
|
17
|
+
background: @bg-white;
|
|
18
|
+
height: @header-height;
|
|
19
|
+
line-height: @header-height;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
padding-left: 10px;
|
|
24
|
+
.ant-tabs {
|
|
25
|
+
flex: 1;
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
width: calc(100% - 350px);
|
|
28
|
+
.ant-tabs-tab {
|
|
29
|
+
> div {
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
a {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
// padding: 0 5px 0 10px;
|
|
35
|
+
padding: 0 10px 0 20px;
|
|
36
|
+
color: #768696;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.ant-tabs-nav {
|
|
40
|
+
margin-bottom: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.zmdms-content--content {
|
|
45
|
+
height: calc(100vh - @header-height);
|
|
46
|
+
position: relative;
|
|
47
|
+
}
|
|
48
|
+
.zmdms-content--header-info {
|
|
49
|
+
display: flex;
|
|
50
|
+
height: 48px;
|
|
51
|
+
color: @_color_black_1;
|
|
52
|
+
max-width: 350px;
|
|
53
|
+
.full-screen {
|
|
54
|
+
width: 36px;
|
|
55
|
+
text-align: center;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
.user-operation {
|
|
59
|
+
padding: 0 12px;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: rgb(247, 247, 247);
|
|
65
|
+
}
|
|
66
|
+
> span:last-child {
|
|
67
|
+
color: @_color_black_1;
|
|
68
|
+
margin-left: 8px;
|
|
69
|
+
display: inline-block;
|
|
70
|
+
width: 70px;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.zmdms-menu {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
height: 100vh;
|
|
83
|
+
// logo容器
|
|
84
|
+
.zmdms-logo {
|
|
85
|
+
display: block;
|
|
86
|
+
padding: 9px 0 5px 0;
|
|
87
|
+
height: 48px;
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
&.zmdms-logo--line {
|
|
91
|
+
position: relative;
|
|
92
|
+
z-index: 1000;
|
|
93
|
+
&::after {
|
|
94
|
+
content: "";
|
|
95
|
+
position: absolute;
|
|
96
|
+
width: 1px;
|
|
97
|
+
height: 29px;
|
|
98
|
+
background: #505cbe;
|
|
99
|
+
right: -0.5px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
> img {
|
|
103
|
+
margin: 0 auto;
|
|
104
|
+
display: block;
|
|
105
|
+
width: 78px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// 搜索框
|
|
109
|
+
.zmdms-menu--search {
|
|
110
|
+
background-color: rgba(91, 138, 246, 0.4);
|
|
111
|
+
position: relative;
|
|
112
|
+
> input {
|
|
113
|
+
background-color: rgba(91, 138, 246, 0.4);
|
|
114
|
+
border: none;
|
|
115
|
+
color: #fff;
|
|
116
|
+
line-height: 36px;
|
|
117
|
+
height: 36px;
|
|
118
|
+
font-size: @font-size-text;
|
|
119
|
+
&::placeholder {
|
|
120
|
+
color: #fff;
|
|
121
|
+
font-size: @font-size-text;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.zmdms-menu--search__icon {
|
|
125
|
+
position: absolute;
|
|
126
|
+
right: 0;
|
|
127
|
+
top: 3px;
|
|
128
|
+
color: #fff;
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
width: 30px;
|
|
134
|
+
height: 30px;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// 菜单著容器
|
|
139
|
+
.zmdms-menu--main {
|
|
140
|
+
background: transparent;
|
|
141
|
+
border-right: none;
|
|
142
|
+
flex: 1;
|
|
143
|
+
overflow-y: auto;
|
|
144
|
+
overflow-x: hidden;
|
|
145
|
+
// 无背景
|
|
146
|
+
&.zmdms-menu--main-hide-bg {
|
|
147
|
+
.ant-menu-item-selected {
|
|
148
|
+
background: #1566d2 !important;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// 菜单换行显示
|
|
152
|
+
&.zmdms-menu--main-item-line {
|
|
153
|
+
.ant-menu-item {
|
|
154
|
+
min-height: 36px;
|
|
155
|
+
height: auto !important;
|
|
156
|
+
line-height: 20px !important;
|
|
157
|
+
.ant-menu-title-content {
|
|
158
|
+
width: 100%;
|
|
159
|
+
word-wrap: break-word;
|
|
160
|
+
white-space: pre-wrap;
|
|
161
|
+
display: inline-block;
|
|
162
|
+
height: auto !important;
|
|
163
|
+
text-overflow: unset !important;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
> .ant-menu-submenu {
|
|
168
|
+
color: @text-white;
|
|
169
|
+
&.ant-menu-submenu-open {
|
|
170
|
+
> .ant-menu-submenu-title {
|
|
171
|
+
color: #fff;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
> .ant-menu-submenu-title {
|
|
175
|
+
padding: 0;
|
|
176
|
+
margin: 0;
|
|
177
|
+
height: 36px;
|
|
178
|
+
line-height: 36px;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
background-color: #5b76f5;
|
|
182
|
+
background-color: rgba(91, 138, 246, 0.4);
|
|
183
|
+
backdrop-filter: blur(4px);
|
|
184
|
+
font-size: @font-size-text;
|
|
185
|
+
color: rgba(255, 255, 255, 0.65);
|
|
186
|
+
.ant-menu-submenu-arrow {
|
|
187
|
+
color: rgba(255, 255, 255, 0.65);
|
|
188
|
+
right: 6px;
|
|
189
|
+
}
|
|
190
|
+
.ant-menu-title-content {
|
|
191
|
+
flex: none;
|
|
192
|
+
width: 88%;
|
|
193
|
+
}
|
|
194
|
+
&:hover {
|
|
195
|
+
color: @text-white;
|
|
196
|
+
.ant-menu-submenu-arrow {
|
|
197
|
+
color: @text-white;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
.ant-menu-sub.ant-menu-inline {
|
|
202
|
+
background: transparent;
|
|
203
|
+
}
|
|
204
|
+
.ant-menu-sub {
|
|
205
|
+
> .ant-menu-item {
|
|
206
|
+
font-size: @font-size-text;
|
|
207
|
+
height: @menu-height;
|
|
208
|
+
line-height: @menu-height;
|
|
209
|
+
margin: 0;
|
|
210
|
+
color: @menu-color;
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
// padding-left: 15px !important;
|
|
214
|
+
a {
|
|
215
|
+
color: inherit;
|
|
216
|
+
}
|
|
217
|
+
&:active {
|
|
218
|
+
background: transparent;
|
|
219
|
+
}
|
|
220
|
+
&:hover {
|
|
221
|
+
color: @text-white;
|
|
222
|
+
}
|
|
223
|
+
&:not(:last-child) {
|
|
224
|
+
margin-bottom: 0;
|
|
225
|
+
}
|
|
226
|
+
&.ant-menu-item-selected {
|
|
227
|
+
// UI审查 1566d2 => 5b76f5
|
|
228
|
+
background: #5b76f5;
|
|
229
|
+
color: @text-white;
|
|
230
|
+
width: 100%;
|
|
231
|
+
&::after {
|
|
232
|
+
border-right: none;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
/* 浏览器滚动条样式 */
|
|
239
|
+
&::-webkit-scrollbar {
|
|
240
|
+
width: 6px;
|
|
241
|
+
height: 4px;
|
|
242
|
+
}
|
|
243
|
+
&::-webkit-scrollbar-track {
|
|
244
|
+
background: rgba(255, 255, 255, 0);
|
|
245
|
+
border-radius: 4px;
|
|
246
|
+
}
|
|
247
|
+
&::-webkit-scrollbar-thumb {
|
|
248
|
+
background: @menu-scrollbar-bg;
|
|
249
|
+
border-radius: 4px;
|
|
250
|
+
}
|
|
251
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
252
|
+
background: @menu-scrollbar-bg;
|
|
253
|
+
}
|
|
254
|
+
> .ant-menu-item {
|
|
255
|
+
font-size: @font-size-text;
|
|
256
|
+
height: @menu-height;
|
|
257
|
+
line-height: @menu-height;
|
|
258
|
+
margin: 0;
|
|
259
|
+
color: @menu-color;
|
|
260
|
+
display: flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
a {
|
|
263
|
+
color: inherit;
|
|
264
|
+
}
|
|
265
|
+
&:active {
|
|
266
|
+
background: transparent;
|
|
267
|
+
}
|
|
268
|
+
&:hover {
|
|
269
|
+
color: @text-white;
|
|
270
|
+
}
|
|
271
|
+
&:not(:last-child) {
|
|
272
|
+
margin-bottom: 0;
|
|
273
|
+
}
|
|
274
|
+
&.ant-menu-item-selected {
|
|
275
|
+
background: @primary-color;
|
|
276
|
+
color: @text-white;
|
|
277
|
+
width: 100%;
|
|
278
|
+
&::after {
|
|
279
|
+
border-right: none;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// 二级菜单
|
|
287
|
+
.zmdms-menu--sub {
|
|
288
|
+
padding: 0;
|
|
289
|
+
.ant-drawer-content {
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
background: transparent;
|
|
292
|
+
background-size: cover;
|
|
293
|
+
background-repeat: no-repeat;
|
|
294
|
+
background-position: 100%;
|
|
295
|
+
.ant-menu {
|
|
296
|
+
background: transparent;
|
|
297
|
+
color: #fff;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
&.ant-drawer-left > .ant-drawer-content-wrapper {
|
|
301
|
+
left: -1px;
|
|
302
|
+
}
|
|
303
|
+
.ant-drawer-header {
|
|
304
|
+
padding: 0;
|
|
305
|
+
border-bottom: none;
|
|
306
|
+
background: transparent;
|
|
307
|
+
.ant-drawer-header-title {
|
|
308
|
+
height: 48px;
|
|
309
|
+
// padding: 0 10px;
|
|
310
|
+
color: #fff;
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
.ant-drawer-title {
|
|
315
|
+
color: #fff;
|
|
316
|
+
font-size: 14px;
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
justify-content: center;
|
|
320
|
+
img {
|
|
321
|
+
width: 118px;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&.zmdms-menu--sub-margin .ant-drawer-body {
|
|
328
|
+
// margin-top: 48px;
|
|
329
|
+
}
|
|
330
|
+
.ant-drawer-body {
|
|
331
|
+
padding: 0px;
|
|
332
|
+
font-size: @font-size-text;
|
|
333
|
+
// border-top: 1px solid #5670ea;
|
|
334
|
+
background: rgba(91, 118, 245, 0.4);
|
|
335
|
+
backdrop-filter: blur(2px);
|
|
336
|
+
overflow-x: hidden;
|
|
337
|
+
/* 浏览器滚动条样式 */
|
|
338
|
+
&::-webkit-scrollbar {
|
|
339
|
+
width: 6px;
|
|
340
|
+
height: 4px;
|
|
341
|
+
}
|
|
342
|
+
&::-webkit-scrollbar-track {
|
|
343
|
+
background: rgba(255, 255, 255, 0);
|
|
344
|
+
border-radius: 4px;
|
|
345
|
+
}
|
|
346
|
+
&::-webkit-scrollbar-thumb {
|
|
347
|
+
background: @menu-scrollbar-bg;
|
|
348
|
+
border-radius: 4px;
|
|
349
|
+
}
|
|
350
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
351
|
+
background: @menu-scrollbar-bg;
|
|
352
|
+
}
|
|
353
|
+
.ant-menu-submenu.ant-menu-submenu-inline {
|
|
354
|
+
// UI审查 增加底部边框
|
|
355
|
+
border-bottom: 1px solid rgba(141, 158, 255, 0.28);
|
|
356
|
+
padding-bottom: 0;
|
|
357
|
+
}
|
|
358
|
+
.ant-menu-sub.ant-menu-inline {
|
|
359
|
+
// background: #fff;
|
|
360
|
+
background: transparent;
|
|
361
|
+
// UI审查 0 5px => 0 10px;
|
|
362
|
+
padding: 0 10px;
|
|
363
|
+
}
|
|
364
|
+
.ant-menu-sub.ant-menu-inline > .ant-menu-item,
|
|
365
|
+
.ant-menu-item {
|
|
366
|
+
// UI审查 行高修改
|
|
367
|
+
height: @sub-menu-height;
|
|
368
|
+
line-height: @sub-menu-height;
|
|
369
|
+
// color: @submenu-color;
|
|
370
|
+
color: #fff;
|
|
371
|
+
display: flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
font-size: @font-size-text;
|
|
374
|
+
border-radius: 4px;
|
|
375
|
+
margin: 0;
|
|
376
|
+
&:not(:last-child) {
|
|
377
|
+
margin-bottom: 0;
|
|
378
|
+
}
|
|
379
|
+
a {
|
|
380
|
+
color: #fff;
|
|
381
|
+
}
|
|
382
|
+
&:active {
|
|
383
|
+
background: transparent;
|
|
384
|
+
}
|
|
385
|
+
&:last-child {
|
|
386
|
+
margin-bottom: 10px;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title,
|
|
390
|
+
.ant-menu-submenu-title {
|
|
391
|
+
font-size: @font-size-text;
|
|
392
|
+
height: 30px;
|
|
393
|
+
line-height: 30px;
|
|
394
|
+
font-weight: 700;
|
|
395
|
+
// color: @submenu-color;
|
|
396
|
+
color: #fff;
|
|
397
|
+
.ant-menu-submenu-arrow {
|
|
398
|
+
color: #fff;
|
|
399
|
+
}
|
|
400
|
+
&:hover {
|
|
401
|
+
// color: @primary-color;
|
|
402
|
+
color: #fff;
|
|
403
|
+
.ant-menu-submenu-arrow {
|
|
404
|
+
// color: @primary-color;
|
|
405
|
+
color: #fff;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
&:active {
|
|
409
|
+
background: transparent;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.ant-menu-root > .ant-menu-item-only-child {
|
|
414
|
+
margin-top: 2px;
|
|
415
|
+
.ant-menu-title-content {
|
|
416
|
+
font-weight: 700;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
.ant-menu-item-selected {
|
|
420
|
+
color: @text-white;
|
|
421
|
+
background-color: @menu-selected-bg !important;
|
|
422
|
+
&::after {
|
|
423
|
+
border-right: none;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
.ant-drawer-footer {
|
|
428
|
+
padding: 3px 10px;
|
|
429
|
+
height: @footer-height;
|
|
430
|
+
line-height: @footer-height;
|
|
431
|
+
border-top: 1px solid #5670ea;
|
|
432
|
+
background: rgba(91, 118, 245, 0.4);
|
|
433
|
+
backdrop-filter: blur(2px);
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
justify-content: center;
|
|
437
|
+
.zt-btn-link {
|
|
438
|
+
color: #fff;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// 无背景
|
|
443
|
+
&.zmdms-menu--sub-hide-bg {
|
|
444
|
+
.ant-drawer-content {
|
|
445
|
+
background: #fff;
|
|
446
|
+
.ant-menu {
|
|
447
|
+
background: #fff;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
.ant-drawer-header {
|
|
451
|
+
background: #fff;
|
|
452
|
+
border-bottom: 1px solid #ebf3fe;
|
|
453
|
+
}
|
|
454
|
+
.ant-drawer-body {
|
|
455
|
+
background: #fff;
|
|
456
|
+
backdrop-filter: none;
|
|
457
|
+
&::-webkit-scrollbar {
|
|
458
|
+
width: 6px;
|
|
459
|
+
height: 4px;
|
|
460
|
+
}
|
|
461
|
+
&::-webkit-scrollbar-track {
|
|
462
|
+
background: #fff;
|
|
463
|
+
border-radius: 4px;
|
|
464
|
+
}
|
|
465
|
+
&::-webkit-scrollbar-thumb {
|
|
466
|
+
background: #8695a1;
|
|
467
|
+
border-radius: 4px;
|
|
468
|
+
}
|
|
469
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
470
|
+
background: #727e88;
|
|
471
|
+
}
|
|
472
|
+
.ant-menu-sub.ant-menu-inline > .ant-menu-item,
|
|
473
|
+
.ant-menu-item {
|
|
474
|
+
color: rgba(0, 0, 0, 0.85);
|
|
475
|
+
a {
|
|
476
|
+
color: rgba(0, 0, 0, 0.85);
|
|
477
|
+
&:hover {
|
|
478
|
+
color: @primary-color;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title,
|
|
484
|
+
.ant-menu-submenu-title {
|
|
485
|
+
font-size: @font-size-text;
|
|
486
|
+
height: 30px;
|
|
487
|
+
line-height: 30px;
|
|
488
|
+
font-weight: 700;
|
|
489
|
+
// color: @submenu-color;
|
|
490
|
+
color: rgba(0, 0, 0, 0.65);
|
|
491
|
+
.ant-menu-submenu-arrow {
|
|
492
|
+
color: rgba(0, 0, 0, 0.85);
|
|
493
|
+
}
|
|
494
|
+
&:hover {
|
|
495
|
+
color: @primary-color;
|
|
496
|
+
.ant-menu-submenu-arrow {
|
|
497
|
+
color: @primary-color;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
&:active {
|
|
501
|
+
background: transparent;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.ant-menu-item-selected {
|
|
506
|
+
color: @link-color !important;
|
|
507
|
+
background-color: #e6f7ff !important;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
.ant-drawer-footer {
|
|
511
|
+
border-top: 1px solid #ebf3fe;
|
|
512
|
+
background: none;
|
|
513
|
+
backdrop-filter: none;
|
|
514
|
+
.zt-btn-link {
|
|
515
|
+
color: @link-color !important;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
// 菜单换行显示
|
|
520
|
+
&.zmdms-menu--sub-item-line {
|
|
521
|
+
.ant-menu-item {
|
|
522
|
+
min-height: 30px;
|
|
523
|
+
height: auto !important;
|
|
524
|
+
line-height: 20px !important;
|
|
525
|
+
.ant-menu-title-content {
|
|
526
|
+
width: 100%;
|
|
527
|
+
word-wrap: break-word;
|
|
528
|
+
white-space: pre-wrap;
|
|
529
|
+
display: inline-block;
|
|
530
|
+
height: auto !important;
|
|
531
|
+
text-overflow: unset !important;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.logout-spin {
|
|
538
|
+
position: fixed;
|
|
539
|
+
top: 0;
|
|
540
|
+
left: 0;
|
|
541
|
+
right: 0;
|
|
542
|
+
bottom: 0;
|
|
543
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
544
|
+
z-index: 1000;
|
|
545
|
+
padding-top: 100px;
|
|
546
|
+
}
|