Files
xian_vue_new/src/component/rain-earthquake/StepComponent.vue
T

44 lines
923 B
Vue
Raw Normal View History

2026-05-06 19:22:10 +08:00
<template>
2026-05-07 12:53:25 +08:00
<div class="step-box" v-show="useStatus.uiComponents.stepBar.show">
2026-05-06 19:22:10 +08:00
<el-steps
2026-05-07 10:39:34 +08:00
style="width: 100%; background-color: #ffffff00"
2026-05-07 12:53:25 +08:00
:active="useStep.currentStep"
2026-05-06 19:22:10 +08:00
finish-status="success"
2026-05-07 10:45:33 +08:00
simple
2026-05-06 19:22:10 +08:00
>
<el-step
2026-05-07 12:53:25 +08:00
v-for="(item, index) in useStep.stepList"
2026-05-06 19:22:10 +08:00
:key="index"
:title="item"
/>
</el-steps>
</div>
</template>
<script lang="ts" setup>
2026-05-07 10:39:34 +08:00
import { useStatusStore } from '@/stores/useStatusStore';
2026-05-06 19:22:10 +08:00
import { useStepStore } from '@/stores/useStepStore';
2026-05-07 12:53:25 +08:00
const useStatus = useStatusStore();
const useStep = useStepStore();
2026-05-06 19:22:10 +08:00
</script>
<style scoped>
.step-box {
width: 100%;
2026-05-07 10:39:34 +08:00
height: 65px;
2026-05-06 19:22:10 +08:00
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 50px;
left: 0;
background-color: rgba(14, 52, 98, 0.8);
z-index: 1000;
}
2026-05-07 10:39:34 +08:00
:deep(.is-wait) {
color: #fff;
}
2026-05-06 19:22:10 +08:00
</style>