Merge branch '0.8.0' of github.com:ant-design/ant-design into 0.8.0

This commit is contained in:
afc163 2015-08-18 17:52:56 +08:00
commit 452426d6f5
4 changed files with 21 additions and 4 deletions

View File

@ -83,10 +83,10 @@ React.render(
color: #ccc;
}
.iconWrapper .anticon:nth-child(1) {
.iconWrapper .anticon-lock {
left: 0;
}
.iconWrapper .anticon:nth-child(2){
.iconWrapper .anticon-unlock{
right: 0;
}

View File

@ -22,7 +22,23 @@
| name | 可选参数, 上传的文件 | String | file |
| action | 必选参数, 上传的地址 | String | 无 |
| data | 可选参数, 上传所需参数 | Object | 无 |
| accept | 可选参数, 接受上传的文件类型, 详见input accept Attribute | String | 无 |
| multiple | 可选参数, 是否支持多选文件支持ie10+ | Boolean | false |
| accept | 可选参数, 接受上传的文件类型, 详见input accept Attribute | String | 无 |
| onError | 可选参数, error callback |Function | 无 |
| onSuccess | 可选参数, success callback | Function | 无 |
| onProgress | 可选参数, progress callback, 现代浏览器有效 | Function | 无 |
### onError
错误回调,有三个参数返回:
1. `err` 请求返回错误信息
2. `responce` 请求响应,包括错误状态码等信息
3. `file` 错误的文件对象
### onSuccess
成功回调,返回两个参数
1. `result` 上传图片返回结果
2. `file` 文件对象

View File

@ -243,6 +243,7 @@ React.render(<Form />, document.getElementById('components-validation-demo-custo
.ant-pwd-strength-medium .ant-pwd-strength-item-2, .ant-pwd-strength-high .ant-pwd-strength-item-2 {
background-color: rgba(135, 208, 104, .6);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#9987D068,endColorstr=#9987D068);
}
.ant-pwd-strength-high .ant-pwd-strength-item-3 {

View File

@ -58,7 +58,7 @@
"rc-tabs": "~5.3.2",
"rc-tooltip": "~2.5.0",
"rc-tree": "~0.14.x",
"rc-upload": "~1.3.0",
"rc-upload": "~1.3.1",
"rc-util": "~2.0.3",
"react-slick": "~0.6.4",
"reqwest": "~2.0.1"