55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import { TdTransitionProps } from '../transition/index';
|
|
export interface TdPopupProps {
|
|
closeBtn?: {
|
|
type: BooleanConstructor;
|
|
value?: boolean;
|
|
};
|
|
closeOnOverlayClick?: {
|
|
type: BooleanConstructor;
|
|
value?: boolean;
|
|
};
|
|
content?: {
|
|
type: StringConstructor;
|
|
value?: string;
|
|
};
|
|
customStyle?: {
|
|
type: StringConstructor;
|
|
value?: string;
|
|
};
|
|
externalClasses?: {
|
|
type: ArrayConstructor;
|
|
value?: ['t-class', 't-class-overlay', 't-class-content'];
|
|
};
|
|
overlayProps?: {
|
|
type: ObjectConstructor;
|
|
value?: object;
|
|
};
|
|
placement?: {
|
|
type: StringConstructor;
|
|
value?: 'top' | 'left' | 'right' | 'bottom' | 'center';
|
|
};
|
|
preventScrollThrough?: {
|
|
type: BooleanConstructor;
|
|
value?: boolean;
|
|
};
|
|
showOverlay?: {
|
|
type: BooleanConstructor;
|
|
value?: boolean;
|
|
};
|
|
transitionProps?: {
|
|
type: ObjectConstructor;
|
|
value?: TdTransitionProps;
|
|
};
|
|
visible?: {
|
|
type: BooleanConstructor;
|
|
value?: boolean;
|
|
};
|
|
zIndex?: {
|
|
type: NumberConstructor;
|
|
value?: number;
|
|
};
|
|
}
|
|
export interface PopupVisibleChangeContext {
|
|
trigger: 'close-btn' | 'overlay';
|
|
}
|