/** * 请在 /packages/pandora-ui/src/index.ts 中导入该组件 */ import React, { CSSProperties } from 'react'; import { type ClassValue } from '../../utils/cx'; import { type SizeType } from '../config-provider'; export interface FormProps { className?: ClassValue; size?: SizeType; style?: CSSProperties; ref?: any; /** * 提交 * @returns */ onFinish?: (values: any) => void; /** * 提交且数据校验失败 * @returns */ onFinishFailed?: (values: object) => void; /** * 表单发生改变时返回当前数据 * @returns */ onChange?: (values: object, curVal?: object) => void; /** * 取消 * @returns */ onCancel?: () => void; /** * 重置 * @returns */ onReset?: () => void; children?: any; value?: any; defaultValue?: any; onValidate?: any; translate?: any; labelWidth?: string | number; inline?: boolean; mode?: 'vertical' | 'horizontal'; description?: React.ReactDOM; } declare const Form: React.FC; export default Form;