From 4cd12077cb9bf03ed6c9bd8060657d2f7ab81ddd Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 15 Jul 2015 10:47:47 +0800 Subject: [PATCH] update table demos --- components/table/demo/basic.md | 10 +++++----- components/table/demo/paging.md | 10 +++++----- components/table/demo/row-selection.md | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/table/demo/basic.md b/components/table/demo/basic.md index 5a17dce833..13da7a466b 100644 --- a/components/table/demo/basic.md +++ b/components/table/demo/basic.md @@ -10,16 +10,16 @@ var Table = antd.Table; var columns = [{ title: '姓名', - dataIndex: 'name' + dataIndex: 'name', + render: function(text) { + return {text}; + } }, { title: '年龄', dataIndex: 'age' }, { title: '住址', - dataIndex: 'address', - render: function(text) { - return {text}; - } + dataIndex: 'address' }, { title: '操作', dataIndex: '', diff --git a/components/table/demo/paging.md b/components/table/demo/paging.md index 7311956e1c..cda1260a5d 100644 --- a/components/table/demo/paging.md +++ b/components/table/demo/paging.md @@ -11,16 +11,16 @@ var Table = antd.Table; var columns = [{ title: '姓名', - dataIndex: 'name' + dataIndex: 'name', + render: function(text) { + return {text}; + } }, { title: '年龄', dataIndex: 'age' }, { title: '住址', - dataIndex: 'address', - render: function(text) { - return {text}; - } + dataIndex: 'address' }]; var data = []; diff --git a/components/table/demo/row-selection.md b/components/table/demo/row-selection.md index ad5c5113a6..734112734b 100644 --- a/components/table/demo/row-selection.md +++ b/components/table/demo/row-selection.md @@ -10,16 +10,16 @@ var Table = antd.Table; var columns = [{ title: '姓名', - dataIndex: 'name' + dataIndex: 'name', + render: function(text) { + return {text}; + } }, { title: '年龄', dataIndex: 'age' }, { title: '住址', - dataIndex: 'address', - render: function(text) { - return {text}; - } + dataIndex: 'address' }]; var data = [{ name: '胡彦斌',