动态菜单和动态路由的 antd pro

index.d.ts 859B

123456789101112131415161718192021222324252627282930313233
  1. import * as React from 'react';
  2. import Button from 'antd/lib/button';
  3. export interface LoginProps {
  4. defaultActiveKey?: string;
  5. onTabChange?: (key: string) => void;
  6. style?: React.CSSProperties;
  7. onSubmit?: (error: any, values: any) => void;
  8. }
  9. export interface TabProps {
  10. key?: string;
  11. tab?: React.ReactNode;
  12. }
  13. export class Tab extends React.Component<TabProps, any> {}
  14. export interface LoginItemProps {
  15. name?: string;
  16. rules?: any[];
  17. style?: React.CSSProperties;
  18. onGetCaptcha?: () => void;
  19. }
  20. export class LoginItem extends React.Component<LoginItemProps, any> {}
  21. export default class Login extends React.Component<LoginProps, any> {
  22. static Tab: typeof Tab;
  23. static UserName: typeof LoginItem;
  24. static Password: typeof LoginItem;
  25. static Mobile: typeof LoginItem;
  26. static Captcha: typeof LoginItem;
  27. static Submit: typeof Button;
  28. }