fix:Table's rowKey;antd upgrade

This commit is contained in:
zuiidea
2017-02-05 22:00:06 +08:00
parent 184613d003
commit 0700bcd700
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"index": "./src/index.js"
},
"dependencies": {
"antd": "^2.6.0",
"antd": "^2.7.0",
"classnames": "^2.2.5",
"dva": "^1.1.0",
"dva-loading": "^0.2.0",
+1 -1
View File
@@ -41,7 +41,7 @@ function Comments (props) {
]
return (
<div className={styles.comments}>
<Table pagination={false} showHeader={false} columns={columns} key={(record, key) => key} dataSource={props.data.filter((item, key) => key < 3)} />
<Table pagination={false} showHeader={false} columns={columns} rowKey={(record, key) => key} dataSource={props.data.filter((item, key) => key < 3)} />
</div>
)
}
+1 -1
View File
@@ -43,7 +43,7 @@ function RecentSales (props) {
]
return (
<div className={styles.recentsales}>
<Table pagination={false} columns={columns} key={(record, key) => key} dataSource={props.data.filter((item, key) => key < 5)} />
<Table pagination={false} columns={columns} rowKey={(record, key) => key} dataSource={props.data.filter((item, key) => key < 5)} />
</div>
)
}