From f8294e2332fb931e1d089282b34c054799c280aa Mon Sep 17 00:00:00 2001 From: feng zhi hao Date: Thu, 25 Aug 2016 20:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85index.d.ts=E4=B8=ADnotificati?= =?UTF-8?q?on=E5=92=8CTable=E7=BC=BA=E5=B0=91=E7=9A=84=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=20(#2842)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 补充index.d.ts中notification缺少的声明 * 补充index.d.ts中Table缺少的声明 --- index.d.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index fc8e724c57..04b00bf511 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1006,9 +1006,12 @@ export const notification:{ warn:NotificationFunc close:(key:string) => void destroy:() => void + open:NotificationFunc config:(options:{ /** 消息距离顶部的位置*/ top:number + /** 默认自动关闭延时,单位秒 */ + duration:number }) => void } @@ -1481,10 +1484,14 @@ interface TableProps { columns:Columns, /** 表格行 key 的取值*/ rowKey?:(record:any, index:number) => string, + /** 表格行的类名 */ + rowClassName?:(record:any, index) => string, /** 额外的展开行*/ expandedRowRender?:Function, /** 默认展开的行*/ defaultExpandedRowKeys?:Array, + /** 展开的行,控制属性 */ + expandedRowKeys?:Array, /** 分页、排序、筛选变化时触发*/ onChange?:(pagination:Object, filters:any, sorter:any) => void, /** 页面是否加载中*/ @@ -1503,8 +1510,13 @@ interface TableProps { showHeader?:boolean, /** 表格底部自定义渲染函数*/ footer?:(currentPageData:Object) => void, - - style?:React.CSSProperties + /** 表格头部自定义渲染函数 */ + title?:(currentPageData:Object) => void, + /** 横向或纵向支持滚动,也可用于指定滚动区域的宽高度:{{ x: true, y: 300 }} */ + scroll?:Object, + /** 表格body的样式 */ + bodyStyle?:React.CSSProperties, + style?:React.CSSProperties, } /** * #Table