UNPKG

@aimake/nanod

Version:

## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。

20 lines (19 loc) 595 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; } 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; }