|
|
@@ -1,34 +1,20 @@
|
|
|
-import * as React from 'react';
|
|
|
import Button from 'antd/lib/button';
|
|
|
-export interface LoginProps {
|
|
|
+import * as React from 'react';
|
|
|
+import LoginItem from './LoginItem';
|
|
|
+import LoginTab from './LoginTab';
|
|
|
+
|
|
|
+export interface ILoginProps {
|
|
|
defaultActiveKey?: string;
|
|
|
onTabChange?: (key: string) => void;
|
|
|
style?: React.CSSProperties;
|
|
|
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[];
|
|
|
- style?: React.CSSProperties;
|
|
|
- onGetCaptcha?: () => void;
|
|
|
- placeholder?: string;
|
|
|
- buttonText?: React.ReactNode;
|
|
|
-}
|
|
|
-
|
|
|
-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;
|
|
|
+export default class Login extends React.Component<ILoginProps, 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;
|
|
|
}
|