import React from 'react'; import { MenuProps } from '../menu/index'; export interface NavProps { /**偏移量 */ offset?: [number, number]; /** * 相对于100vw 需要减少的偏移量 */ offsetWidth?: number; /** * 相对于100vh 需要减少的偏移量 */ offsetHeight?: number; /** * 左侧导航栏是否可以被折叠。它将决定折叠按钮是否显示 */ collapsible?: boolean; /** * 左侧导航栏的折叠状态,设置该属性让该组件成为完全受控的组件 */ collapsed?: boolean; /** * 在非受控模式下,左侧导航栏的默认折叠状态 */ defaultCollapsed?: boolean; /** * 左侧导航栏折叠按钮被点击的回调 */ onCollapseTriggerClick?: (currentCollapsed: boolean, event: React.MouseEvent) => void; /** * 点击Mask区域 */ onMaskClick?: (currentCollapsed: boolean, event: React.MouseEvent) => void; /** * 内容 */ children?: React.ReactNode; /** * 设置菜单 */ nav?: MenuProps; /** * className */ className?: object | string; /** * style */ style?: object; /** * 展开内容的宽度 */ width?: number; /** * 是否显示遮罩 */ hasMask?: boolean; /** * 出现的类型:“normal和dialog” */ type?: "normal" | "dialog"; } declare const Nav: React.FC; export default Nav;