Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
d75bbb29
Commit
d75bbb29
authored
Jun 18, 2019
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codestyle: fix #4511 change Layout name
parent
277ea601
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/layouts/BasicLayout.tsx
src/layouts/BasicLayout.tsx
+5
-6
No files found.
src/layouts/BasicLayout.tsx
View file @
d75bbb29
...
...
@@ -5,10 +5,9 @@
*/
import
{
ConnectProps
,
ConnectState
}
from
'
@/models/connect
'
;
import
{
import
ProLayout
,
{
MenuDataItem
,
BasicLayout
as
ProLayoutComponents
,
BasicLayoutProps
as
ProLayoutComponentsProps
,
BasicLayoutProps
as
ProLayoutProps
,
Settings
,
}
from
'
@ant-design/pro-layout
'
;
import
React
,
{
useState
}
from
'
react
'
;
...
...
@@ -21,7 +20,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
import
{
isAntDesignPro
}
from
'
@/utils/utils
'
;
import
logo
from
'
../assets/logo.svg
'
;
export
interface
BasicLayoutProps
extends
ProLayout
Components
Props
,
ConnectProps
{
export
interface
BasicLayoutProps
extends
ProLayoutProps
,
ConnectProps
{
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
;
};
...
...
@@ -98,7 +97,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
});
return
(
<
ProLayout
Components
<
ProLayout
logo
=
{
logo
}
onCollapse
=
{
handleMenuCollapse
}
menuItemRender
=
{
(
menuItemProps
,
defaultDom
)
=>
(
...
...
@@ -122,7 +121,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
{
...
settings
}
>
{
children
}
</
ProLayout
Components
>
</
ProLayout
>
);
};
...
...
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