mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-31 22:53:47 +00:00
fix:Table's rowKey;antd upgrade
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user