UNPKG

@lvxiaowu/antd4

Version:

antd4-components

37 lines (35 loc) 814 B
import { ReactNode, FC, CSSProperties } from 'react' interface MenuConfig { id: number | string title: string path?: string children?: Array<MenuConfig> } interface FieldNames { id?: 'id' title?: 'title' path?: 'path' children?: 'children' } export interface AppLayoutProps { menuConfig?: Array<MenuConfig> footer?: ReactNode extra?: ReactNode logo?: ReactNode sideStyle?: CSSProperties sideWidth?: number | string /** * 将菜单配置做字段转换 */ fieldNames?: FieldNames /** * 自定义侧边栏、顶部栏 */ sidebar?: ReactNode topbar?: ReactNode onCollapse?(collapsed: boolean) children?: ReactNode mode?: 'default' | 'full' | 'sideOnly' } declare const AppLayout: FC<AppLayoutProps> export default AppLayout