|
|
@@ -1,20 +1,25 @@
|
|
|
import Button from 'antd/lib/button';
|
|
|
-import * as React from 'react';
|
|
|
-import LoginItem from './LoginItem';
|
|
|
+import React from 'react';
|
|
|
+import LoginItem, { LoginItemProps, LoginItemType } from './LoginItem';
|
|
|
import LoginTab from './LoginTab';
|
|
|
+import { WrappedFormUtils } from 'antd/es/form/Form';
|
|
|
+import LoginSubmit from './LoginSubmit';
|
|
|
|
|
|
-export interface ILoginProps {
|
|
|
+export interface LoginProps {
|
|
|
defaultActiveKey?: string;
|
|
|
onTabChange?: (key: string) => void;
|
|
|
style?: React.CSSProperties;
|
|
|
onSubmit?: (error: any, values: any) => void;
|
|
|
+ className?: string;
|
|
|
}
|
|
|
|
|
|
-export default class Login extends React.Component<ILoginProps, any> {
|
|
|
+interface Login extends WrappedFormUtils {}
|
|
|
+declare class Login extends React.Component<LoginProps, any> {
|
|
|
public static Tab: typeof LoginTab;
|
|
|
- public static UserName: typeof LoginItem;
|
|
|
- public static Password: typeof LoginItem;
|
|
|
- public static Mobile: typeof LoginItem;
|
|
|
- public static Captcha: typeof LoginItem;
|
|
|
- public static Submit: typeof Button;
|
|
|
+ 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;
|
|
|
}
|
|
|
+export default Login;
|