From 61117e50bc2e649d471879e32e27ec28cc8ddcc5 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 30 Jul 2026 07:42:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(BindContactModal):=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=8C=96=E6=8B=86=E5=88=86=20-=20=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/auth/BindContactModal/types.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 apps/web/src/components/auth/BindContactModal/types.ts diff --git a/apps/web/src/components/auth/BindContactModal/types.ts b/apps/web/src/components/auth/BindContactModal/types.ts new file mode 100644 index 000000000..569bbb69a --- /dev/null +++ b/apps/web/src/components/auth/BindContactModal/types.ts @@ -0,0 +1,14 @@ +import type { BindContactResponse } from "@/api/auth" + +/** BindContactModal 组件属性 */ +export interface BindContactModalProps { + /** 是否打开 */ + open: boolean + /** 绑定成功回调 */ + onSuccess?: (user: BindContactResponse["user"]) => void + /** 取消回调 */ + onCancel?: () => void +} + +/** 联系方式类型 */ +export type ContactType = "email" | "phone"