Commit d75bbb29 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

codestyle: fix #4511 change Layout name

parent 277ea601
...@@ -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 ProLayoutComponentsProps, 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 (
<ProLayoutComponents <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}
</ProLayoutComponents> </ProLayout>
); );
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment