feat: move admin-layout and auth-layout to route-switch

This commit is contained in:
chenos 2022-01-17 12:25:10 +08:00
parent 224a08c057
commit 29cf274a52
8 changed files with 7 additions and 4 deletions

View File

@ -810,7 +810,7 @@ const { data, loading } = useRequest();
但是这样的方式不利于 Providers 的管理和扩展,为此提炼了 `compose()` 函数用于配置多个 providers如下
<code defaultShowCode="true" titile="compose" src="./src/application/demos/demo1.tsx"/>
<code defaultShowCode="true" titile="compose" src="./src/application/demos/demo1/index.tsx"/>
## Application

View File

@ -3,10 +3,8 @@ debug.log = console.log.bind(console);
export * from './i18n';
export * from './acl';
export * from './admin-layout';
export * from './antd-config-provider';
export * from './api-client';
export * from './auth-layout';
export * from './collection-manager';
export * from './current-user';
export * from './document-title';

View File

@ -1,10 +1,12 @@
import { Table } from 'antd';
import React from 'react';
export function AdminLayout(props: any) {
return (
<div>
<Table/>
AdminLayout
</div>
);
}

View File

@ -0,0 +1,2 @@
export * from './admin-layout';
export * from './auth-layout';

View File

@ -3,3 +3,4 @@ export * from './hooks';
export * from './RouteSwitch';
export * from './RouteSwitchProvider';
export * from './types';
export * from './antd';