mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
update demo
This commit is contained in:
parent
722b903118
commit
49f4fdf9b6
@ -211,8 +211,9 @@ class EditableTable extends React.Component {
|
||||
}
|
||||
return {
|
||||
...col,
|
||||
onCell: record => ({
|
||||
onCell: (record, rowIndex) => ({
|
||||
record,
|
||||
rowIndex,
|
||||
editable: col.editable,
|
||||
dataIndex: col.dataIndex,
|
||||
title: col.title,
|
||||
|
@ -186,8 +186,9 @@ class EditableTable extends React.Component {
|
||||
}
|
||||
return {
|
||||
...col,
|
||||
onCell: record => ({
|
||||
onCell: (record, rowIndex) => ({
|
||||
record,
|
||||
rowIndex,
|
||||
inputType: col.dataIndex === 'age' ? 'number' : 'text',
|
||||
dataIndex: col.dataIndex,
|
||||
title: col.title,
|
||||
|
Loading…
Reference in New Issue
Block a user