@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
57 lines (56 loc) • 1.35 kB
TypeScript
import { default as React, FunctionComponent, MouseEvent } from 'react';
import { BasicComponent } from '../../utils/typings';
import { FixedNavType, FixedNavItem, FixedNavPosition } from './types';
export interface FixedNavProps extends BasicComponent {
/**
* 是否打开
* @default false
*/
visible: boolean
/**
* 展开时是否显示遮罩
* @default true
*/
overlay: boolean
/**
* 悬浮列表内容数据
* @default []
*/
list: Array<FixedNavItem>
/**
* 收起列表按钮文案
* @default 收起导航
*/
activeText: string
/**
* 展开列表按钮文案
* @default 快速导航
*/
inactiveText: string
/**
* fixed 垂直位置
* @default {top: 'auto', bottom: 'auto'}
*/
position: FixedNavPosition
/**
* 导航方向
* @default right
*/
type: FixedNavType
/**
* 展开收起按钮回调
* @default -
*/
onChange: (item: any) => void
/**
* 选择之后触发
* @default -
*/
onSelect: (item: any, event: MouseEvent) => void
/**
* 自定义按钮
* @default -
*/
content: React.ReactNode
}
export declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;