index.d.ts 883 Bytes
Newer Older
jim's avatar
jim committed
1 2
import * as React from 'react';
import Button from 'antd/lib/button';
jim's avatar
jim committed
3 4 5
export interface LoginProps {
  defaultActiveKey?: string;
  onTabChange?: (key: string) => void;
jim's avatar
jim committed
6
  style?: React.CSSProperties;
jim's avatar
jim committed
7 8 9 10 11 12 13 14 15 16 17 18
  onSubmit?: (error: any, values: any) => void;
}

export interface TabProps {
  key?: string;
  tab?: React.ReactNode;
}
export class Tab extends React.Component<TabProps, any> {}

export interface LoginItemProps {
  name?: string;
  rules?: any[];
jim's avatar
jim committed
19
  style?: React.CSSProperties;
jim's avatar
jim committed
20
  onGetCaptcha?: () => void;
21
  placeholder?: string;
jim's avatar
jim committed
22 23 24 25 26 27 28 29 30 31 32 33
}

export class LoginItem extends React.Component<LoginItemProps, any> {}

export default class Login extends React.Component<LoginProps, any> {
  static Tab: typeof Tab;
  static UserName: typeof LoginItem;
  static Password: typeof LoginItem;
  static Mobile: typeof LoginItem;
  static Captcha: typeof LoginItem;
  static Submit: typeof Button;
}