React
馍王
这个作者很懒,什么都没留下…
展开
-
ant Form 表单作为子组件
子组件中代码:class FormName extends React.Component { constructor(props) {super(props); } render() { const { getFieldDecorator } = this.props.form; const formItemLayout = { ...原创 2018-12-13 17:21:28 · 1162 阅读 · 1 评论 -
子组件调用父组件中的方法
父组件:<Child onClick = {this.func} />子组件: // 父组件中的方法 funcChild = () => { this.props.onClick(); } render() { return( <div onClick={() =>...原创 2018-12-13 17:29:52 · 329 阅读 · 0 评论