From 64b4031d7a8d06ef671d51a95452341c8824e245 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 27 Oct 2015 17:27:11 +0800 Subject: [PATCH] Fix key warning in table demo --- components/table/demo/expand.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/table/demo/expand.md b/components/table/demo/expand.md index da58f96d7d..c1fedddbab 100644 --- a/components/table/demo/expand.md +++ b/components/table/demo/expand.md @@ -25,9 +25,9 @@ var columns = [ ]; var data = [ - {name: '胡彦斌', age: 32, address: '西湖区湖底公园1号', description: '我是胡彦斌,今年32岁,住在西湖区湖底公园1号。'}, - {name: '吴彦祖', age: 42, address: '西湖区湖底公园2号', description: '我是吴彦祖,今年42岁,住在西湖区湖底公园2号。'}, - {name: '李大嘴', age: 32, address: '西湖区湖底公园3号', description: '我是李大嘴,今年32岁,住在西湖区湖底公园3号。'} + {key: 1, name: '胡彦斌', age: 32, address: '西湖区湖底公园1号', description: '我是胡彦斌,今年32岁,住在西湖区湖底公园1号。'}, + {key: 2, name: '吴彦祖', age: 42, address: '西湖区湖底公园2号', description: '我是吴彦祖,今年42岁,住在西湖区湖底公园2号。'}, + {key: 3, name: '李大嘴', age: 32, address: '西湖区湖底公园3号', description: '我是李大嘴,今年32岁,住在西湖区湖底公园3号。'} ]; ReactDOM.render(