mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
update steps
This commit is contained in:
parent
20ae732f14
commit
058199ed2c
@ -2,7 +2,7 @@
|
||||
|
||||
- order: 2
|
||||
|
||||
通过设置`Steps.Step`的`icon`属性,可以启用自定义图标。
|
||||
通过设置 `Steps.Step` 的 `icon` 属性,可以启用自定义图标。
|
||||
|
||||
---
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
- order: 1
|
||||
|
||||
迷你版的步骤条,通过设置`<Steps size='small'>`启用.
|
||||
迷你版的步骤条,通过设置 `<Steps size="small">` 启用.
|
||||
|
||||
---
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
- order: 3
|
||||
|
||||
随机生成3~6个步骤,初始随机进行到其中一个步骤。
|
||||
随机生成 3~6 个步骤,初始随机进行到其中一个步骤。
|
||||
|
||||
---
|
||||
|
||||
|
@ -11,15 +11,18 @@ const AntSteps = React.createClass({
|
||||
};
|
||||
},
|
||||
render() {
|
||||
return (<Steps size={this.props.size}
|
||||
direction={this.props.direction}
|
||||
iconPrefix={this.props.iconPrefix}
|
||||
maxDescriptionWidth={this.props.maxDescriptionWidth}
|
||||
prefixCls={this.props.prefixCls}>
|
||||
{this.props.children}
|
||||
</Steps>);
|
||||
return (
|
||||
<Steps size={this.props.size}
|
||||
direction={this.props.direction}
|
||||
iconPrefix={this.props.iconPrefix}
|
||||
maxDescriptionWidth={this.props.maxDescriptionWidth}
|
||||
prefixCls={this.props.prefixCls}>
|
||||
{this.props.children}
|
||||
</Steps>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
AntSteps.Step = Steps.Step;
|
||||
|
||||
export default AntSteps;
|
||||
|
Loading…
Reference in New Issue
Block a user