UNPKG

dtd

Version:

根据数梦工场视觉规范打造的组件库,感谢react-components和ant design

21 lines (20 loc) 619 B
import * as React from 'react'; import { ButtonType } from '../button/button'; export interface ActionButtonProps { type?: ButtonType; actionFn?: (...args: any[]) => any | PromiseLike<any>; closeModal: Function; autoFocus?: boolean; disabled?: boolean; } export interface ActionButtonState { loading: boolean; } export default class ActionButton extends React.Component<ActionButtonProps, ActionButtonState> { timeoutId: number; constructor(props: ActionButtonProps); componentDidMount(): void; componentWillUnmount(): void; onClick: () => void; render(): JSX.Element; }