diff --git a/packages/client/intro.md b/packages/client/intro.md index d66076b69..9797cbcda 100644 --- a/packages/client/intro.md +++ b/packages/client/intro.md @@ -810,7 +810,7 @@ const { data, loading } = useRequest(); 但是这样的方式不利于 Providers 的管理和扩展,为此提炼了 `compose()` 函数用于配置多个 providers,如下: - + ## Application diff --git a/packages/client/src/index.tsx b/packages/client/src/index.tsx index cbfd799b3..a7be8354d 100644 --- a/packages/client/src/index.tsx +++ b/packages/client/src/index.tsx @@ -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'; diff --git a/packages/client/src/admin-layout/index.md b/packages/client/src/route-switch/antd/admin-layout/index.md similarity index 100% rename from packages/client/src/admin-layout/index.md rename to packages/client/src/route-switch/antd/admin-layout/index.md diff --git a/packages/client/src/admin-layout/index.tsx b/packages/client/src/route-switch/antd/admin-layout/index.tsx similarity index 68% rename from packages/client/src/admin-layout/index.tsx rename to packages/client/src/route-switch/antd/admin-layout/index.tsx index ff2f94b2b..4f25c67ab 100644 --- a/packages/client/src/admin-layout/index.tsx +++ b/packages/client/src/route-switch/antd/admin-layout/index.tsx @@ -1,10 +1,12 @@ +import { Table } from 'antd'; import React from 'react'; export function AdminLayout(props: any) { return (
- + + AdminLayout ); } diff --git a/packages/client/src/auth-layout/index.md b/packages/client/src/route-switch/antd/auth-layout/index.md similarity index 100% rename from packages/client/src/auth-layout/index.md rename to packages/client/src/route-switch/antd/auth-layout/index.md diff --git a/packages/client/src/auth-layout/index.tsx b/packages/client/src/route-switch/antd/auth-layout/index.tsx similarity index 100% rename from packages/client/src/auth-layout/index.tsx rename to packages/client/src/route-switch/antd/auth-layout/index.tsx diff --git a/packages/client/src/route-switch/antd/index.ts b/packages/client/src/route-switch/antd/index.ts new file mode 100644 index 000000000..1e732acc5 --- /dev/null +++ b/packages/client/src/route-switch/antd/index.ts @@ -0,0 +1,2 @@ +export * from './admin-layout'; +export * from './auth-layout'; diff --git a/packages/client/src/route-switch/index.tsx b/packages/client/src/route-switch/index.tsx index c5cfdca7a..bc097bd98 100644 --- a/packages/client/src/route-switch/index.tsx +++ b/packages/client/src/route-switch/index.tsx @@ -3,3 +3,4 @@ export * from './hooks'; export * from './RouteSwitch'; export * from './RouteSwitchProvider'; export * from './types'; +export * from './antd';