mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
import createReactContext from '@ant-design/create-react-context';
|
|
import { ColProps } from '../grid/col';
|
|
import { FormLabelAlign } from './FormItem';
|
|
|
|
export interface FormContextProps {
|
|
vertical: boolean;
|
|
colon?: boolean;
|
|
labelAlign?: FormLabelAlign;
|
|
labelCol?: ColProps;
|
|
wrapperCol?: ColProps;
|
|
}
|
|
|
|
const FormContext = createReactContext<FormContextProps>({
|
|
labelAlign: 'right',
|
|
vertical: false,
|
|
});
|
|
|
|
export default FormContext;
|