File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 1- import Form from "./Form" ;
1+ import BaseForm from "./Form" ;
22import FormItem from "./FormItem" ;
33import NativeField from "./NativeField" ;
44import FormContext from "./FormContext" ;
55import FormItemContext from "./FormItemContext" ;
66import useForm from "./useForm" ;
77import useFormItem from "./useFormItem" ;
88
9+ type BaseFormType = typeof BaseForm ;
10+ interface Form extends BaseFormType {
11+ Item : typeof FormItem ;
12+ useForm : typeof useForm ;
13+ useFormItem : typeof useFormItem ;
14+ Context : typeof FormContext ;
15+ ItemContext : typeof FormItemContext ;
16+ NativeField : typeof NativeField ;
17+ }
18+
19+ const Form : Form = BaseForm as Form ;
20+
21+ Form . Item = FormItem ;
22+ Form . useForm = useForm ;
23+ Form . Context = FormContext ;
24+ Form . useFormItem = useFormItem ;
25+ Form . ItemContext = FormItemContext ;
26+ Form . NativeField = NativeField ;
27+
928export {
10- Form ,
29+ BaseForm as Form ,
1130 FormItem ,
1231 NativeField ,
13- NativeField as NativeInput ,
1432 FormContext ,
1533 FormItemContext ,
1634 useForm ,
You can’t perform that action at this time.
0 commit comments