UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

15 lines (14 loc) 619 B
import React from 'react'; import { FormLayout } from '.'; import type { Meta, InternalNamePath } from 'rc-field-form/lib/interface'; export declare type FormContextType = { hasFeedback: boolean; layout: FormLayout; requiredMarkStyle: 'asterisk' | 'text-required' | 'text-optional'; }; export declare const defaultFormContext: FormContextType; export declare const FormContext: React.Context<FormContextType>; export declare type OnSubMetaChange = (meta: Meta & { destroy?: boolean; }, namePath: InternalNamePath) => void; export declare const NoStyleItemContext: React.Context<OnSubMetaChange | null>;