import React from 'react'; import type { ButtonProps, ModalProps, PopconfirmProps } from 'antd'; import './index.less'; interface FButtonProps extends ButtonProps { data: any; content: any; addons: Record any>; /** 事件类型 */ eventType: string; /** 传入的方法配置 */ method?: string | { [key: string]: any; name: string; }; /** 弹窗配置 */ modal?: ModalProps & { type?: string; request?: any; }; /** 请求配置 */ request?: any; /** 图标配置 */ iconSetting?: ButtonProps['icon'] & { type?: any; style?: React.CSSProperties; }; /** 是否开启异步方法自动 loading */ autoLoading?: boolean; /** loading 时的文案 */ loadingText?: string; /** 气泡确认框 */ popConfirm?: Omit; /** 防抖配置 */ debounce?: { /** 需要延迟的毫秒数 */ wait?: number; /** 指定在延迟开始前调用 */ leading?: boolean; /** 设置函数允许被延迟的最大值 */ maxWait?: number; /** 指定在延迟结束后调用 */ trailing?: boolean; }; autoLoding: boolean; } declare const FButton: React.FC; export default FButton;