feat: move admin-layout and auth-layout to route-switch
This commit is contained in:
		
							parent
							
								
									224a08c057
								
							
						
					
					
						commit
						29cf274a52
					
				@ -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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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';
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,12 @@
 | 
			
		||||
import { Table } from 'antd';
 | 
			
		||||
import React from 'react';
 | 
			
		||||
 | 
			
		||||
export function AdminLayout(props: any) {
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <div>
 | 
			
		||||
      
 | 
			
		||||
      <Table/>
 | 
			
		||||
      AdminLayout
 | 
			
		||||
    </div>
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										2
									
								
								packages/client/src/route-switch/antd/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								packages/client/src/route-switch/antd/index.ts
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
export * from './admin-layout';
 | 
			
		||||
export * from './auth-layout';
 | 
			
		||||
@ -3,3 +3,4 @@ export * from './hooks';
 | 
			
		||||
export * from './RouteSwitch';
 | 
			
		||||
export * from './RouteSwitchProvider';
 | 
			
		||||
export * from './types';
 | 
			
		||||
export * from './antd';
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user