Commit 254c5a6f authored by jim's avatar jim

Add style property

parent 3c03f222
...@@ -2,10 +2,12 @@ import * as React from "react"; ...@@ -2,10 +2,12 @@ import * as React from "react";
export interface AvatarItemProps { export interface AvatarItemProps {
tips: React.ReactNode; tips: React.ReactNode;
src: string; src: string;
style?: React.CSSProperties;
} }
export interface AvatarListProps { export interface AvatarListProps {
size?: "large" | "small" | "mini" | "default"; size?: "large" | "small" | "mini" | "default";
style?: React.CSSProperties;
children: children:
| React.ReactElement<AvatarItem> | React.ReactElement<AvatarItem>
| Array<React.ReactElement<AvatarItem>>; | Array<React.ReactElement<AvatarItem>>;
......
import * as React from 'react'; import * as React from "react";
import Button from 'antd/lib/button'; import Button from "antd/lib/button";
export interface LoginProps { export interface LoginProps {
defaultActiveKey?: string; defaultActiveKey?: string;
onTabChange?: (key: string) => void; onTabChange?: (key: string) => void;
style?: React.CSSProperties;
onSubmit?: (error: any, values: any) => void; onSubmit?: (error: any, values: any) => void;
} }
...@@ -15,6 +16,7 @@ export class Tab extends React.Component<TabProps, any> {} ...@@ -15,6 +16,7 @@ export class Tab extends React.Component<TabProps, any> {}
export interface LoginItemProps { export interface LoginItemProps {
name?: string; name?: string;
rules?: any[]; rules?: any[];
style?: React.CSSProperties;
onGetCaptcha?: () => void; onGetCaptcha?: () => void;
} }
......
...@@ -24,6 +24,7 @@ export interface NoticeIconProps { ...@@ -24,6 +24,7 @@ export interface NoticeIconProps {
useCssBottom?: boolean; useCssBottom?: boolean;
useCssTransform?: boolean; useCssTransform?: boolean;
}; };
style?: React.CSSProperties;
onPopupVisibleChange?: (visible: boolean) => void; onPopupVisibleChange?: (visible: boolean) => void;
popupVisible?: boolean; popupVisible?: boolean;
locale?: { emptyText: string; clear: string }; locale?: { emptyText: string; clear: string };
...@@ -34,6 +35,7 @@ export interface NoticeIconTabProps { ...@@ -34,6 +35,7 @@ export interface NoticeIconTabProps {
title?: string; title?: string;
emptyText?: React.ReactNode; emptyText?: React.ReactNode;
emptyImage?: string; emptyImage?: string;
style?: React.CSSProperties;
} }
export class NoticeIconTab extends React.Component<NoticeIconTabProps, any> {} export class NoticeIconTab extends React.Component<NoticeIconTabProps, any> {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment