@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
16 lines (15 loc) • 662 B
TypeScript
import { default as React, FunctionComponent, ReactNode } from 'react';
import { PopupProps } from '../popup/index';
export type ActionSheetOption<T> = {
[key: string]: T;
};
export interface ActionSheetProps extends PopupProps {
visible: boolean;
description: ReactNode;
options: ActionSheetOption<string | boolean>[];
optionKey: ActionSheetOption<string>;
cancelText: ReactNode;
onCancel: () => void;
onSelect: (item: ActionSheetOption<string | boolean>, index: number) => void;
}
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onSelect'>>;