mirror of https://github.com/certd/certd
chore:
parent
9d9c021819
commit
5aa06f5b07
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex-col h-100 tutorial-steps">
|
<div class="flex-col h-100 tutorial-steps">
|
||||||
<a-steps v-model:current="current" class="mt-10" :percent="percent" size="small" :items="steps"></a-steps>
|
<a-steps v-model:current="current" class="mt-10" :percent="percent" size="small" :items="steps" @change="stepChanged"></a-steps>
|
||||||
|
|
||||||
<div class="step-item overflow-hidden">
|
<div class="step-item overflow-hidden">
|
||||||
<div class="text">
|
<div class="text">
|
||||||
|
@ -40,6 +40,7 @@ import { computed, nextTick, ref } from "vue";
|
||||||
const steps = ref<Step[]>([
|
const steps = ref<Step[]>([
|
||||||
{
|
{
|
||||||
title: "创建证书申请流水线",
|
title: "创建证书申请流水线",
|
||||||
|
description: "演示证书申请任务如何配置",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
image: "/doc/images/1-add.png",
|
image: "/doc/images/1-add.png",
|
||||||
|
@ -70,6 +71,7 @@ const steps = ref<Step[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "添加部署证书任务",
|
title: "添加部署证书任务",
|
||||||
|
description: "演示部署到阿里云CDN和Nginx",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
image: "/doc/images/6-1-add-task.png",
|
image: "/doc/images/6-1-add-task.png",
|
||||||
|
@ -125,6 +127,7 @@ const steps = ref<Step[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "运行与测试",
|
title: "运行与测试",
|
||||||
|
description: "演示流水线运行,查看日志,成功后跳过等",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
image: "/doc/images/9-start.png",
|
image: "/doc/images/9-start.png",
|
||||||
|
@ -175,6 +178,7 @@ const steps = ref<Step[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "设置定时执行和邮件通知",
|
title: "设置定时执行和邮件通知",
|
||||||
|
description: "自动运行",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
image: "/doc/images/14-timer.png",
|
image: "/doc/images/14-timer.png",
|
||||||
|
@ -206,6 +210,10 @@ const currentStepItem = computed(() => {
|
||||||
return currentStep.value.items[currentItem.value];
|
return currentStep.value.items[currentItem.value];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const percent = computed(() => {
|
||||||
|
return ((currentItem.value + 1) / currentStep.value.items.length) * 100;
|
||||||
|
});
|
||||||
|
|
||||||
function stepNext() {
|
function stepNext() {
|
||||||
if (current.value < steps.value.length - 1) {
|
if (current.value < steps.value.length - 1) {
|
||||||
current.value++;
|
current.value++;
|
||||||
|
@ -243,6 +251,11 @@ function prev() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function stepChanged(index: number) {
|
||||||
|
current.value = index;
|
||||||
|
currentItem.value = 0;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
@ -291,5 +304,10 @@ function prev() {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-steps .ant-steps-item-description {
|
||||||
|
font-size: 12px !important;
|
||||||
|
color: #999 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue