You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

import * as React from 'react';
import { BadgeProps } from '../badge';
export interface ActionSheetOptions {
maskClosable?: boolean;
cancelButtonIndex?: number;
destructiveButtonIndex?: number;
title?: React.ReactNode;
message?: React.ReactNode;
className?: string;
transitionName?: string;
maskTransitionName?: string;
}
export interface ShareOption {
icon: React.ReactNode;
title: string;
}
export interface ShareActionSheetWithOptions extends ActionSheetOptions {
options: ShareOption[] | ShareOption[][];
badges?: BadgesOption[];
}
export interface BadgesOption extends BadgeProps {
index: number;
}
export interface ActionSheetWithOptions extends ActionSheetOptions {
options: string[];
badges?: BadgesOption[];
}
export declare type ActionCallBack = (index: number, rowIndex?: number) => PromiseLike<any> | void;
declare const _default: {
showActionSheetWithOptions(config: ActionSheetWithOptions, callback?: ActionCallBack): void;
showShareActionSheetWithOptions(config: ShareActionSheetWithOptions, callback?: ActionCallBack): void;
close(): void;
};
export default _default;