ActionButton.d.ts 613 B

12345678910111213141516171819
  1. import * as React from 'react';
  2. import type { ButtonProps, LegacyButtonType } from '../button/button';
  3. export interface ActionButtonProps {
  4. type?: LegacyButtonType;
  5. actionFn?: (...args: any[]) => any | PromiseLike<any>;
  6. close?: (...args: any[]) => void;
  7. autoFocus?: boolean;
  8. prefixCls: string;
  9. buttonProps?: ButtonProps;
  10. emitEvent?: boolean;
  11. quitOnNullishReturnValue?: boolean;
  12. children?: React.ReactNode;
  13. /**
  14. * Do not throw if is await mode
  15. */
  16. isSilent?: () => boolean;
  17. }
  18. declare const ActionButton: React.FC<ActionButtonProps>;
  19. export default ActionButton;