40 lines
962 B
Markdown
40 lines
962 B
Markdown
|
<cn>
|
||
|
#### 自定义点状步骤条
|
||
|
为点状步骤条增加自定义展示。
|
||
|
</cn>
|
||
|
|
||
|
<us>
|
||
|
#### Customized Dot Style
|
||
|
You can customize the display for Steps with progress dot style.
|
||
|
</us>
|
||
|
|
||
|
```html
|
||
|
<template>
|
||
|
<a-steps :current="1" :progressDot="customDot" style="margin-top:150px">
|
||
|
<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: {
|
||
|
customDot(dot, params) {
|
||
|
return (
|
||
|
<a-popover>
|
||
|
<template slot="content">
|
||
|
<span>step {params.index} status: {params.status}</span>
|
||
|
</template>
|
||
|
{dot}
|
||
|
</a-popover>
|
||
|
)
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|
||
|
```
|