UNPKG

test-nut-ui

Version:

<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>

43 lines (42 loc) 999 B
import React, { FunctionComponent } from 'react'; import '@nascent/nutui-icons-react/lib/style.css'; import { BasicComponent } from '../../utils/typings'; export interface MenuProps extends BasicComponent { /** * 选项的选中态图标颜色 * @default #F2270C */ activeColor: string /** * 是否在点击遮罩层后关闭菜单 * @default true */ closeOnOverlayClick: boolean /** * 滚动后是否固定,可设置固定位置 * @default true */ scrollFixed: boolean | string | number /** * 背景是否锁定 * @default true */ lockScroll: boolean /** * 标题栏是否左右滑动 * @default false */ scrollX: boolean /** * 自定义标题图标 * @default - */ icon: React.ReactNode children: React.ReactNode; /** * 每个标题的最小宽度 * @default - */ itemWidth?: number } export declare const Menu: FunctionComponent<Partial<MenuProps>>;