Files
certd/packages/ui/certd-client/src/components/tutorial/simple-steps.vue
T

29 lines
605 B
Vue
Raw Normal View History

2024-10-31 10:32:05 +08:00
<template>
<a-steps :current="3" class="mt-10" size="small" :items="steps" @click="goPipeline"></a-steps>
</template>
<script lang="ts" setup>
import { useRouter } from "vue-router";
2025-06-25 20:09:29 +02:00
import { useI18n } from "vue-i18n";
const { t } = useI18n();
2024-10-31 10:32:05 +08:00
type Step = {
title: string;
description?: string;
};
import { ref } from "vue";
const steps = ref<Step[]>([
2025-06-25 20:09:29 +02:00
{ title: t('certd.steps.createPipeline') },
{ title: t('certd.steps.addTask') },
{ title: t('certd.steps.scheduledRun') }
2024-10-31 10:32:05 +08:00
]);
const router = useRouter();
function goPipeline() {
router.push({ path: "/certd/pipeline" });
}
</script>