80 lines
1.5 KiB
TypeScript
80 lines
1.5 KiB
TypeScript
![]() |
import { IBaseProps } from '../_base';
|
|||
|
/**
|
|||
|
* @description 气泡,内部配合 PopoverItem 使用。
|
|||
|
*/
|
|||
|
|
|||
|
export interface IPopoverProps extends IBaseProps {
|
|||
|
/**
|
|||
|
* @description 是否可见
|
|||
|
* @default false
|
|||
|
*/
|
|||
|
visible?: boolean;
|
|||
|
/**
|
|||
|
* @description 默认是否可见
|
|||
|
* @default false
|
|||
|
*/
|
|||
|
defaultVisible?: boolean;
|
|||
|
/**
|
|||
|
* @description 是否关闭后销毁内部元素
|
|||
|
* @default false
|
|||
|
*/
|
|||
|
destroyOnClose?: boolean;
|
|||
|
/**
|
|||
|
* @description 背景颜色
|
|||
|
*/
|
|||
|
color?: string;
|
|||
|
/**
|
|||
|
* @description content区样式
|
|||
|
*/
|
|||
|
contentStyle?: string;
|
|||
|
/**
|
|||
|
* @description content类名
|
|||
|
*/
|
|||
|
contentClassName?: string;
|
|||
|
/**
|
|||
|
* @description 蒙层类名
|
|||
|
*/
|
|||
|
maskClassName?: string;
|
|||
|
/**
|
|||
|
* @description 蒙层样式
|
|||
|
*/
|
|||
|
maskStyle?: string;
|
|||
|
/**
|
|||
|
* @description visible 变更时回调
|
|||
|
*/
|
|||
|
onVisibleChange?: (visible: boolean, e: Record<string, any>) => void;
|
|||
|
/**
|
|||
|
* @description 方向
|
|||
|
* @default "bottom-right"
|
|||
|
*/
|
|||
|
placement?:
|
|||
|
| 'top'
|
|||
|
| 'top-right'
|
|||
|
| 'top-left'
|
|||
|
| 'bottom'
|
|||
|
| 'bottom-left'
|
|||
|
| 'bottom-right'
|
|||
|
| 'left'
|
|||
|
| 'left-top'
|
|||
|
| 'left-bottom'
|
|||
|
| 'right'
|
|||
|
| 'right-top'
|
|||
|
| 'right-bottom';
|
|||
|
/**
|
|||
|
* @description 是否展示蒙层
|
|||
|
* @default false
|
|||
|
*/
|
|||
|
showMask?: boolean;
|
|||
|
/**
|
|||
|
* @description 是否可点击蒙层关闭
|
|||
|
* @default true
|
|||
|
*/
|
|||
|
maskClosable?: boolean;
|
|||
|
/**
|
|||
|
* @description 气泡被遮挡时自动调整位置
|
|||
|
* @default true
|
|||
|
*/
|
|||
|
autoAdjustOverflow?: boolean;
|
|||
|
}
|
|||
|
export declare const PopoverDefaultProps: Partial<IPopoverProps>;
|