You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
645 B
21 lines
645 B
import React from 'react'
|
|
import { FormInstance } from 'antd/lib'
|
|
import { CrazyChildFormProps } from './typeing'
|
|
|
|
|
|
export const CrazyFormProvide = React.createContext<
|
|
| {
|
|
regForm: (name: string, props: CrazyChildFormProps<any>) => void;
|
|
unRegForm: (name: string) => void;
|
|
onFormFinish: (name: string, formData: any) => void;
|
|
keyArray: string[];
|
|
formArrayRef: React.MutableRefObject<
|
|
React.MutableRefObject<FormInstance<any> | undefined>[]
|
|
>;
|
|
loading: boolean;
|
|
setLoading: (loading: boolean) => void;
|
|
formMapRef: React.MutableRefObject<Map<string, CrazyChildFormProps>>;
|
|
}
|
|
| undefined
|
|
>(undefined)
|
|
|