index.d.ts 888 Bytes
Newer Older
jim's avatar
jim committed
1
import Button from 'antd/lib/button';
2 3
import React from 'react';
import LoginItem, { LoginItemProps, LoginItemType } from './LoginItem';
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
4
import LoginTab from './LoginTab';
5 6
import { WrappedFormUtils } from 'antd/es/form/Form';
import LoginSubmit from './LoginSubmit';
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
7

8
export interface LoginProps {
jim's avatar
jim committed
9 10
  defaultActiveKey?: string;
  onTabChange?: (key: string) => void;
jim's avatar
jim committed
11
  style?: React.CSSProperties;
jim's avatar
jim committed
12
  onSubmit?: (error: any, values: any) => void;
13
  className?: string;
jim's avatar
jim committed
14 15
}

16 17
interface Login extends WrappedFormUtils {}
declare class Login extends React.Component<LoginProps, any> {
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
18
  public static Tab: typeof LoginTab;
19 20 21 22 23
  public static UserName: React.FC<LoginItemProps>;
  public static Password: React.FC<LoginItemProps>;
  public static Mobile: React.FC<LoginItemProps>;
  public static Captcha: React.FC<LoginItemProps>;
  public static Submit: typeof LoginSubmit;
jim's avatar
jim committed
24
}
25
export default Login;