ant-design-vue/components/steps/demo/customized-progress-dot.md

40 lines
932 B
Markdown
Raw Normal View History

2018-03-10 12:46:57 +00:00
<cn>
#### 自定义点状步骤条
为点状步骤条增加自定义展示。
</cn>
<us>
#### Customized Dot Style
You can customize the display for Steps with progress dot style.
</us>
```html
<template>
2018-03-10 12:59:15 +00:00
<a-steps :current="1" :progressDot="customDot">
2018-03-10 12:46:57 +00:00
<a-step title="Finished" description="You can hover on the dot." />
<a-step title="In Progress" description="You can hover on the dot." />
<a-step title="Waiting" description="You can hover on the dot." />
<a-step title="Waiting" description="You can hover on the dot." />
</a-steps>
</template>
<script>
export default {
data() {
return {}
},
methods: {
2018-03-11 04:48:04 +00:00
customDot(dot, {index, status}) {
2018-03-10 12:46:57 +00:00
return (
<a-popover>
<template slot="content">
2018-03-11 04:48:04 +00:00
<span>step {index} status: {status}</span>
2018-03-10 12:46:57 +00:00
</template>
{dot}
</a-popover>
)
}
},
}
</script>
```