diff --git a/components/button/button.jsx b/components/button/button.jsx
index b97dfaee50..44d21498c8 100644
--- a/components/button/button.jsx
+++ b/components/button/button.jsx
@@ -67,11 +67,13 @@ export default class Button extends React.Component {
small: 'sm',
})[size] || '';
+ console.log(children, icon);
const classes = classNames({
'ant-btn': true,
[prefix + type]: type,
[prefix + shape]: shape,
[prefix + sizeCls]: sizeCls,
+ [`${prefix}icon-only`]: !children && icon,
[`${prefix}loading`]: ('loading' in props && props.loading !== false),
[className]: className,
});
diff --git a/components/button/demo/button-group.md b/components/button/demo/button-group.md
index 1609a441df..cc5495230c 100644
--- a/components/button/demo/button-group.md
+++ b/components/button/demo/button-group.md
@@ -39,12 +39,8 @@ ReactDOM.render(
-
-
+
+
尺寸
diff --git a/components/progress/demo/circle-dynamic.md b/components/progress/demo/circle-dynamic.md
index 57f8165466..5cf6241f56 100644
--- a/components/progress/demo/circle-dynamic.md
+++ b/components/progress/demo/circle-dynamic.md
@@ -6,7 +6,7 @@ title: 进度圈动态展示
会动的进度条才是好进度条。
````jsx
-import { Progress, Button, Icon } from 'antd';
+import { Progress, Button } from 'antd';
const ButtonGroup = Button.Group;
const MyProgress = React.createClass({
@@ -34,12 +34,8 @@ const MyProgress = React.createClass({
);
diff --git a/components/progress/demo/dynamic.md b/components/progress/demo/dynamic.md
index 587637838f..c35599a68c 100644
--- a/components/progress/demo/dynamic.md
+++ b/components/progress/demo/dynamic.md
@@ -6,7 +6,7 @@ title: 动态展示
会动的进度条才是好进度条。
````jsx
-import { Progress, Button, Icon } from 'antd';
+import { Progress, Button } from 'antd';
const ButtonGroup = Button.Group;
const MyProgress = React.createClass({
@@ -34,12 +34,8 @@ const MyProgress = React.createClass({
);
diff --git a/style/components/button.less b/style/components/button.less
index 43a1e7d3c8..fd4c1a1e25 100644
--- a/style/components/button.less
+++ b/style/components/button.less
@@ -88,6 +88,11 @@
.btn-group(@btn-prefix-cls);
}
+ &&-icon-only {
+ padding-left: 8px;
+ padding-right: 8px;
+ }
+
// To ensure that a space will be placed between character and `Icon`.
> .@{iconfont-css-prefix} + span,
> span + .@{iconfont-css-prefix} {