jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
23 lines (22 loc) • 777 B
TypeScript
import type { PickClassStyleType, ReactPropsBase } from 'jamis-core';
import type { CSSProperties, PropsWithChildren, RefObject } from 'react';
import type { SchemaClassName, SizeUnit } from '../types';
export interface ModalProps extends PropsWithChildren, ReactPropsBase, PickClassStyleType {
className?: string;
contentClassName?: SchemaClassName;
size?: SizeUnit;
width?: any;
height?: any;
overlay?: boolean;
closeOnEsc?: boolean;
closeOnOutside?: boolean;
container?: any;
show?: boolean;
disabled?: boolean;
style?: CSSProperties;
modalContentRef?: RefObject<HTMLDivElement>;
elementDataAttrs?: Record<`data-${string}`, any>;
onHide?: (e: any) => void;
onExited?: () => void;
onEntered?: () => void;
}