谢谢大家,我知道了,可以通过info来获取,dataRef会将没有属性全部展示出来,如下:
onSelect = (selectedKeys, info) => {
Message.info(selectedKeys);
console.log(info);
console.log(info.node.props.dataRef.app_id);
};
标签:info,dataRef,console,log,tree,selectedKeys,onSelect,antd
来源: https://www.cnblogs.com/snowhite/p/16313766.html