Socket
Socket
Sign inDemoInstall

antd

Package Overview
Dependencies
Maintainers
4
Versions
843
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd - npm Package Compare versions

Comparing version 0.9.0-beta6 to 0.9.0-beta7

2

lib/index.js

@@ -54,2 +54,2 @@ require('./index.css');

antd.version = '0.9.0-beta6';
antd.version = '0.9.0-beta7';

@@ -44,6 +44,15 @@ 'use strict';

onStart: function onStart(file) {
file.status = 'uploading';
var nextFileList = this.state.fileList.concat();
if (file.length > 0) {
file.forEach(function (f) {
f.status = 'uploading';
});
nextFileList = nextFileList.concat(file);
} else {
file.status = 'uploading';
nextFileList.push(file);
}
this.onChange({
file: file,
add: true
fileList: nextFileList
});

@@ -104,21 +113,7 @@ },

if (!('fileList' in this.props) && !info.event) {
// 新增文件时,使用 multiple 属性会造成同时 setState
if (info.add) {
this.setState(function (prevState) {
return {
fileList: prevState.fileList.concat(info.file)
};
}, function () {
info.fileList = this.state.fileList;
this.props.onChange(info);
});
} else {
this.setState({
fileList: info.fileList
}, function () {
info.fileList = this.state.fileList;
this.props.onChange(info);
});
}
this.setState({
fileList: info.fileList
});
}
this.props.onChange(info);
},

@@ -125,0 +120,0 @@ getDefaultProps: function getDefaultProps() {

{
"name": "antd",
"version": "0.9.0-beta6",
"version": "0.9.0-beta7",
"stableVersion": "0.8.0",

@@ -61,3 +61,3 @@ "title": "Ant Design",

"rc-tree": "~0.15.4",
"rc-upload": "~1.3.1",
"rc-upload": "~1.4.0",
"rc-util": "~2.0.3",

@@ -64,0 +64,0 @@ "react-slick": "~0.7.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc