From 44d587483c914227e5eab7a307c16c821503477a Mon Sep 17 00:00:00 2001 From: binhaoCen <495406537@qq.com> Date: Wed, 10 Jul 2019 11:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=85=8D=E7=BD=AE=E9=A1=B9?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=85=A8=E9=9D=9E=E5=BF=85=E5=A1=AB=20(#948)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/table/column.d.ts | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/types/table/column.d.ts b/types/table/column.d.ts index 7bcdccc2f..e068d41a1 100644 --- a/types/table/column.d.ts +++ b/types/table/column.d.ts @@ -20,119 +20,119 @@ export declare class Column extends AntdComponent { * @default 'left' * @type string */ - align: 'left' | 'right' | 'center'; + align?: 'left' | 'right' | 'center'; /** * Span of this column's title * @type number */ - colSpan: number; + colSpan?: number; /** * Display field of the data record, could be set like a.b.c * @type string */ - dataIndex: string; + dataIndex?: string; /** * Default order of sorted values: 'ascend' 'descend' null * @type string */ - defaultSortOrder: SortOrder; + defaultSortOrder?: SortOrder; /** * Customized filter overlay * @type any (slot) */ - filterDropdown: any; + filterDropdown?: any; /** * Whether filterDropdown is visible * @type boolean */ - filterDropdownVisible: boolean; + filterDropdownVisible?: boolean; /** * Whether the dataSource is filtered * @default false * @type boolean */ - filtered: boolean; + filtered?: boolean; /** * Controlled filtered value, filter icon will highlight * @type string[] */ - filteredValue: string[]; + filteredValue?: string[]; /** * Customized filter icon * @default false * @type any */ - filterIcon: any; + filterIcon?: any; /** * Whether multiple filters can be selected * @default true * @type boolean */ - filterMultiple: boolean; + filterMultiple?: boolean; /** * Filter menu config * @type object[] */ - filters: ColumnFilterItem[]; + filters?: ColumnFilterItem[]; /** * Set column to be fixed: true(same as left) 'left' 'right' * @default false * @type boolean | string */ - fixed: boolean | 'left' | 'right'; + fixed?: boolean | 'left' | 'right'; /** * Unique key of this column, you can ignore this prop if you've set a unique dataIndex * @type string */ - key: string; + key?: string; /** * Renderer of the table cell. The return value should be a VNode, or an object for colSpan/rowSpan config * @type Function | ScopedSlot */ - customRender: Function | ScopedSlot; + customRender?: Function | ScopedSlot; /** * Sort function for local sort, see Array.sort's compareFunction. If you need sort buttons only, set to true * @type boolean | Function */ - sorter: boolean | Function; + sorter?: boolean | Function; /** * Order of sorted values: 'ascend' 'descend' false * @type boolean | string */ - sortOrder: boolean | SortOrder; + sortOrder?: boolean | SortOrder; /** * Title of this column * @type any (string | slot) */ - title: any; + title?: any; /** * Width of this column * @type string | number */ - width: string | number; + width?: string | number; /** * Set props on per cell * @type Function */ - customCell: ( + customCell?: ( record: any, rowIndex: number, ) => { @@ -148,7 +148,7 @@ export declare class Column extends AntdComponent { * Set props on per header cell * @type */ - customHeaderCell: ( + customHeaderCell?: ( column: any, ) => { props: object; @@ -163,25 +163,25 @@ export declare class Column extends AntdComponent { * Callback executed when the confirm filter button is clicked, Use as a filter event when using template or jsx * @type Function */ - onFilter: Function; + onFilter?: Function; /** * Callback executed when filterDropdownVisible is changed, Use as a filterDropdownVisible event when using template or jsx * @type Function */ - onFilterDropdownVisibleChange: (visible: boolean) => void; + onFilterDropdownVisibleChange?: (visible: boolean) => void; /** * When using columns, you can use this property to configure the properties that support the slot, * such as slots: { filterIcon: 'XXX'} * @type object */ - slots: object; + slots?: object; /** * When using columns, you can use this property to configure the properties that support the slot-scope, * such as scopedSlots: { customRender: 'XXX'} * @type object */ - scopedSlots: object; + scopedSlots?: object; }