import { PropsWithChildren, ReactElement } from 'react'; import type { StringItem } from '../../types'; /** * 当类型为string时的组件渲染 * json schema的属性包括:id, type, title, description, pattern, minLength, maxLength, enum * * 扩展属性前必须加上"$" * 扩展属性包括:required, componentType, readOnly, length, patternOption, enumMessage, lengthMessage, requiredMessage, * patternMessage, minLengthMessage, maxLengthMessage, options, defaultValue, placeholder */ interface FormStringProps { root: StringItem; required: boolean; } declare function FormString(props: PropsWithChildren): ReactElement | null; export default FormString;