UNPKG

ant-table-ext

Version:

An extended table based on ant table

53 lines (52 loc) 1.57 kB
/// <reference types="react" /> import React from 'react'; import Group from './button-group'; export declare type ButtonType = 'primary' | 'ghost' | 'dashed' | 'danger'; export declare type ButtonShape = 'circle' | 'circle-outline'; export declare type ButtonSize = 'small' | 'large'; export interface ButtonProps { type?: ButtonType; htmlType?: string; icon?: string; shape?: ButtonShape; size?: ButtonSize; onClick?: React.FormEventHandler<any>; onMouseUp?: React.FormEventHandler<any>; onMouseDown?: React.FormEventHandler<any>; loading?: boolean | { delay?: number; }; disabled?: boolean; style?: React.CSSProperties; prefixCls?: string; className?: string; ghost?: boolean; } export default class Button extends React.Component<ButtonProps, any> { static Group: typeof Group; static __ANT_BUTTON: boolean; static defaultProps: { prefixCls: string; loading: boolean; clicked: boolean; ghost: boolean; }; static propTypes: { type: any; shape: any; size: any; htmlType: any; onClick: any; loading: any; className: any; icon: any; }; timeout: number; delayTimeout: number; constructor(props: ButtonProps); componentWillReceiveProps(nextProps: ButtonProps): void; componentWillUnmount(): void; handleClick: (e: React.MouseEvent<HTMLButtonElement>) => void; handleMouseUp: (e: React.MouseEvent<HTMLButtonElement>) => void; render(): JSX.Element; }