diff --git a/components/table/__tests__/__snapshots__/demo.test.js.snap b/components/table/__tests__/__snapshots__/demo.test.js.snap
index 950cdb645a..56ab6de645 100755
--- a/components/table/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/table/__tests__/__snapshots__/demo.test.js.snap
@@ -354,9 +354,7 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = `
-
+
John Brown
|
@@ -390,18 +388,14 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = `
class=""
>
-
+
Invite John Brown
-
+
Delete
@@ -414,9 +408,7 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = `
-
+
Jim Green
|
@@ -445,18 +437,14 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = `
class=""
>
-
+
Invite Jim Green
-
+
Delete
@@ -469,9 +457,7 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = `
-
+
Joe Black
|
@@ -505,18 +491,14 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = `
class=""
>
-
+
Invite Joe Black
-
+
Delete
@@ -706,9 +688,7 @@ exports[`renders ./components/table/demo/bordered.md correctly 1`] = `
-
+
John Brown
|
@@ -730,9 +710,7 @@ exports[`renders ./components/table/demo/bordered.md correctly 1`] = `
-
+
Jim Green
|
@@ -754,9 +732,7 @@ exports[`renders ./components/table/demo/bordered.md correctly 1`] = `
-
+
Joe Black
|
@@ -976,9 +952,7 @@ exports[`renders ./components/table/demo/colspan-rowspan.md correctly 1`] = `
-
+
John Brown
|
@@ -1010,9 +984,7 @@ exports[`renders ./components/table/demo/colspan-rowspan.md correctly 1`] = `
-
+
Jim Green
|
@@ -1044,9 +1016,7 @@ exports[`renders ./components/table/demo/colspan-rowspan.md correctly 1`] = `
-
+
Joe Black
|
@@ -1079,9 +1049,7 @@ exports[`renders ./components/table/demo/colspan-rowspan.md correctly 1`] = `
-
+
Jim Red
|
@@ -1109,9 +1077,7 @@ exports[`renders ./components/table/demo/colspan-rowspan.md correctly 1`] = `
class=""
colspan="5"
>
-
+
Jake White
@@ -2560,9 +2526,7 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
-
+
John Brown
|
@@ -2580,18 +2544,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -2684,18 +2641,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -2788,18 +2738,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -2892,18 +2835,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -2996,18 +2932,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -3100,18 +3029,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -3204,18 +3126,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -3308,18 +3223,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -3412,18 +3320,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
John Brown
@@ -3516,18 +3417,14 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
class=""
>
-
+
Action 一 John Brown
-
+
Delete
More actions
-
+
Delete
@@ -3832,9 +3726,7 @@ exports[`renders ./components/table/demo/edit-cell.md correctly 1`] = `
-
+
Delete
|
@@ -4622,9 +4514,7 @@ exports[`renders ./components/table/demo/expand.md correctly 1`] = `
-
+
Delete
|
@@ -4661,9 +4551,7 @@ exports[`renders ./components/table/demo/expand.md correctly 1`] = `
-
+
Delete
|
@@ -4700,9 +4588,7 @@ exports[`renders ./components/table/demo/expand.md correctly 1`] = `
-
+
Delete
|
@@ -5414,9 +5300,7 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = `
-
+
action
|
@@ -5478,9 +5362,7 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = `
-
+
action
|
@@ -5642,9 +5524,7 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = `
-
+
action
|
@@ -5656,9 +5536,7 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = `
-
+
action
|
@@ -6114,9 +5992,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6178,9 +6054,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6242,9 +6116,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6306,9 +6178,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6370,9 +6240,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6434,9 +6302,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6498,9 +6364,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6562,9 +6426,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6626,9 +6488,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -6690,9 +6550,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7005,9 +6863,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7019,9 +6875,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7033,9 +6887,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7047,9 +6899,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7061,9 +6911,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7075,9 +6923,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7089,9 +6935,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7103,9 +6947,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7117,9 +6959,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -7131,9 +6971,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
-
+
action
|
@@ -10505,18 +10343,14 @@ exports[`renders ./components/table/demo/jsx.md correctly 1`] = `
class=""
>
-
+
Invite Brown
-
+
Delete
@@ -10561,18 +10395,14 @@ exports[`renders ./components/table/demo/jsx.md correctly 1`] = `
class=""
>
-
+
Invite Green
-
+
Delete
@@ -10622,18 +10452,14 @@ exports[`renders ./components/table/demo/jsx.md correctly 1`] = `
class=""
>
-
+
Invite Black
-
+
Delete
@@ -10942,9 +10768,7 @@ exports[`renders ./components/table/demo/nested-table.md correctly 1`] = `
-
+
Publish
|
@@ -10996,9 +10820,7 @@ exports[`renders ./components/table/demo/nested-table.md correctly 1`] = `
-
+
Publish
|
@@ -11050,9 +10872,7 @@ exports[`renders ./components/table/demo/nested-table.md correctly 1`] = `
-
+
Publish
|
@@ -11780,9 +11600,7 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
-
+
Delete
|
@@ -11814,9 +11632,7 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
-
+
Delete
|
@@ -11848,9 +11664,7 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
-
+
Delete
|
@@ -12095,9 +11909,7 @@ exports[`renders ./components/table/demo/row-selection.md correctly 1`] = `
-
+
John Brown
|
@@ -12141,9 +11953,7 @@ exports[`renders ./components/table/demo/row-selection.md correctly 1`] = `
-
+
Jim Green
|
@@ -12187,9 +11997,7 @@ exports[`renders ./components/table/demo/row-selection.md correctly 1`] = `
-
+
Joe Black
|
@@ -12234,9 +12042,7 @@ exports[`renders ./components/table/demo/row-selection.md correctly 1`] = `
-
+
Disabled User
|
diff --git a/components/table/demo/basic.md b/components/table/demo/basic.md
index d4c30482dc..552153e5a9 100644
--- a/components/table/demo/basic.md
+++ b/components/table/demo/basic.md
@@ -21,7 +21,7 @@ const columns = [
title: 'Name',
dataIndex: 'name',
key: 'name',
- render: text => {text},
+ render: text => {text},
},
{
title: 'Age',
@@ -58,9 +58,9 @@ const columns = [
key: 'action',
render: (text, record) => (
- Invite {record.name}
+ Invite {record.name}
- Delete
+ Delete
),
},
diff --git a/components/table/demo/bordered.md b/components/table/demo/bordered.md
index f2711b7cca..e25aefa34e 100644
--- a/components/table/demo/bordered.md
+++ b/components/table/demo/bordered.md
@@ -20,7 +20,7 @@ const columns = [
{
title: 'Name',
dataIndex: 'name',
- render: text => {text},
+ render: text => {text},
},
{
title: 'Cash Assets',
diff --git a/components/table/demo/colspan-rowspan.md b/components/table/demo/colspan-rowspan.md
index 634f3736f0..d56df563af 100644
--- a/components/table/demo/colspan-rowspan.md
+++ b/components/table/demo/colspan-rowspan.md
@@ -39,10 +39,10 @@ const columns = [
dataIndex: 'name',
render: (text, row, index) => {
if (index < 4) {
- return {text};
+ return {text};
}
return {
- children: {text},
+ children: {text},
props: {
colSpan: 5,
},
diff --git a/components/table/demo/dynamic-settings.md b/components/table/demo/dynamic-settings.md
index 5d5753f09f..5da0d3e708 100644
--- a/components/table/demo/dynamic-settings.md
+++ b/components/table/demo/dynamic-settings.md
@@ -24,7 +24,7 @@ const columns = [
dataIndex: 'name',
key: 'name',
width: 150,
- render: text => {text},
+ render: text => {text},
},
{
title: 'Age',
@@ -43,11 +43,11 @@ const columns = [
width: 360,
render: (text, record) => (
- Action 一 {record.name}
+ Action 一 {record.name}
- Delete
+ Delete
-
+
More actions
diff --git a/components/table/demo/edit-cell.md b/components/table/demo/edit-cell.md
index a6f6d6d5a7..e46ad496da 100644
--- a/components/table/demo/edit-cell.md
+++ b/components/table/demo/edit-cell.md
@@ -125,7 +125,7 @@ class EditableTable extends React.Component {
render: (text, record) =>
this.state.dataSource.length >= 1 ? (
this.handleDelete(record.key)}>
- Delete
+ Delete
) : null,
},
diff --git a/components/table/demo/edit-row.md b/components/table/demo/edit-row.md
index 0d6fdba568..87f1dc9790 100644
--- a/components/table/demo/edit-row.md
+++ b/components/table/demo/edit-row.md
@@ -106,7 +106,6 @@ class EditableTable extends React.Component {
{form => (
this.save(form, record.key)}
style={{ marginRight: 8 }}
>
diff --git a/components/table/demo/expand.md b/components/table/demo/expand.md
index de893116c8..dc825ef007 100644
--- a/components/table/demo/expand.md
+++ b/components/table/demo/expand.md
@@ -24,7 +24,7 @@ const columns = [
title: 'Action',
dataIndex: '',
key: 'x',
- render: () => Delete,
+ render: () => Delete,
},
];
diff --git a/components/table/demo/fixed-columns-header.md b/components/table/demo/fixed-columns-header.md
index a5cfa0b320..e008645456 100644
--- a/components/table/demo/fixed-columns-header.md
+++ b/components/table/demo/fixed-columns-header.md
@@ -87,7 +87,7 @@ const columns = [
key: 'operation',
fixed: 'right',
width: 100,
- render: () => action,
+ render: () => action,
},
];
diff --git a/components/table/demo/fixed-columns.md b/components/table/demo/fixed-columns.md
index 9820076f7e..68349d3ac4 100644
--- a/components/table/demo/fixed-columns.md
+++ b/components/table/demo/fixed-columns.md
@@ -52,7 +52,7 @@ const columns = [
key: 'operation',
fixed: 'right',
width: 100,
- render: () => action,
+ render: () => action,
},
];
diff --git a/components/table/demo/jsx.md b/components/table/demo/jsx.md
index 6d39361396..dfc00d8b5d 100644
--- a/components/table/demo/jsx.md
+++ b/components/table/demo/jsx.md
@@ -76,9 +76,9 @@ ReactDOM.render(
key="action"
render={(text, record) => (
- Invite {record.lastName}
+ Invite {record.lastName}
- Delete
+ Delete
)}
/>
diff --git a/components/table/demo/nested-table.md b/components/table/demo/nested-table.md
index 727b20104e..2a07529564 100644
--- a/components/table/demo/nested-table.md
+++ b/components/table/demo/nested-table.md
@@ -45,10 +45,10 @@ function NestedTable() {
key: 'operation',
render: () => (
- Pause
- Stop
+ Pause
+ Stop
-
+
More
@@ -76,7 +76,7 @@ function NestedTable() {
{ title: 'Upgraded', dataIndex: 'upgradeNum', key: 'upgradeNum' },
{ title: 'Creator', dataIndex: 'creator', key: 'creator' },
{ title: 'Date', dataIndex: 'createdAt', key: 'createdAt' },
- { title: 'Action', key: 'operation', render: () => Publish },
+ { title: 'Action', key: 'operation', render: () => Publish },
];
const data = [];
diff --git a/components/table/demo/resizable-column.md b/components/table/demo/resizable-column.md
index f6ae6d7c21..e40e14970d 100644
--- a/components/table/demo/resizable-column.md
+++ b/components/table/demo/resizable-column.md
@@ -62,7 +62,7 @@ class Demo extends React.Component {
{
title: 'Action',
key: 'action',
- render: () => Delete,
+ render: () => Delete,
},
],
};
diff --git a/components/table/demo/row-selection.md b/components/table/demo/row-selection.md
index 968b6b802d..01fa87faf3 100644
--- a/components/table/demo/row-selection.md
+++ b/components/table/demo/row-selection.md
@@ -24,7 +24,7 @@ const columns = [
{
title: 'Name',
dataIndex: 'name',
- render: text => {text},
+ render: text => {text},
},
{
title: 'Age',