You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/steps/demo/customized-progress-dot.vue

57 lines
1.1 KiB

<docs>
---
order: 8
title:
zh-CN: 自定义点状步骤条
en-US: Customized Dot Style
---
## zh-CN
为点状步骤条增加自定义展示
## en-US
You can customize the display for Steps with progress dot style.
</docs>
<template>
<div>
<a-steps
v-model:current="current"
:items="[
{
title: 'Finished',
description,
},
{
title: 'In Progress',
description,
},
{
title: 'Waiting',
description,
},
{
title: 'Waiting',
description,
},
]"
>
<template #progressDot="{ index, status, prefixCls }">
<a-popover>
<template #content>
<span>step {{ index }} status: {{ status }}</span>
</template>
<span :class="`${prefixCls}-icon-dot`" />
</a-popover>
</template>
</a-steps>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const current = ref<number>(1);
const description = 'You can hover on the dot.';
</script>