@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
14 lines (13 loc) • 463 B
TypeScript
export type PopoverTheme = 'light' | 'dark';
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
export interface PopoverList {
key?: string;
name: string;
icon?: React.ReactNode;
disabled?: boolean;
className?: string;
action?: {
icon?: React.ReactNode;
onClick?: (e: any) => void;
};
}