Skip to content

Commit

Permalink
Merge branch 'develop-0.10.0' of github.com:ant-design/ant-design int…
Browse files Browse the repository at this point in the history
…o develop-0.10.0
  • Loading branch information
afc163 committed Nov 3, 2015
2 parents cef93e2 + d184d87 commit 0661010
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions components/button/demo/button-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

- order: 5

可以将多个 `Button` 放入 `ButtonGroup` 的容器中。
可以将多个 `Button` 放入 `Button.Group` 的容器中。

通过设置 `size``large` `small` 分别把按钮组合设为大、小尺寸。若不设置 `size`,则尺寸为中。

---

````jsx
import { Button, ButtonGroup, Icon } from 'antd';
import { Button, Icon } from 'antd';
const ButtonGroup = Button.Group;

ReactDOM.render(<div>
<h4>基本组合</h4>
Expand Down
6 changes: 2 additions & 4 deletions components/button/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Button from './button';
import ButtonGroup from './button-group';

export {
Button,
ButtonGroup,
};
Button.Group = ButtonGroup;
export default Button;
3 changes: 2 additions & 1 deletion components/progress/demo/circle-dynamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
---

````jsx
import { Progress, Button, ButtonGroup, Icon } from 'antd';
import { Progress, Button, Icon } from 'antd';
const ProgressCircle = Progress.Circle;
const ButtonGroup = Button.Group;

const MyProgress = React.createClass({
getInitialState() {
Expand Down
3 changes: 2 additions & 1 deletion components/progress/demo/dynamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
---

````jsx
import { Progress, Button, ButtonGroup, Icon } from 'antd';
import { Progress, Button, Icon } from 'antd';
const ProgressLine = Progress.Line;
const ButtonGroup = Button.Group;

const MyProgress = React.createClass({
getInitialState() {
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const antd = {
Badge: require('./components/badge'),
Menu: require('./components/menu'),
Timeline: require('./components/timeline'),
Button: require('./components/button').Button,
ButtonGroup: require('./components/button').ButtonGroup,
Button: require('./components/button'),
ButtonGroup: require('./components/button').Group,
Icon: require('./components/iconfont'),
Row: require('./components/layout').Row,
Col: require('./components/layout').Col,
Expand Down

0 comments on commit 0661010

Please sign in to comment.