import { Ref } from '@wakeadmin/demi'; import { ButtonProps, DrawerProps } from '@wakeadmin/element-adapter'; import { OurComponentInstance } from '../utils'; import { FatTableEvents, FatTableMethods, FatTableProps, FatTableSlots } from '../fat-table/types'; import { FatTableModalMethods } from './fat-table-modal'; export type FatTableDrawerMethods = FatTableModalMethods; export declare const FatTableDrawerPublicMethodKeys: (keyof FatTableModalMethods)[]; export interface FatTableDrawerSlots extends Omit, 'renderTitle'> { renderTitle?: (tableModalRef: FatTableDrawerMethods) => any; renderFooter?: (tableModalRef: FatTableDrawerMethods) => any; } export interface FatTableDrawerEvents { onOpen?: () => void; onOpened?: () => void; onClose?: () => void; onClosed?: () => void; } export interface FatTableDrawerProps extends Omit, 'size' | keyof FatTableSlots | keyof FatTableMethods | keyof FatTableEvents>, FatTableDrawerSlots, Omit { /** * 标题 * * 优先程度低于`renderTitle` */ title?: any; /** * 受控显示 */ visible?: boolean; /** * 是否开启取消按钮, 默认开启 */ enableCancel?: boolean; /** * 取消按钮文本, 默认为取消 */ cancelText?: string; /** * 自定义取消按钮 props */ cancelProps?: ButtonProps; /** * 是否开启确认按钮, 默认关闭 */ enableConfirm?: boolean; /** * 确认按钮文本, 默认为确认 */ confirmText?: string; /** * 自定义确认按钮 props */ confirmProps?: ButtonProps; /** * 关闭弹窗前调用,默认行为是关闭弹窗。调用 done 可以执行默认行为 */ beforeCancel?: (done: () => void) => void; /** * 关闭弹窗前调用,默认行为是关闭弹窗。调用 done 可以执行默认行为 */ beforeConfirm?: (done: () => void) => void; /** * 抽屉大小 * @alias size */ drawerSize?: number | string; } export interface FatTableDrawerGlobalConfigurations { /** * 是否开启取消按钮, 默认开启 */ enableCancel?: boolean; /** * 取消按钮文本, 默认为取消 */ cancelText?: string; /** * 自定义取消按钮 props */ cancelProps?: ButtonProps; /** * 是否开启确认按钮, 默认关闭 */ enableConfirm?: boolean; /** * 确认按钮文本, 默认为确认 */ confirmText?: string; /** * 自定义确认按钮 props */ confirmProps?: ButtonProps; } export declare function useFatTableDrawerRef(): Ref | undefined>; export declare const FatTableDrawer: new (props: FatTableDrawerProps) => OurComponentInstance, FatTableDrawerSlots, FatTableDrawerEvents, FatTableDrawerMethods>; //# sourceMappingURL=fat-table-drawer.d.ts.map