Browse Source

Add style property

pull/713/head
jim 9 years ago
parent
commit
254c5a6fa7
  1. 2
      src/components/AvatarList/index.d.ts
  2. 6
      src/components/Login/index.d.ts
  3. 2
      src/components/NoticeIcon/index.d.ts

2
src/components/AvatarList/index.d.ts

@ -2,10 +2,12 @@ import * as React from "react";
export interface AvatarItemProps {
tips: React.ReactNode;
src: string;
style?: React.CSSProperties;
}
export interface AvatarListProps {
size?: "large" | "small" | "mini" | "default";
style?: React.CSSProperties;
children:
| React.ReactElement<AvatarItem>
| Array<React.ReactElement<AvatarItem>>;

6
src/components/Login/index.d.ts

@ -1,8 +1,9 @@
import * as React from 'react';
import Button from 'antd/lib/button';
import * as React from "react";
import Button from "antd/lib/button";
export interface LoginProps {
defaultActiveKey?: string;
onTabChange?: (key: string) => void;
style?: React.CSSProperties;
onSubmit?: (error: any, values: any) => void;
}
@ -15,6 +16,7 @@ export class Tab extends React.Component<TabProps, any> {}
export interface LoginItemProps {
name?: string;
rules?: any[];
style?: React.CSSProperties;
onGetCaptcha?: () => void;
}

2
src/components/NoticeIcon/index.d.ts

@ -24,6 +24,7 @@ export interface NoticeIconProps {
useCssBottom?: boolean;
useCssTransform?: boolean;
};
style?: React.CSSProperties;
onPopupVisibleChange?: (visible: boolean) => void;
popupVisible?: boolean;
locale?: { emptyText: string; clear: string };
@ -34,6 +35,7 @@ export interface NoticeIconTabProps {
title?: string;
emptyText?: React.ReactNode;
emptyImage?: string;
style?: React.CSSProperties;
}
export class NoticeIconTab extends React.Component<NoticeIconTabProps, any> {}

Loading…
Cancel
Save