cjd-parkball
Version:
> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用
35 lines (26 loc) • 803 B
Markdown
---
category: 2
title: 自定义点状步骤条
title_en: Customized Dot Style
---
zh-CN
为点状步骤条增加自定义展示。
en-US
You can customize the display for Steps with progress dot style.
````jsx
import { Steps, Popover } from 'parkball';
const Step = Steps.Step;
const customDot = (dot, { status, index }) => (
<Popover content={<span>step {index} status: {status}</span>}>
{dot}
</Popover>
);
ReactDOM.render(
<Steps current={1} progressDot={customDot}>
<Step title="Finished" description="You can hover on the dot." />
<Step title="In Progress" description="You can hover on the dot." />
<Step title="Waiting" description="You can hover on the dot." />
<Step title="Waiting" description="You can hover on the dot." />
</Steps>,
mountNode);
````