antd-mobile
Version:
基于 React 的移动设计规范实现
25 lines (24 loc) • 559 B
TypeScript
/// <reference types="react" />
import React from 'react';
export interface DataItem {
label?: any;
value?: any;
children?: any;
isLeaf?: boolean;
disabled?: boolean;
[key: string]: any;
}
export interface MenuProps {
/** web only */
prefixCls?: string;
subMenuPrefixCls?: string;
radioPrefixCls?: string;
className?: string;
style?: React.CSSProperties;
data?: Array<DataItem>;
defaultValue?: Array<string>;
value?: Array<string>;
onChange?: Function;
level?: 1 | 2;
height?: number;
}