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

This commit is contained in:
afc163 2015-11-25 17:50:16 +08:00
commit 69433ebf9c
5 changed files with 25 additions and 12 deletions

View File

@ -4,6 +4,17 @@
---
## 0.10.2 `2015-11-25`
- Slider 新增 `tipFormatter` 用于格式化 Tooltip 的内容。
- 优化 Badge 动画效果。
- 修复以下问题:
- 文本域的表单校验无法重置。
- 设置 Upload 的 `multiple``true` 时,未显示每个文件的上传进度。
- Breadcrumb 配合 Router 的时候如果没有 `breadcrumbName` 会抛错。
- InputNumber 同时设置 `size` `className` 时会有冲突。
## 0.10.1 `2015-11-20`
- 修改内部组件的引用结构,方便工具优化。[#566](https://github.com/ant-design/ant-design/pull/566)

View File

@ -1,5 +1,6 @@
import InputNumber from 'rc-input-number';
import React from 'react';
import classNames from 'classnames';
import InputNumber from 'rc-input-number';
export default React.createClass({
getDefaultProps() {
@ -9,12 +10,13 @@ export default React.createClass({
};
},
render() {
let sizeClass = '';
if (this.props.size === 'large') {
sizeClass = 'ant-input-number-lg';
} else if (this.props.size === 'small') {
sizeClass = 'ant-input-number-sm';
}
return <InputNumber className={sizeClass} {...this.props} />;
const {className, size, ...other} = this.props;
const inputNumberClass = classNames({
'ant-input-number-lg': size === 'large',
'ant-input-number-sm': size === 'small',
[className]: !!className,
});
return <InputNumber className={inputNumberClass} {...other} />;
}
});

View File

@ -8,7 +8,7 @@
````jsx
import { Modal, Button } from 'antd';
const confirm = antd.Modal.confirm;
const confirm = Modal.confirm;
function showConfirm(){
confirm({

View File

@ -8,7 +8,7 @@
````jsx
import { Modal, Button } from 'antd';
const confirm = antd.Modal.confirm;
const confirm = Modal.confirm;
function showConfirm(){
confirm({

View File

@ -1,7 +1,7 @@
{
"name": "antd",
"version": "0.10.1",
"stableVersion": "0.10.1",
"version": "0.10.2",
"stableVersion": "0.10.2",
"title": "Ant Design",
"description": "一个 UI 设计语言",
"homepage": "http://ant.design/",