react 子组件向父组件传值简单示例

父组件

data即为要向子组件 ExpressionTree 组件传递的值,

子组件

node.props.title,就相当于this.props.title,onSelect api 的理解请参考 ant design 组件的 树选择组件

猜你喜欢

转载自blog.csdn.net/luzhaopan/article/details/83855100