父组件
import AddMaterial from '../components/AddMaterial'--子组件
父组件调用子组件方法
let materialInfo = this.AddMaterial._getMaterial()
render方法
<AddMaterial
onRef={(ref) => this.AddMaterial = ref}
/>
子组件
@connect(({ OrderMaterialModel }) => ({ OrderMaterialModel }))
componentDidMount() {
this.props.onRef(this)
}
class AddMaterial extends PureComponent.......