Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add stepIcon renderer #118

Merged
merged 20 commits into from
Jul 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions examples/progressPercentage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ import '../assets/iconfont.less';
import React from 'react';
import Steps, { Step } from '../src';

const description =
'这里是多信息的描述啊这里是多信息的描述啊这里是多信息的描述啊这里是多信息的描述啊这里是多信息的描述啊';

export default () => (
<Steps progressPercentage={() => <span>a</span>} size="small" current={1}>
<Step title="已完成" description={description} onClick={test} />
<Step title="进行中" description={description} />
<Step title="待运行" description={description} />
<Step title="待运行" description={description} />
<Step title="待运行" description={description} />
<Steps progressPercentage={() => <span>a</span>} current={1}>
07akioni marked this conversation as resolved.
Show resolved Hide resolved
<Step title="已完成" />
07akioni marked this conversation as resolved.
Show resolved Hide resolved
<Step title="进行中" />
<Step title="待运行" />
<Step title="待运行" />
<Step title="待运行" />
</Steps>
);