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/nav.vue

71 lines
1.6 KiB

<docs>
---
order: 10
title:
zh-CN: 导航步骤
en-US: Navigation Steps
---
## zh-CN
导航类型的步骤条
## en-US
Navigation steps.
</docs>
<template>
<div>
<a-steps v-model:current="current" type="navigation" size="small" :style="stepStyle">
<a-step
title="Step 1"
sub-title="00:00:05"
status="finish"
description="This is a description."
/>
<a-step
title="Step 2"
sub-title="00:01:02"
status="process"
description="This is a description."
/>
<a-step
title="Step 3"
sub-title="waiting for longlong time"
status="wait"
description="This is a description."
/>
</a-steps>
<a-steps v-model:current="current" type="navigation" :style="stepStyle">
<a-step status="finish" title="Step 1" />
<a-step status="process" title="Step 2" />
<a-step status="wait" title="Step 3" />
<a-step status="wait" title="Step 4" />
</a-steps>
<a-steps v-model:current="current" type="navigation" size="small" :style="stepStyle">
<a-step status="finish" title="finish 1" />
<a-step status="finish" title="finish 2" />
<a-step status="process" title="current process" />
<a-step status="wait" title="wait" disabled />
</a-steps>
</div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const current = ref<number>(0);
return {
current,
stepStyle: {
marginBottom: '60px',
boxShadow: '0px -1px 0 0 #e8e8e8 inset',
},
};
},
});
</script>