diff --git a/components/upload/uploadList.jsx b/components/upload/uploadList.jsx index feec56f5c4..e5992e9fef 100644 --- a/components/upload/uploadList.jsx +++ b/components/upload/uploadList.jsx @@ -36,7 +36,7 @@ export default React.createClass({ if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || - (!file.originFileObj instanceof File) || + !(file.originFileObj instanceof File) || file.thumbUrl !== undefined) { return; } diff --git a/package.json b/package.json index c696e4cabc..106d8716d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "0.12.0-beta.25", + "version": "0.12.0-beta.26", "title": "Ant Design", "description": "一个 UI 设计语言", "homepage": "http://ant.design/", @@ -83,6 +83,7 @@ "busboy": "^0.2.9", "chalk": "^1.1.0", "css-loader": "^0.23.0", + "cz-conventional-changelog": "^1.1.5", "es3ify-loader": "^0.1.0", "eslint": "^1.1.0", "eslint-config-airbnb": "latest", @@ -164,5 +165,10 @@ "plugins": [ "add-module-exports" ] + }, + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } } -} +} \ No newline at end of file