Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
A
audit_material_manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Yang
audit_material_manage
Commits
0b2f0f78
Commit
0b2f0f78
authored
Aug 04, 2026
by
Andy-bubu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 统一侧栏折叠图标
parent
3b3884f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
13 deletions
+38
-13
AppIcons.jsx
src/components/AppIcons.jsx
+36
-4
Layout.jsx
src/pages/project_manager_xy/Layout.jsx
+2
-9
No files found.
src/components/AppIcons.jsx
View file @
0b2f0f78
...
...
@@ -21,8 +21,6 @@ import LeftOutlined from '@ant-design/icons/LeftOutlined';
import
LogoutOutlined
from
'@ant-design/icons/LogoutOutlined'
;
import
InboxOutlined
from
'@ant-design/icons/InboxOutlined'
;
import
InfoCircleOutlined
from
'@ant-design/icons/InfoCircleOutlined'
;
import
MenuFoldOutlined
from
'@ant-design/icons/MenuFoldOutlined'
;
import
MenuUnfoldOutlined
from
'@ant-design/icons/MenuUnfoldOutlined'
;
import
MoreOutlined
from
'@ant-design/icons/MoreOutlined'
;
import
MoonOutlined
from
'@ant-design/icons/MoonOutlined'
;
import
OrderedListOutlined
from
'@ant-design/icons/OrderedListOutlined'
;
...
...
@@ -74,8 +72,42 @@ export const DocumentTextIcon = FileText;
export
const
Info
=
withSize
(
InfoCircleOutlined
);
export
const
Folder
=
withSize
(
FolderOpenOutlined
);
export
const
LogOut
=
withSize
(
LogoutOutlined
);
export
const
MenuFold
=
withSize
(
MenuFoldOutlined
);
export
const
MenuUnfold
=
withSize
(
MenuUnfoldOutlined
);
export
function
SidebarPanel
({
size
=
20
,
style
,
...
props
})
{
return
(
<
span
aria
-
hidden=
"true"
role=
"img"
{
...
props
}
style=
{
iconStyle
(
size
,
style
)
}
className=
{
[
'anticon'
,
props
.
className
].
filter
(
Boolean
).
join
(
' '
)
}
>
<
svg
viewBox=
"0 0 24 24"
width=
"1em"
height=
"1em"
fill=
"none"
focusable=
"false"
aria
-
hidden=
"true"
>
<
rect
x=
"3.5"
y=
"4"
width=
"17"
height=
"16"
rx=
"3.5"
stroke=
"currentColor"
strokeWidth=
"2"
/>
<
path
d=
"M9 4.75V19.25"
stroke=
"currentColor"
strokeWidth=
"2"
strokeLinecap=
"round"
/>
</
svg
>
</
span
>
);
}
export
const
More
=
withSize
(
MoreOutlined
);
export
const
Moon
=
withSize
(
MoonOutlined
);
export
const
Project
=
withSize
(
ProjectOutlined
);
...
...
src/pages/project_manager_xy/Layout.jsx
View file @
0b2f0f78
import
xinyuanLogoRed
from
'@/assets/xy-logo_small.png'
;
import
xinyuanLogoWhite
from
'@/assets/xy-logo_small_white.png'
;
import
{
SidebarPanel
}
from
'@/components/AppIcons'
;
import
ApplicationSwitcherDialog
from
'@/pages/project_manager_xy/ApplicationSwitcherDialog'
;
import
{
UserContext
}
from
'@/wrapper/Auth'
;
import
{
AppstoreOutlined
,
BarsOutlined
,
CloseOutlined
,
DatabaseOutlined
,
FolderOpenOutlined
,
LogoutOutlined
,
MenuFoldOutlined
,
MenuUnfoldOutlined
,
MoonOutlined
,
SunOutlined
,
}
from
'@ant-design/icons'
;
...
...
@@ -299,12 +297,7 @@ export default function ProjectManagerLayout() {
aria
-
label=
{
isSidebarOpen
?
'收起侧栏'
:
'展开侧栏'
}
className=
"size-8 bg-transparent hover:bg-[var(--default)] max-lg:size-9"
>
<
span
className=
"hidden lg:inline-grid"
>
{
isSidebarOpen
?
<
MenuFoldOutlined
/>
:
<
MenuUnfoldOutlined
/>
}
</
span
>
<
span
className=
"inline-grid lg:hidden"
>
<
BarsOutlined
/>
</
span
>
<
SidebarPanel
/>
</
IconButton
>
<
div
className=
"min-w-0 flex-1 truncate text-xl font-semibold leading-7 tracking-normal text-[var(--foreground)]"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment