UNPKG

y-taro-ui

Version:

基于taro的表单解决方案 & 基础组件

34 lines (33 loc) 979 B
/// <reference types="node" /> import React from 'react'; import { ButtonProps } from '../Button'; import './index.less'; export interface CountDownButtonProps extends ButtonProps { delay?: number; mode?: 'auto' | undefined; auto?: boolean; onClick: () => Promise<void>; textInterpolate?: string; text?: string; } interface CountDownButtonState { delay: number; buttonDisableStatus: boolean; } export declare class CountDownButton extends React.PureComponent<CountDownButtonProps, CountDownButtonState> { static defaultProps: { block: boolean; delay: number; type: string; text: string; textInterpolate: string; }; constructor(props: any); componentDidMount(): Promise<void>; componentWillUnmount(): void; intervalTimerId: NodeJS.Timeout; countDown: () => void; handleClick: (e: any) => Promise<void>; render(): JSX.Element; } export {};