From b9cab0fa2e3ce34ae41449accd625670c4a943e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Tue, 22 Nov 2022 11:40:17 +0800 Subject: [PATCH] chore: add FormItemInputContext for v3 compatible usage --- components/form/hooks/useFormItemStatus.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/form/hooks/useFormItemStatus.ts b/components/form/hooks/useFormItemStatus.ts index e05dc3270e..9c66245003 100644 --- a/components/form/hooks/useFormItemStatus.ts +++ b/components/form/hooks/useFormItemStatus.ts @@ -19,4 +19,7 @@ const useFormItemStatus: UseFormItemStatus = () => { return { status }; }; +// Only used for compatible package. Not promise this will work on future version. +(useFormItemStatus as any).Context = FormItemInputContext; + export default useFormItemStatus;