LoginItem.d.ts 910 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
import React from 'react';
import { WrappedFormUtils } from 'antd/es/form/Form';
import ItemMap from './map';
import { Omit } from 'antd/es/_util/type';

export type WrappedLoginItemProps = Omit<LoginItemProps, 'form' | 'type' | 'updateActive'>;
export type LoginItemType = { [K in keyof typeof ItemMap]: React.FC<WrappedLoginItemProps> };

export interface LoginItemProps {
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
10 11 12
  name?: string;
  rules?: any[];
  style?: React.CSSProperties;
13
  onGetCaptcha?: (event?: MouseEvent) => void;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
14 15
  placeholder?: string;
  buttonText?: React.ReactNode;
16 17 18 19 20 21 22 23 24 25
  onPressEnter?: (e: any) => void;
  countDown?: number;
  getCaptchaButtonText?: string;
  getCaptchaSecondText?: string;
  updateActive: (activeItem: any) => void;
  form: WrappedFormUtils;
  type: string;
  defaultValue?: string;
  customprops?: any;
  onChange?: (e: any) => void;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
26 27
}

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