From 4d81deb1bc11e86802d5c8d99c4288ab345d21b2 Mon Sep 17 00:00:00 2001 From: Sean Lin Date: Thu, 2 Jun 2016 11:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=861.2.0=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=9A=84=E7=BB=84=E4=BB=B6=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E7=9A=84=20Typescript=20=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Affix 组件的 onChange 2. Tab 组件的 hideAdd --- index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.d.ts b/index.d.ts index 2e6306c7ef..43666dc1b1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -38,6 +38,8 @@ interface AlertProps { message:React.ReactNode, /**可选参数,警告提示的辅助性文字介绍 */ description?:React.ReactNode, + /** 固定状态改变时触发的回调函数 */ + onChange?:(affixed: boolean) => void, /**可选参数,关闭时触发的回调函数 */ onClose?:Function, /**可选参数,是否显示辅助图标 */ @@ -1528,6 +1530,8 @@ interface TabsProps extends React.Props { activeKey?:string, /** 初始化选中面板的 key,如果没有设置 activeKey*/ defaultActiveKey?:string, + /** 是否隐藏加号图标,在 `type="editable-card"` 时有效 */ + hideAdd?: boolean, /** 切换面板的回调*/ onChange?:(activeKey:string) => void, /** tab 被点击的回调 */