diff --git a/src/component/rain-earthquake/DisasterChainPointComponent.vue b/src/component/rain-earthquake/DisasterChainPointComponent.vue index 562c245..0f8ce10 100644 --- a/src/component/rain-earthquake/DisasterChainPointComponent.vue +++ b/src/component/rain-earthquake/DisasterChainPointComponent.vue @@ -157,13 +157,13 @@ diff --git a/src/stores/useStatusStore.ts b/src/stores/useStatusStore.ts index acdc685..3a71468 100644 --- a/src/stores/useStatusStore.ts +++ b/src/stores/useStatusStore.ts @@ -40,6 +40,10 @@ export const useStatusStore = defineStore('status', () => { show: true, loading: true, }, + stepBar: { + show: false, + loading: true, + }, }); // ============================ 地图图层显示状态 ================================ diff --git a/src/stores/useStepStore.ts b/src/stores/useStepStore.ts new file mode 100644 index 0000000..33449dd --- /dev/null +++ b/src/stores/useStepStore.ts @@ -0,0 +1,19 @@ +import { defineStore } from 'pinia'; +import { type Ref, ref } from 'vue'; + +/** + * 步骤条store + */ +export const useStepStore = defineStore('step', () => { + /** + * 步骤条列表 + */ + const stepList: Ref = ref([]); + + /** + * 当前步骤 + */ + const currentStep: Ref = ref(0); + + return { stepList, currentStep }; +}); diff --git a/src/views/home/rainstorm/RainstormView.vue b/src/views/home/rainstorm/RainstormView.vue index f2e3a01..0f8f559 100644 --- a/src/views/home/rainstorm/RainstormView.vue +++ b/src/views/home/rainstorm/RainstormView.vue @@ -54,6 +54,9 @@ + + + @@ -66,6 +69,7 @@ import LeftButtonComponent from '@/component/rain-earthquake/LeftButtonComponent.vue'; import LeftLegendComponent from '@/component/rain-earthquake/LeftLegendComponent.vue'; import RightButtonComponent from '@/component/rain-earthquake/RightButtonComponent.vue'; + import StepComponent from '@/component/rain-earthquake/StepComponent.vue'; import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain'; import { useStatusStore } from '@/stores/useStatusStore'; import { DisasterType } from '@/types/common/DisasterType.ts';