Files
quinn-wx/components/dialog/type.d.ts
2022-12-14 19:39:14 +08:00

58 lines
1.4 KiB
TypeScript

import { ButtonProps } from '../button/index';
export interface TdDialogProps {
actions?: {
type: ArrayConstructor;
value?: Array<ButtonProps>;
};
buttonLayout?: {
type: StringConstructor;
value?: 'horizontal' | 'vertical';
};
cancelBtn?: {
type: StringConstructor;
optionalTypes: Array<ObjectConstructor>;
value?: string | ButtonProps | null;
};
closeOnOverlayClick?: {
type: BooleanConstructor;
value?: boolean;
};
confirmBtn?: {
type: StringConstructor;
optionalTypes: Array<ObjectConstructor>;
value?: string | ButtonProps | null;
};
content?: {
type: StringConstructor;
value?: string;
};
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class', 't-class-content', 't-class-confirm', 't-class-cancel'];
};
overlayProps?: {
type: ObjectConstructor;
value?: object;
};
preventScrollThrough?: {
type: BooleanConstructor;
value?: boolean;
};
showOverlay?: {
type: BooleanConstructor;
value?: boolean;
};
title?: {
type: StringConstructor;
value?: string;
};
visible?: {
type: BooleanConstructor;
value?: boolean;
};
zIndex?: {
type: NumberConstructor;
value?: number;
};
}