From 254c5a6fa7ce3019e901612cae15474000bee02b Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 15 Jan 2018 08:48:38 +0800 Subject: [PATCH] Add style property --- src/components/AvatarList/index.d.ts | 2 ++ src/components/Login/index.d.ts | 6 ++++-- src/components/NoticeIcon/index.d.ts | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/AvatarList/index.d.ts b/src/components/AvatarList/index.d.ts index 6687bf21..101a70d4 100644 --- a/src/components/AvatarList/index.d.ts +++ b/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 | Array>; diff --git a/src/components/Login/index.d.ts b/src/components/Login/index.d.ts index 8c792b08..79842922 100644 --- a/src/components/Login/index.d.ts +++ b/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 {} export interface LoginItemProps { name?: string; rules?: any[]; + style?: React.CSSProperties; onGetCaptcha?: () => void; } diff --git a/src/components/NoticeIcon/index.d.ts b/src/components/NoticeIcon/index.d.ts index d8f21680..76541cd6 100644 --- a/src/components/NoticeIcon/index.d.ts +++ b/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 {} -- GitLab