UNPKG

@activatortube/react-native-form

Version:
29 lines 814 B
/** * 表单的基础组件Form * 2019-09-06 21:44. * * @author WheelerLee https://github.com/WheelerLee * @copyright 2019 */ import React, { ReactElement } from 'react'; import { Component } from 'react'; interface Props { /** * 当表单提交的时候被出发,和html不一样,并不会真的提交表单到服务器,需要自己在此方法中提交到服务器 */ onSubmit?: (parsms: any) => void; } export default class Form extends Component<Props> { value?: string; childrendRefs: Array<ReactElement>; constructor(props: Props); submit(): any; /** * 遍历所有的孩子节点,获取Form的组件 * @param cr 组件的孩子节点 */ private getChildren; render(): React.ReactNode; } export {}; //# sourceMappingURL=Form.d.ts.map