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/context.ts |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/packages/components/src/views/GasBillRecharge/context.ts b/packages/components/src/views/GasBillRecharge/context.ts
new file mode 100644
index 0000000..f12ea79
--- /dev/null
+++ b/packages/components/src/views/GasBillRecharge/context.ts
@@ -0,0 +1,29 @@
+import type { InjectionKey, UnwrapNestedRefs, Ref } from 'vue';
+import { inject } from 'vue';
+import { UseStepperReturn } from 'senin-mini/hooks';
+import { LifeRechargeConstants } from '@life-payment/core-vue';
+
+type GasBillRechargeSteps = 'step1' | 'step2' | 'step3';
+
+export interface GasBillRechargeContext
+  extends UseStepperReturn<GasBillRechargeSteps, GasBillRechargeSteps[], GasBillRechargeSteps> {
+  preSetForm: GasUserAccountExtraProperties;
+}
+
+export const GasBillRechargeContextKey: InjectionKey<GasBillRechargeContext> = Symbol(
+  'GasBillRechargeContextKey'
+);
+
+export function useGasBillRechargeContext() {
+  return inject(GasBillRechargeContextKey);
+}
+
+export type GasUserAccountExtraProperties = {
+  // gasOrgType: LifeRechargeConstants.GasOrgCodeEnum;
+  gasOrgType: string;
+  // province: string;
+  // city: string;
+  gasAccount: string;
+  remark: string;
+  areaList: string[];
+};

--
Gitblit v1.9.1