tdesign-miniprogram
Version:
tdesign-miniprogram
44 lines (43 loc) • 991 B
TypeScript
import { OverlayProps } from '../overlay/index';
export interface TdToastProps {
direction?: {
type: StringConstructor;
value?: 'row' | 'column';
};
duration?: {
type: NumberConstructor;
value?: number;
};
icon?: {
type: null;
value?: string | object;
};
message?: {
type: StringConstructor;
value?: string;
};
overlayProps?: {
type: ObjectConstructor;
value?: OverlayProps;
};
placement?: {
type: StringConstructor;
value?: 'top' | 'middle' | 'bottom';
};
preventScrollThrough?: {
type: BooleanConstructor;
value?: boolean;
};
showOverlay?: {
type: BooleanConstructor;
value?: boolean;
};
theme?: {
type: StringConstructor;
value?: 'loading' | 'success' | 'warning' | 'error';
};
usingCustomNavbar?: {
type: BooleanConstructor;
value?: boolean;
};
}