import React, { ReactNode } from 'react'; import { DrawerProps } from '@firesoon/antd/lib/drawer'; import { ButtonProps } from '../Button/interface'; export interface DrawerP extends CommonP, DrawerProps { /** 底部内容,当不需要默认底部按钮时,可以设 footer={null} */ footer?: string | ReactNode[] | null; } export interface InitialFooterP extends CommonP { /** 点击遮罩层或右上角叉或取消按钮的回调 */ onClose?: (e: any) => void; } export interface CommonP { /** 确认按钮文字 */ okText?: string | ReactNode; /** 取消按钮文字 */ cancelText?: string | ReactNode; /** ok 按钮 props */ okButtonProps?: ButtonProps; /** cancel 按钮 props */ cancelButtonProps?: ButtonProps; /** 点击确定回调 */ onOk?: (e: React.MouseEvent) => void; }