import * as React from 'react'; import PropTypes from 'prop-types'; import './style/index.less'; /** * @param {object} props * @param {object} props.scope - 外部作用域,用来接收formInstance * @param {object} props.initialValues - 表单默认值,只有初始化以及重置时生效 * @param {object} props.className - class name * @param {string[]} props.cascade - 人工表单级联菜单 * 动态表单api - 根据后台返回的数据生成表单 * @param {object[]} props.data - 组件数据,符合组件数据格式 * @param {object} props.data[] - FormItem api 格式 * @example * props.data = [ * { * type: 'INPUT_PASSWORD', * rules: [schema.custom.rules.required()], * name: 'pwd' * } * ] * @param {object[]} props.originalData - 组件数据,后端返回的数据,需要转换成组件数据格式 * @param {number} props.column - 一行几列 * @param {string} props.action - 上传接口地址 * @param {func} props.getList - 下拉组件获取list * **/ declare function EnhanceForm(props?: {}): React.ReactElement; declare namespace EnhanceForm { var propTypes: { scope: PropTypes.Requireable; initialValues: PropTypes.Requireable; className: PropTypes.Requireable; originalData: PropTypes.Requireable<(object | null | undefined)[]>; action: PropTypes.Requireable; getList: PropTypes.Requireable<(...args: any[]) => any>; cascade: PropTypes.Requireable<((string | null | undefined)[] | null | undefined)[]>; }; var defaultProps: { scope: {}; column: number; getList: () => any; }; var checkout: (argus: any, type: any, name: any) => void; } export default EnhanceForm;