From 0a55eb8c43f67112a194001cd6d0438ff977ad74 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 9 Apr 2016 15:30:24 +0800 Subject: [PATCH] reuse getColumnKey --- components/table/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index 484c387488..a9dae2963a 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -676,7 +676,7 @@ const Table = React.createClass({ columns = this.renderColumnsDropdown(columns); columns = columns.map((column, i) => { const newColumn = { ...column }; - newColumn.key = newColumn.key || newColumn.dataIndex || i; + newColumn.key = this.getColumnKey(newColumn, i); return newColumn; }); let emptyText;