From 0700bcd7006d8be479dc53f4cc555191a85327b7 Mon Sep 17 00:00:00 2001 From: zuiidea Date: Sun, 5 Feb 2017 22:00:06 +0800 Subject: [PATCH] fix:Table's rowKey;antd upgrade --- package.json | 2 +- src/components/dashboard/comments.js | 2 +- src/components/dashboard/recentSales.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ca72a4f..47eefa5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/dashboard/comments.js b/src/components/dashboard/comments.js index 8dbe27c..d5b57ba 100644 --- a/src/components/dashboard/comments.js +++ b/src/components/dashboard/comments.js @@ -41,7 +41,7 @@ function Comments (props) { ] return (
- key} dataSource={props.data.filter((item, key) => key < 3)} /> +
key} dataSource={props.data.filter((item, key) => key < 3)} /> ) } diff --git a/src/components/dashboard/recentSales.js b/src/components/dashboard/recentSales.js index 915af2d..409f004 100644 --- a/src/components/dashboard/recentSales.js +++ b/src/components/dashboard/recentSales.js @@ -43,7 +43,7 @@ function RecentSales (props) { ] return (
-
key} dataSource={props.data.filter((item, key) => key < 5)} /> +
key} dataSource={props.data.filter((item, key) => key < 5)} /> ) }