From 07d73df3d817d01ce47f6c7b7a8d8514cd389295 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 13 三月 2025 10:19:44 +0800
Subject: [PATCH] release: @life-payment/core v0.0.3

---
 packages/components/src/views/GasBillRecharge/GasBillRecharge.vue |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/packages/components/src/views/GasBillRecharge/GasBillRecharge.vue b/packages/components/src/views/GasBillRecharge/GasBillRecharge.vue
new file mode 100644
index 0000000..b3cd21d
--- /dev/null
+++ b/packages/components/src/views/GasBillRecharge/GasBillRecharge.vue
@@ -0,0 +1,52 @@
+<template>
+  <GasBillRechargeStep1 v-if="current === 'step1'" />
+  <GasBillRechargeStep2 v-else-if="current === 'step2'" />
+  <GasBillRechargeStep3
+    v-else-if="current === 'step3'"
+    v-bind="props"
+    @go-pay="emit('goPay', $event)"
+  />
+</template>
+
+<script setup lang="ts">
+import { computed, provide, reactive } from 'vue';
+import { useStepper } from 'senin-mini/hooks';
+import { GasBillRechargeContextKey } from './context';
+import GasBillRechargeStep1 from './GasBillRechargeStep1.vue';
+import GasBillRechargeStep2 from './GasBillRechargeStep2.vue';
+import GasBillRechargeStep3 from './GasBillRechargeStep3.vue';
+import { LifeRechargeConstants } from '@life-payment/core-vue';
+
+defineOptions({
+  name: 'GasBillRecharge',
+});
+
+type Props = {
+  isDev?: boolean;
+};
+
+const props = withDefaults(defineProps<Props>(), {
+  isDev: false,
+});
+
+const stepperInfo = useStepper(['step1', 'step2', 'step3'], 'step3');
+const current = computed(() => stepperInfo.current.value);
+
+const emit = defineEmits<{
+  (e: 'goPay', orderNo: string): void;
+}>();
+
+const preSetForm = reactive({
+  gasOrgType: '',
+  // province: '',
+  // city: '',
+  gasAccount: '',
+  remark: '',
+  areaList: [] as string[],
+});
+
+provide(GasBillRechargeContextKey, {
+  ...stepperInfo,
+  preSetForm,
+});
+</script>

--
Gitblit v1.9.1