@alicloud/console-components
Version:
Alibaba Cloud React Components
73 lines (72 loc) • 5.62 kB
TypeScript
import React from 'react';
import type { FormProps } from '@alifd/next/types/form';
declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<FormProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/form/form").default, {}> & {
Item: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("@alifd/next/types/form").ItemProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/form/item").default, {}> & {
_typeMark: string;
};
Error: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("@alifd/next/types/form").ErrorProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
itemRender: (errors: unknown[]) => unknown[];
render(): React.JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@alifd/next/types/form").ErrorProps>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/form").ErrorProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/form").ErrorProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<import("@alifd/next/types/form").ErrorProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextState: Readonly<{}>, nextContext: any): void;
}, {}> & {
_typeMark: string;
};
Submit: typeof import("@alifd/next/types/form/submit").default;
Reset: typeof import("@alifd/next/types/form/reset").default;
}, {}>;
export default Form;
export declare const FormSubmit: typeof import("@alifd/next/types/form/submit").default;
export declare const FormReset: typeof import("@alifd/next/types/form/reset").default;
export declare const FormItem: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("@alifd/next/types/form").ItemProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/form/item").default, {}> & {
_typeMark: string;
};
export declare const FormError: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("@alifd/next/types/form").ErrorProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
itemRender: (errors: unknown[]) => unknown[];
render(): React.JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@alifd/next/types/form").ErrorProps>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/form").ErrorProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/form").ErrorProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<import("@alifd/next/types/form").ErrorProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/form").ErrorProps>, nextState: Readonly<{}>, nextContext: any): void;
}, {}> & {
_typeMark: string;
};
export type { FormProps, ItemProps as FormItemProps, SubmitProps as FormSubmitProps, ResetProps as FormResetProps, ErrorProps as FormErrorProps, } from '@alifd/next/types/form';