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
Show 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 @@
...
@@ -5,10 +5,9 @@
*/
*/
import
{
ConnectProps
,
ConnectState
}
from
'
@/models/connect
'
;
import
{
ConnectProps
,
ConnectState
}
from
'
@/models/connect
'
;
import
{
import
ProLayout
,
{
MenuDataItem
,
MenuDataItem
,
BasicLayout
as
ProLayoutComponents
,
BasicLayoutProps
as
ProLayoutProps
,
BasicLayoutProps
as
ProLayoutComponentsProps
,
Settings
,
Settings
,
}
from
'
@ant-design/pro-layout
'
;
}
from
'
@ant-design/pro-layout
'
;
import
React
,
{
useState
}
from
'
react
'
;
import
React
,
{
useState
}
from
'
react
'
;
...
@@ -21,7 +20,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
...
@@ -21,7 +20,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
import
{
isAntDesignPro
}
from
'
@/utils/utils
'
;
import
{
isAntDesignPro
}
from
'
@/utils/utils
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
logo
from
'
../assets/logo.svg
'
;
export
interface
BasicLayoutProps
extends
ProLayout
Components
Props
,
ConnectProps
{
export
interface
BasicLayoutProps
extends
ProLayoutProps
,
ConnectProps
{
breadcrumbNameMap
:
{
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
;
[
path
:
string
]:
MenuDataItem
;
};
};
...
@@ -98,7 +97,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
...
@@ -98,7 +97,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
});
});
return
(
return
(
<
ProLayout
Components
<
ProLayout
logo
=
{
logo
}
logo
=
{
logo
}
onCollapse
=
{
handleMenuCollapse
}
onCollapse
=
{
handleMenuCollapse
}
menuItemRender
=
{
(
menuItemProps
,
defaultDom
)
=>
(
menuItemRender
=
{
(
menuItemProps
,
defaultDom
)
=>
(
...
@@ -122,7 +121,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
...
@@ -122,7 +121,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
{
...
settings
}
{
...
settings
}
>
>
{
children
}
{
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