UNPKG

@cainiaofe/cn-ui-m

Version:
44 lines (43 loc) 1.12 kB
import React from 'react'; import type { CnDrawerProps } from "../../cn-drawer"; import { CnButtonProps } from "../../cn-button"; export interface CnDialogFullpageProps extends Omit<CnDrawerProps, 'showMask' | 'maskClosable' | 'maskClassName' | 'onMaskClick' | 'closeMode'> { /** * 点击返回,即关闭弹层 */ onClose?: (reason?: string, e?: any) => void; /** * 一码多端中使用,同onClose */ onCancel?: (e?: any) => void; /** * 确定 */ onOk?: (e?: any) => void; /** * dialog 底部操作区域自定义 * 设置为 false,则不进行显示 */ footer?: boolean | React.ReactNode; /** * 确定按钮的配置 */ okProps?: CnButtonProps & { visible?: boolean; }; /** * 取消按钮的配置 */ cancelProps?: CnButtonProps & { visible?: boolean; }; /** * 自定义类名 */ className?: string; /** * 控制对话框关闭的方式,默认可通过关闭按钮关闭对话框 * 传[]可隐藏关闭按钮 */ closeMode?: string[]; }